mirego / accent

The first developer-oriented translation tool. True asynchronous flow between translators and your team.
https://www.accent.reviews
BSD 3-Clause "New" or "Revised" License
1.3k stars 98 forks source link

Plural forms in rails serializer #156

Closed stefkin closed 4 years ago

stefkin commented 4 years ago

I have an issue similar to #30 . It seems to be fixed for gettext serializer but the is still reproducible in rails serializer and probably others.

Steps to reproduce:

You can upload the file to a new project with english master lang

---
en:
  months:
    one: month
    other: months

then add russian language and upload the following via add translations

---
ru:
  months:
    many: месяцев
    few: месяца
    one: месяц
    other: месяцев

An export of russian translations will look like:

"ru":
  "months":
    "one": "месяц"
    "other": "месяцев"

All the plural forms which aren't present in master language are missing

simonprev commented 4 years ago

The keys should always be 1:1 with the master language. You should upload few and many to have them available for other languages. Add translations will never add new keys.