Skip to content

Custom translation

Jakub Šindelář edited this page Sep 17, 2020 · 5 revisions

Learn more about languages in Lazy Admin and how to translate Lazy Admin to another language. You can do it very easily.

Application UI

Application is currently available in the following languages:

  • English
  • Czech

Add more

Contribute to Lazy Admin

You can create translations to another language and either create pull request or contact us via Issue, so we can include it in next Lazy Admin's version.

You can create translation from English file found in our repository.

Keep it for yourself

If you do not want to share your translation or want to deploy it immediately to your environment, you can save JSON file containing your custom language to some local/network location just like master definition or scripts definitions and push it to your computers with registry value HKEY_LOCAL_MACHINE\SOFTWARE\LazyAdmin\CustomLanguageUrl, which can be also set via our ADM/ADMX templates with GPO.

You can create full or partial translation in JSON format just like those examples:

You can export current English translation file in JSON format with DEBUG's function Get language JSON. Debug menu can be opened with SHIFT+F11.

#c5f015 Note: If using partial translation, missing messages will be replaced by English version.

Scripts definitions

When creating definitions, certain parameters are multilingual and its content is stored in keys, allowing for multiple languages for each parameter.

All you have to do, is to include your custom language in those definitions, either in key named as your language code, e.g. "en-us" or in "default" key, which will be displayed if there is no corresponding key for your language.

Example

"displayName": {
    "default": "Base commands",
    "en-us": "Base commands",
    "cs-cz": "Základní příkazy",
    "de-de": "Basisbefehle"
}
Clone this wiki locally