~/talk

Localize your Rails application like a pro

Talkat RailsConf 2019 · 2019-05-01..05-03· [ruby-on-rails, web-platform]
github:dabit
slides:none on file

Practical checklist for Rails i18n: use split YAML files and recursive loading so translations stay maintainable; add i18n-debug gem to see Rails’ default lookup tree and where labels come from; prefer lazy lookup and built‑in pluralization (pass count) instead of ad hoc ifs; consider multiple backends or a chain backend (ActiveRecord/Redis + YAML) so marketing can edit text live; localize whole templates with localize views and use L/number helpers for dates, numbers and bytes.

AI-written summary · about

  1. 0:00Intro
  2. 0:18CLOUD Pain Free Rails 66 Deployments
  3. 2:45The basics
  4. 5:42Split your .yml files
  5. 7:57118n-debug gem
  6. 9:20Default lookup tree
  7. 11:23Lazy lookup
  8. 13:51Localized Views
  9. 15:28partials
  10. 18:44Pluralization
  11. 21:11Different backends
  12. 25:28The chain backend
  13. 27:24Times, dates and numbers
  14. 27:35the L function
~/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.