YarikSOffice / lingver

Manage your application locale and language.
https://proandroiddev.com/change-language-programmatically-at-runtime-on-android-5e6bc15c758
MIT License
512 stars 61 forks source link

Incorrect language, when device set two or more locales #14

Closed RumataEstorish closed 4 years ago

RumataEstorish commented 4 years ago

Steps to reproduce:

  1. Have Android 9 (maybe 10 too)
  2. Add languages in device. F.e. English and Russian
  3. Switch device to Russian
  4. Switch application to English.
  5. Observe

Expected result:

  1. App language is English
  2. Actual result: app language is Russian (maybe partially)

Notes: I think problem still is in "setLocaleForApi24".

EDIT 1: further investigation lead me, that problem appears if I use language like "en_US", not just "en".

EDIT 2: This case: изображение

RumataEstorish commented 4 years ago

Bug found, sent pull request