Open
Description
I have the following function in commonMain, which I call from my iOS project:
fun setLocale(languageCode: String) {
StringDesc.localeType = StringDesc.LocaleType.Custom(languageCode)
}
If I don’t run it on the main thread, it is ignored. The README does not mention this, so I wanted to confirm.
Another issue is that; after changing the locale, all subsequent localized() calls must also be made on the main thread to obtain the strings in the newly selected locale; otherwise, the English (base) string is returned.
Metadata
Metadata
Assignees
Labels
No labels