lvgl / lv_i18n

Internationalization (i18n) for LVGL
MIT License
57 stars 17 forks source link

Bad plural key name 'few' #58

Closed Spider84 closed 9 months ago

Spider84 commented 9 months ago
ru-RU:
  nitorgen_remainder:
    one: Запас азота %u литр
    few: Запас азота %u литра
    many: Запас азота %u литров

Error in src/translations/en-GB.yml Bad plural key name 'few' in 'nitrgen_remainder' Allowed values are: one, other

Why?

puzrin commented 9 months ago

Message complains about en-GB, where only 2 plural forms exist. Probably, you looked into the wrong file.

Spider84 commented 9 months ago

The files now is same.

en-GB:
  nitorgen_remainder:
    one: Запас азота %u литр
    few: Запас азота %u литра
    many: Запас азота %u литров
puzrin commented 9 months ago

You use the wrong plural forms for English locale, the error message tells this explicitly.

Spider84 commented 9 months ago

How to get know about this? Template generate all plural forms and this results can't be compiled.

puzrin commented 9 months ago

The most simple way is just to read the error message. It shows the path to the file and valid key names.

If you need something more, please create a minimal possible test repo with step-by-step instructions on how to reproduce the problem.