~/talk

Tricky Back-Compatible Localization

Talkat droidcon San Francisco 2023 · 2023-06-08..06-09· [web-platform, accessibility]
links:none on file
slides:none on file

Android 13’s per-app language preference is backported via AppCompat 1.6 and implemented by calling AppCompatDelegate.setApplicationLocales to install a new Configuration per activity; integration on a 280M-install app exposes problems: Indonesian uses conflicting codes (in/id), which triggers back-end validation errors and required two fixes; widgets driven from the server needed fresh localized payloads; using activity context and a TextResolver pattern fixes most UI strings and unit tests, and an application-level resource wrapper that delegates string lookups resolves a WebView crash so the feature works.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:32About Flow app and quiz
  3. 3:44Why localization matters
  4. 4:05Per-app language preference feature
  5. 7:13Integration steps and ISO 639 issue
  6. 10:04Android’s language resolution logic
  7. 13:45Reintegrating the feature
  8. 15:14Widget language mismatch
  9. 16:37Android 11 vs 13 differences
  10. 17:19Understanding resource retrieval
  11. 20:11AppCompat library implementation
  12. 24:45Optimization in AppCompat
  13. 25:29Applying new languages to app
  14. 28:30Activity recreation mechanism
  15. 30:00Context usage recommendations
  16. 30:20Text resolver approach
  17. 31:25Testing with new approach
  18. 32:33Quick fix for legacy apps
  19. 33:59WebView crash and solution
  20. 35:46Achievements and closing
~/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.