localization - Rails I18n. Set "en" default_locale with "es-CL" as locale -


i have 2 locale files:

  1. config/locales/en.yml
  2. 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

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -