Skip to content

Translating Lic

Remi Gagne edited this page Feb 1, 2019 · 2 revisions

If you know a language other than English, and would like to help translate Lic, it's easy.

All of the words in Lic are stored in dedicated language files in human-readable JSON format, in the languages directory.

To translate Lic:

  • make a copy of en.json
  • rename it xx.json, where xx is the two letter code for your language
  • replace all the strings to the right of each : colon with nice translations

If you have Lic running locally, you can test your changes:

  • add a line for your language to the languages.json list. code should be the two letter code that matches your languages filename, and language should be whatever you want to show up under Lic's Set Language menu.
  • In Lic, click File -> Clear Cache -> Everything to clear any previously loaded language
  • Reload the page

Your language should now show up in the 'Pick a Language' dialog, and if you select it, Lic should now show all of your translated strings.

If you don't have Lic running locally, don't worry; I can verify that your new language works for you.

From there, if you're familiar with GitHub you can send me a pull request with your new language. Or, simply email me your new language.json file, and I'll add it to Lic right away.

And thank you so much for helping to improve Lic!

Clone this wiki locally