localization - Rails I18n. Set "en" default_locale with "es-CL" as locale -
i have 2 locale files:
- config/locales/en.yml
- config/locales/es-cl.yml
i want use "en" default locale translate english language when "es-cl" translations missing. so, application.rb file:
config.i18n.available_locales = ['en', 'es-cl'] config.i18n.default_locale = 'en' config.i18n.locale = 'es-cl'
on production.rb
config.i18n.fallbacks = true
but, when start server, locales on english language.
a chunk of es-cl.yml (the translation working when set config.i18n.default_locale "es-cl")
es-cl: activerecord: models: admin_user: one: administrador other: administradores producer: one: productora other: productoras ticket: one: ticket other: tickets
Comments
Post a Comment