mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2214237c39
The sample application with the Getting Started Guide was very out of
date. I've re-done it on edge (as of 51b9def5bf
) so it should
be good to go with Rails 4. It's also in synch with what the guide
actually says.
23 lines
634 B
YAML
23 lines
634 B
YAML
# Files in the config/locales directory are used for internationalization
|
|
# and are automatically loaded by Rails. If you want to use locales other
|
|
# than English, add the necessary files in this directory.
|
|
#
|
|
# To use the locales, use `I18n.t`:
|
|
#
|
|
# I18n.t 'hello'
|
|
#
|
|
# In views, this is aliased to just `t`:
|
|
#
|
|
# <%= t('hello') %>
|
|
#
|
|
# To use a different locale, set it with `I18n.locale`:
|
|
#
|
|
# I18n.locale = :es
|
|
#
|
|
# This would use the information in config/locales/es.yml.
|
|
#
|
|
# To learn more, please read the Rails Internationalization guide
|
|
# available at http://guides.rubyonrails.org/i18n.html.
|
|
|
|
en:
|
|
hello: "Hello world"
|