Lokalise supports more than 400 languages along with their language codes and plural forms. However, you may tweak these default settings further as needed, and even create new languages with their own settings.
First, navigate to the projects dashboard, scroll to the desired project and press on the dots next to the language that you would like to modify. Then choose Language settings from the dropdown:
This can also be done from the project page. Simply press on one of the flags at the top and choose Language settings:
Changing language settings
You'll see the following dialog:
From the Change language dropdown you may choose a new language. Its name, ISO code, and plural forms will be updated automatically.
Custom language code — toggle switch to On in order to override a language ISO code. Then simply enter a desired value.
— Please note that you may also override this code per format when downloading your translations. To achieve that, open the Download page, and press on the language code in the right part of the page. Enter a new value and press on the checkmark:
Custom language name — toggle switch to On and enter a new language name.
Custom plural forms — toggle switch to On to add or remove plural forms for the language. The default plural forms for the chosen language are marked in bold. Under the hoods, Lokalise relies on Unicode CLDR plural rules.
Plural forms are utilized when you are creating a plural translation key. To create such key, press
Cmd+K) key combination and provide the general key options as usual. Then proceed to the Advanced tab:
Under this tab you have to toggle the Plural switch:
After the key is created, for each language you are going to see different plural forms:
Creating custom languages
To create a custom language, press on the plus icon next to the language flags:
Search for “custom” in the dropdown:
Lokalise provides 150 custom languages for you that you may tweak further.
Now press on the newly added flag and choose Languages settings:
Adjust language settings as needed. For example, you can use custom languages to create non-existent (fictional) languages:
Finally, hit Save. Your new custom language will be available in the project editor.