Hi, I’m having the following problem and I don’t understand why it’s happening:
This smart string:
{0:plural:a day|{} days} ago // English
{0:plural:ein Tag|{} Tage} zuvor // German
{0:plural:satu hari|{} hari} yang lalu // Indonesian
When I pass 2 as a parameter, it should display:
2 days ago // English
2 Tage zuvor // German
2 hari yang lalu // Indonesian
It works fine in English and German, but in Indonesian it always takes the singular form (“satu hari”, instead of “2 hari”), no matter what number is given.
I found the following workaround - it works fine when I specify “en” as language code like so:
{0:plural(en):satu hari|{} hari}
But I don’t understand what’s going on - is this expected? It also works if I change “en” to “de”, but it doesn’t work if I put “id”.
It’s probably worth mentioning that the working locales are defined with 2 letters - “en”, “de”, while Indonesian is “id-ID” - that’s the only difference I can see.
Does it mean that for certain locales I need to specify “en” as language code?
I’m using Unity 2021.3.10f and Localization 1.3.2.
Thanks!