how to use rails i18n fallback features

后端 未结 6 1644
难免孤独
难免孤独 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:46

    Have you enabled fallbacks for your backend? Assuming it's Simple(based on yml in example):

    put this in an initializer:

    require "i18n/backend/fallbacks" 
    I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
    

    https://github.com/svenfuchs/i18n/wiki/Fallbacks

提交回复
热议问题