Internationalization Settings


EnOS provides internationalization settings for name fields, including, but not limited to, the following.

  • Model name.

../_images/model_name_i18n.png


  • Input and output parameters of a service.

../_images/service_parameter_i18n.png


  • Product name.

../_images/product_name_i18n.png


  • Asset tree name.

../_images/asset_tree_name_i18n.png


  • Alert serverity description

../_images/alert_severity_name_i18n.png


For fields that can be internationalized, you can set the following values.

  • Default: The default text.

  • English (en-US): The text in English.

  • Chinese (zh-CN): The text in Chinese.

  • Japanese (ja-JP): The text in Japanese.

  • Spanish (es-ES): The text in Spanish.


Click i18n for the Internationalization pop-up to set the text in English, Chinese, Japanese, or Spanish.

../_images/i18n.png


If you have set internationalization fields, EnOS will display the name based on your language setting: the English name will be displayed if your EnOS environment is in English and the Chinese name will be displayed if your EnOS environment is in Chinese, and so on.


If your EnOS environment is in a language other than English, Chinese, Japanese, or Spanish, or if you have not set any names for the internationalization fields, the default name will be displayed.

Internationalization Fields in a Struct and in APIs

In the request parameters, return results, and in a struct, the internationalized name structure is used to represent internationalized names.

Name

Data Type

Description

defaultValue

String

Default name

i18nValue

Map (Key and value are both of String type)

The name for each Locale. The key is the locale, and the value is the name name each locale.


defaultValue refers to the name that should be used when the locale is not specified in i18nValue. The locale format follows the Unicode locale identifier, such as “en_US”. For more information, see https://www.unicode.org/reports/tr35/tr35-55/tr35.html#BCP_47_Language_Tag_Conversion.


Sample:

{
  "defaultValue": "Turbine",
  "i18nValue": {"zh_CN": "风机", "en_US": "Turbine"}
}


The sample above shows that when the locale is “zh_CN”, the name is “风机”, and when the locale is “en_US”, the name is “Turbine”. If any other locale is used, the name is “Turbine”.