how to use rails i18n fallback features

后端 未结 6 1633
难免孤独
难免孤独 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 13:43

    I set in config/application.rb usually

        config.i18n.fallbacks =[:de, :fr, :en]
    

    So you can declare the order of the fallback.

    But keep attention in some environments/*.rb the configuration is overwritten.

提交回复
热议问题