V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
JiaFeiX

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

  •  
  •   JiaFeiX · Sep 4, 2012 · 5170 views
    This topic created in 4994 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   ·   4647 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    ♥ Do have faith in what you're doing.