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

JiaFeiX · September 04, 2012 · Last by ywencn replied at September 04, 2012 · 4174 hits

安装有 如下的 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

求大家指点,我指向想使用 中文化 呀....

rails_admin.zh-CN.yml 贴出来看下

You need to Sign in before reply, if you don't have an account, please Sign up first.