I18next format `_zero` support

i18next uses suffixes for plural forms, and always supports the _zero suffix.
From i18next documentation

We provide the ability to have special translation for {count: 0}, so that a more natural language can be used. If the count is 0, and a _zero entry is present, then it will be used instead of the language plural suffix.

When using JSON i18next files in Crowdin, the only workaround I found to support these _zero entries is to create custom languages. However this doesn’t quite work as the _zero form from the source file won’t be displayed, and it doesn’t look like a custom language can be used for the source.

I think _zero should always be an option, regardless of the source/target language.

I’d be happy to try any suggested workaround, but from my point of view this is a bug/missing feature of the file format support.

Thanks for the help!


1 Like

+1 we have to create custom target languages to have the _zero plural form. would be nice if this was configurable at the language level, just like we can map locales strings

Hi there,

As for now adding new forms to the French language is not on our road map as it may cause significant changes to the workflows of our customers that are using old libraries. Hope this will be re-consideres in the future. Meanwhile please use the workaround with a custom langauge.

The custom workaround I described above is incomplete, as the source language will not display the Zero form. Is there a way to use a custom language for the source?

Hi @matthieu.foucault ,

Sorry to say, but currently, there is no possibility of using a custom language as the source language of the project.

Hope for your understanding!