Skip to content

Localization

cvasseng edited this page Dec 18, 2016 · 4 revisions

The Highcharts Editor has a simple localization system that can be used to translate the UI to different languages.

To use it, first add a new language file to localization/. See localization/en.json for the format. The filename should correspond to the language code (e.g. en, fr etc.).

Once a localization file has been added, run node tools/gen.localization.js. This will bake language packs for each of the translations available in the localization folder, and put them in dist/. These files can then be included in the page the editor is included in. To activate a given language, call highed.setLang(languageCode) prior to initializing the editor.

Clone this wiki locally