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" } }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot