Closed acdzh closed 3 years ago
the ICU variant of i18next depends on the implementation used in react-intl: https://github.com/i18next/i18next-icu/blob/master/package.json#L18
so, if an issue it would need to be solved there...
but honestly I recommend you to not build up your strings like you do as messageformat encourages having full sentences
{
count, plural,
one {One apple a day, keep the doctor away}
other {# apples a day, keep the doctor away }
}
the ICU variant of i18next depends on the implementation used in react-intl: https://github.com/i18next/i18next-icu/blob/master/package.json#L18
so, if an issue it would need to be solved there...
but honestly I recommend you to not build up your strings like you do as messageformat encourages having full sentences
{ count, plural, one {One apple a day, keep the doctor away} other {# apples a day, keep the doctor away } }
tks
🐛 Bug Report
Hello! I found the icu will ignore the first blank in plural, just like this demo. Please look at the
{ a}
inkey1
. Is this a bug or just a feature? Is there any way to solve this problem? Because our i18n translations are auto-generated likekey1
, It is diffcullt to change the translation to likekey2
. Thanks!To Reproduce
codepen
or
Expected behavior
We want the key1 and key2 have the same result.
Your Environment