Skip to content

Instantly share code, notes, and snippets.

@heitorpaceli
Created March 2, 2022 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heitorpaceli/e081aa0c177a8bc0f309121f0725b17c to your computer and use it in GitHub Desktop.
Save heitorpaceli/e081aa0c177a8bc0f309121f0725b17c to your computer and use it in GitHub Desktop.
updateAppLocales
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