How to Translate your Rails App with I18n

Опубликовано: 23 Апрель 2026
на канале: Mike Rogers
1,039
25

Showing your app in multiple languages is a big really fun with Rails! Here's is how to approach it.

Rails Internationalization (I18n) API — Ruby on Rails Guides: https://guides.rubyonrails.org/i18n.html
rack-contrib: https://github.com/rack/rack-contrib
rails-i18n: https://github.com/svenfuchs/rails-i18n

Chapters

0:00 - What are we going to do?
0:15 - Like Me!
0:22 - The `t` helper method
1:22 - Switching the Locale
2:18 - Using a param for the locale
2:47 - Using a scope in the routes
4:15 - Rack::Locale
8:15 - rails-i18n gem
9:32 - i18n-debug gem
10:15 - ActiveRecord Locales
11:30 - Dates & the `l` helper method
12:36 - Questions?

Support Me

  / mikerogers0  
https://mikerogers.io
https://www.buymeacoffee.com/MikeRogers0

#RubyOnRails
#Internationalization
#Localisation