【发布时间】:2013-08-19 09:17:37
【问题描述】:
我希望能够为一个语言环境生成所有 I18n 键和值的完整列表,包括完整键。换句话说,如果我有这些文件:
config/locales/en.yml
en:
greeting:
polite: "Good evening"
informal: "What's up?"
config/locales/second.en.yml
en:
farewell:
polite: "Goodbye"
informal: "Later"
我想要以下输出:
greeting.polite: "Good evening"
greeting.informal: "What's up?"
farewell.polite: "Goodbye"
farewell.informal: "Later"
我该怎么做?
【问题讨论】:
标签: ruby-on-rails internationalization yaml