Plurals

Lokalise automatically handles plural forms for all languages. Learn how to use plurals.

Ilya Krukowski avatar
Written by Ilya Krukowski
Updated over a week ago

Lokalise supports keys with plural forms. Please note that the file format you are working with must also support plurals so that they are exported properly. In case that the file format does not support plural forms, they will be encoded as a JSON array in the translation field.

Also please remember that certain actions might not be available for plural keys (for example, Google-translate empty values).

Enabling plural forms for keys

While in the Lokalise editor, click on any key name to open the key editor (make sure you have key editing enabled in project settings). Navigate to the Advanced tab and enable the This key requires plural forms option:

Lokalise automatically handles the plural forms according to Unicode rules, which means that some languages will have up to 6 forms and some only a few, e.g. English requires just one and other forms.


โ€‹

You can also enable the Set as custom plural key option. Some file formats support plural keys different from the key itself. In most cases you need to set this the same as the key.

Using custom plural forms

In rare cases, you may need to adjust plural forms on a per-language basis. In the editor or in the project dashboard, click on the Languages dropdown, find the desired language, and then click More > Settings:

Enable the Custom plural forms option, select one or more plural forms, and then click Save:

Did this answer your question?