10 Cool Things You Probably Didn't Know About Internationalisation
summary
Rails' I18n is baked into the framework and supplies Active Record validation messages via shipped locale files; you can override validation keys per model and attribute or change the default error format to drop the attribute prefix and write friendlier messages. Custom validators can emit i18n symbols instead of literal strings; form labels and Action Mailer subjects come from locales; pluralization and localized date formats (e.g. short, month/day/year) are supported; locale files can be Ruby with Ruby locale procs like an academic-year formatter. LLMs often omit these patterns.
AI-written summary · about
chapters (14)
- 0:00Introduction to i18n
- 1:57Rails uses i18n by default
- 2:18Override ActiveRecord error messages
- 3:02Customize error message formats
- 4:05Use i18n for custom validations
- 5:06Localize form labels
- 5:50Built-in pluralization support
- 6:32Localize email subject lines
- 7:14Localize dates and times
- 7:54Set locale dynamically
- 8:15Ruby YAML files for i18n
- 9:19Rails i18n guides and LLMs
- 10:01Stay curious about tools
- 10:43About the speaker and unions
