Created
March 2, 2022 03:46
-
-
Save heitorpaceli/e081aa0c177a8bc0f309121f0725b17c to your computer and use it in GitHub Desktop.
updateAppLocales
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun updateAppLocales(vararg locales: Locale) { | |
val localeManager = getSystemService(LocaleManager::class.java) | |
localeManager.applicationLocales = LocaleList(*locales) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment