I18nData :: NoTranslationAvailable - countries-DE-CH:无法访问Spree管理员,常规设置,编辑

时间:2014-05-13 23:42:31

标签: ruby ruby-on-rails-4 spree

点击Spree Admin面板中的Configuration标签时,不确定我更改了哪些内容以获取此错误。 spree_i18n gem包含DE-CH.yml文件,之前我没有遇到任何问题。这也不会发生在任何其他页面上。

codesi18n_data(0.4.1)lib / i18n_data / file_data_provider.rb

DATA_SEPARATOR = ";;"
extend self
def codes(type, language_code)
  unless data = read_from_file(cache_file_for(type, language_code))
    raise NoTranslationAvailable, "#{type}-#{language_code}"
  end
  data
end
def write_cache(provider)

此处引发错误:提高NoTranslationAvailable,"#{type} - #{language_code}"

我使用狂欢2-2-stable和spree_i18n 2-2-stable宝石。

由于

1 个答案:

答案 0 :(得分:1)

请参阅this issue。这是您遇到的确切问题。