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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -