~/talk

How to decrease your localization strings size?

Talkat BA: Swiftable 2022 · 2022-12-01..12-02· [ios, web-platform]
links:none on file
slides:none on file

Airbnb compresses and re‑formats localization files at build time with a Swift CLI that outputs a global keys file plus per‑language arrays, then compresses them with LCFC compression (NSData compress API). A runtime StringManager decompresses only the current language, caches a language+app‑version file to avoid startup overhead, and supports a custom lookup instead of NSLocalizedString. Result: strings drop from 22% to 4% of app size — an 82% reduction — deployed in production after validation.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:06Localization strings overview
  3. 4:18Challenges with app size
  4. 6:43Strings compression optimization
  5. 8:27Key duplication removal
  6. 13:00Implementation at build time
  7. 15:28Runtime decompression process
  8. 19:00Impact and results
  9. 20:44Summary and Q&A
~/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.