79339052

Date: 2025-01-08 12:02:20
Score: 0.5
Natty:
Report link

According to Google, this is the solution

AppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags(locale));

and use not the regional tag r. As in my example kq-GN

NB! This code is working from Android Tiramisu and up

My problem is that even this code is not working. The app will not change to any language with this code. If I try to run this

AppCompatDelegate.getApplicationLocales().toString());

I get this output []

I even get this result before I do the switch of language, so it seems that there is something wrong here.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: espy