JiaFeiX

求助 i18n 国际化的一个问题 expected it to return a hash, but does not

  •  
  •   JiaFeiX · Sep 4, 2012 · 5193 views
    This topic created in 5002 days ago, the information mentioned may be changed or developed.
    安装有 如下的 Gem:

    rails_admin

    devise

    在 config/locales 下有

    rails_admin.zh-CN.yml

    devise.zh-CN.yml

    在 application.rb 设置了

    config.i18n.default_locale = "zh-CN"

    但程序打开就是会出现:

    Missing translation 的提示

    然后,试图去修改 config/locales 任何一点改动,都会报错:

    can not load translations from **** /config/locales/rails_admin.zh-CN.yml, expected it to return a hash, but does not


    求大家指点,我指向想使用 中文化 呀....
    1 replies    1970-01-01 08:00:00 +08:00
    icelatte
        1
    icelatte  
       Sep 19, 2012
    zh-CN.yml文件没有
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   889 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 20:52 · PVG 04:52 · LAX 13:52 · JFK 16:52
    ♥ Do have faith in what you're doing.