lokalise / lokalise-cli-2-go

Lokalise CLI v2
Other
108 stars 52 forks source link

Export Empty as Base fails for Keys with Pluralization #111

Open unused opened 1 year ago

unused commented 1 year ago

Argument --export-empty-as base works well except for the case of pluralization. If a key is not translated at all, the base language will be used, even for keys with pluralization. If a pluralization is partly translated, the missing items do not use base values but an empty one. See the following example where en is the base locale, fr is not translated at all and de is missing a pluralization item. de.test.pluralization.key.other should be set with Other.

en:
  test:
    pluralization:
      key:
        one: One
        other: Other
fr:
  test:
    pluralization:
      key:
        one: One
        other: Other
de:
  test:
    pluralization:
      key:
        one: Ein
        other: ''