Updated on 2025-03-24 GMT+08:00

i18n.json

File Introduction

The i18n.json file is the internationalization resource file of the widget, which is used to configure multiple languages. Currently, Chinese and English are supported. The corresponding key values are ['zh-CN','en-US']. The multi-language files can be configured in multiple JSON files. The following is a configuration example in the packageinfo.json file:

"i18n": [{
		"name": "messages-en" // The multi-language file of the widget, the corresponding file is messages-en.json.
	},
	{
		"name": "messages-zh" // The multi-language file of the widget, the corresponding file is messages-zh.json.
	}
],

File Example

  • Configuration example of messages-zh.json
    {
      "zh-CN": {
        "dataSetting.s": "Series",
        "setting": "EchartsWidgetTemplate configuration"
      }
    }
  • Configuration example of messages-en.json
    {
      "en-US": {
        "dataSetting.s": "Series",
        "setting": "EchartsWidgetTemplate Setting"
      }
    }