~/talk

Localization for Elm as a pre-build phase

Talkat Oslo Elm Day 2017 · on Saturday, 2017-06-10· [functional-programming, web-platform]
links:none on file
slides:none on file

Proposes generating per-language Elm builds at compile time by swapping a translation directory with a symlink trick, so localized strings become Elm constants or tiny functions and incomplete translations fail to compile. Ships an npm helper elm-i18n that switches and compiles quickly by only rebuilding changed translation modules, and exports/imports CSV, PO and PullString files for translators. Requires a page reload to change language but enables phased rollouts, typesafe text, pseudo-language testing and easy collaboration with external translators.

AI-written summary · about

  1. 0:00Introduction to Elm localization
  2. 1:06Runtime language switching drawbacks
  3. 4:19Compile-time localization approach
  4. 5:45Symlink trick for language switching
  5. 8:19Tooling for CSV and PO export
  6. 11:09Runtime vs compile-time trade-offs
  7. 12:13Advantages of compile-time localization
  8. 15:30Future improvements and features
  9. 16:35Live demo of language switching
  10. 18:46Q&A and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.