restring icon indicating copy to clipboard operation
restring copied to clipboard

Locale selection fallback not working

Open SoftXperience opened this issue 8 months ago • 6 comments

Unfortunately I found another problem:

I have strings for locale "de" and update them. So they will be stored as locale "de" in the stringRepository.

But the device is running with the locale "de_DE", so the library tries to get strings for "de_DE" and won't find anything because it is stored for just "de".

I'm not sure if there is a simple fix for that. Maybe try to find translations with the given system locale (for example de_DE) and if that won't return a list, also try the base locale (in that case just "de") and if that also fails, fall back to system resources?

SoftXperience avatar Jul 03 '24 09:07 SoftXperience