how to use rails i18n fallback features

后端 未结 6 1645
难免孤独
难免孤独 2020-12-03 13:02

I have this i18n problem

activerecord:
  notices:
    messages:
      success: 
        create: \"Something was created\"
    models:
      user:
        suc         


        
6条回答
  •  悲&欢浪女
    2020-12-03 14:03

    In rails 3+, this is set in the config/environments files :

      # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
      # the I18n.default_locale when a translation can not be found)
      config.i18n.fallbacks = true
    

提交回复
热议问题