Skip to main content
Adding more references
Source Link

The support to Per-app language preferences was just added to API 33 (Android 13, Tiramisu currently on Developer Preview).

To change the app's locale just call setApplicationLocales from LocaleManager:

// Set app locale to pt-BR (Portuguese, Brazil) getSystemService(LocaleManager::class.java) .applicationLocales = LocaleList(Locale.forLanguageTag("pt-BR")) 

See more at https://developer.android.com/about/versions/13/features/app-languages#api-impl

I've wrote an article about this feature https://proandroiddev.com/exploring-the-new-android-13-per-app-language-preferences-8d99b971b578

The support to Per-app language preferences was just added to API 33 (Android 13, Tiramisu currently on Developer Preview).

To change the app's locale just call setApplicationLocales from LocaleManager:

// Set app locale to pt-BR (Portuguese, Brazil) getSystemService(LocaleManager::class.java) .applicationLocales = LocaleList(Locale.forLanguageTag("pt-BR")) 

See more at https://developer.android.com/about/versions/13/features/app-languages#api-impl

The support to Per-app language preferences was just added to API 33 (Android 13, Tiramisu currently on Developer Preview).

To change the app's locale just call setApplicationLocales from LocaleManager:

// Set app locale to pt-BR (Portuguese, Brazil) getSystemService(LocaleManager::class.java) .applicationLocales = LocaleList(Locale.forLanguageTag("pt-BR")) 

See more at https://developer.android.com/about/versions/13/features/app-languages#api-impl

I've wrote an article about this feature https://proandroiddev.com/exploring-the-new-android-13-per-app-language-preferences-8d99b971b578

Source Link

The support to Per-app language preferences was just added to API 33 (Android 13, Tiramisu currently on Developer Preview).

To change the app's locale just call setApplicationLocales from LocaleManager:

// Set app locale to pt-BR (Portuguese, Brazil) getSystemService(LocaleManager::class.java) .applicationLocales = LocaleList(Locale.forLanguageTag("pt-BR")) 

See more at https://developer.android.com/about/versions/13/features/app-languages#api-impl