Localization
You can change the locale used in Unlayer's user interface as part of the configuration parameters passed to the plugin.
The locale value needs to be passed to the initialization code in ISO 639-1 format (example: en-US). The default locale is set to en-US.
Editor configuration
You can pass the locale when initializing the editor. The default is en-US.
unlayer.init({
...
locale: 'en-US'
});
Overriding Translations
You can override any word or sentence of any language like this:
unlayer.init({
...
locale: 'en-US',
translations: {
'en-US': {
"tools.tabs.content": "Content",
"tools.tabs.row": "Row"
}
}
});
You can check all available translations keys here: https://github.com/unlayer/translations/blob/master/en.json
Adding A New Language
If the language you want is not available, you can use the same api from above to add it:
unlayer.init({
...
locale: 'xx',
translations: {
'xx': {
"tools.tabs.content": "Content",
"tools.tabs.row": "Row",
// ...
}
}
});
You can check all available translations keys here: https://github.com/unlayer/translations/blob/master/en.json
Available Languages
Currently, we have built-in translations for the following languages:
| Language | Region | Code |
|---|---|---|
| Arabic | UAE | ar-AE |
| Chinese | China | zh-CN |
| Chinese | Taiwan | zh-TW |
| Czech | Czech Republic | cs-CZ |
| Danish | Denmark | da-DA |
| Dutch | Netherlands | nl-NL |
| English | USA | en-US |
| English | Canada | en-CA |
| Estonian | Estonia | et-EE |
| Farsi | Iran | fa-IR |
| Finnish | Finland | fi-FI |
| French | France | fr-FR |
| French | Canada | fr-CA |
| German | Germany | de-DE |
| Hungarian | Hungary | hu-HU |
| Indonesian | Indonesia | id-ID |
| Italian | Italy | it-IT |
| Japanese | Japan | ja-JP |
| Korean | Korea | ko-KR |
| Norwegian | Norway | no-NO |
| Polish | Poland | pl-PL |
| Portuguese | Brazil | pt-BR |
| Portuguese | Portugal | pt-PT |
| Russian | Russia | ru-RU |
| Spanish | Spain | es-ES |
| Swedish | Sweden | sv-SE |
| Turkish | Turkey | tr-TR |
| Ukrainian | Ukraine | uk-UA |
| Vietnamese | Vietnam | vi-VN |
Submitting Translations
You can submit new language translations by creating a PR on this GitHub repo: https://github.com/unlayer/translations
While your pull request is not merged, please use the editor configuration from above to setup your editor with your desired translations