All translations from config/locales/*
are auto loaded, according to comments included on application.rb
.
I have some apps using only :es
as locale, and the only configuration in application.rb
is:
config.i18n.default_locale = :es
Nothing else.
Edit
Checking my app, I can see that
config.i18n.available_locales = [:es]
is necessary if you want to remove any reference to :en
locale. You can check it with this:
I18n.locale_available?(:en) # => false
FYI, In a Rails 3 app using only :es
as locale, I have this line too:
I18n.config.enforce_available_locales = false
Simply to avoid the deprecation warning:
[deprecated] I18n.enforce_available_locales will default to true in the future.
If you really want to skip validation of your locale you can set
I18n.enforce_available_locales = false to avoid this message.