Multilingual (i18n)

    To enable the multilingual function (here-in-after referred to as i18n), please create a new folder named i18n under the extended directory, and add a corresponding JavaScript file for each language as key-value mapping data. The data file name should be consistent with the language code, such as corresponding to English mapping data.

    The following is an example of a key-value mapping data source:

    Assuming that the registered extension name is hello-world, the corresponding text translation key is

    If you need to translate in the html template, use the ui-label element to translate:

    ui-label is a normal inline element, similar to span.