~/talk

Finally OS-Level Per-App Language Settings Are Supported!

TalkinJapaneseat DroidKaigi 2022 · 2022-10-05..10-07· [android, web-platform]
links:none on file
slides:none on file

Android 13 and AppCompat 1.6.0 alpha04 add OS-level per-app language support using android:localeConfig XML and the ACTION_APP_LOCALE_SETTINGS UI, plus new APIs. Use AppCompatDelegate.setApplicationLocales(...) or setApplicationLocale(s) to switch locales (activities auto-recreate); enable the AppLocales metadata service with autoStoreLocales=true in the manifest to persist choices. Migration requires reading legacy prefs and calling the new API, and notification channels must be re-created manually to update their labels.

AI-written summary · about

  1. 0:00Introduction
  2. 1:22Per-app language switching
  3. 3:31Multilocalization in Android
  4. 5:16Past struggles with per-app language
  5. 12:19Power Language Preferences
  6. 13:43Language switching via settings
  7. 15:51In-app language switching with Up-Compact
  8. 17:33Storing language settings
  9. 19:42Migration from older versions
  10. 20:45Notifications language
  11. 21:08Live demo: language switching
  12. 21:49Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.