icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.08k stars 121 forks source link

No matter how hard I try, I can't get a localized string. #766

Open lemkoleg opened 3 weeks ago

lemkoleg commented 3 weeks ago

I do everything according to the instructions. Resources are generated, I use them. But, the application outputs lines in English. What could I be doing wrong? Testing on Android. Compose MPP. I also use stringResource and res.getString(LocalContext.current). Doesn't matter

mndsl commented 3 weeks ago

The localization is based on the current language of the phone. See Example 6 - Select localization in runtime

lemkoleg commented 3 weeks ago

The localization is based on the current language of the phone. See Example 6 - Select localization in runtime

Now I see the problem. It is related to the Ukrainian language (ua). Moko does not support all languages?

lemkoleg commented 3 weeks ago

The localization is based on the current language of the phone. See Example 6 - Select localization in runtime

Now I see the problem. It is related to the Ukrainian language (ua). Moko does not support all languages?

No, everything is fine with the language. If you install it forcibly, it works. Moko does not understand when the system language is Ukrainian.