Adapter Translations
Whenever possible, adapters should provide multiple languages for everything the user will see. Like
- Adapter name
- Adapter description
- Adapter news
- Object names
- Instance configuration inputs
- VIS widgets
- End user documentation / help
- ...
Languages
Code | Required | Language |
---|---|---|
en | English | |
de | German | |
ru | Russian | |
pt | Portuguese | |
nl | Dutch | |
fr | French | |
it | Italian | |
es | Spanish | |
pl | Polish | |
zh-cn | Chinese |
Translation tools
Dev-Tools
The easiest way to translate strings is the adapter-dev package.
It should be added as a dev dependency the adapter project and provides several commands to translate admin UI, io-package objects and other texts.
Website
To translate an English text to multiple languages, the ioBroker translator tool is also helpful. The website will translate any English phrase to all supported languages and returns JSON.
Example output:
{
"Example": {
"en": "Example",
"de": "Beispiel",
"ru": "Пример",
"pt": "Exemplo",
"nl": "Voorbeeld",
"fr": "Exemple",
"it": "Esempio",
"es": "Ejemplo",
"pl": "Przykład",
"zh-cn": "例子"
}
}
Last update: November 30, 2023