Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Empty as Base fails for Keys with Pluralization #111

Open
unused opened this issue Apr 4, 2023 · 0 comments
Open

Export Empty as Base fails for Keys with Pluralization #111

unused opened this issue Apr 4, 2023 · 0 comments

Comments

@unused
Copy link

unused commented Apr 4, 2023

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: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant