我希望能够为包括完整键的语言环境生成所有 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"
我该怎么做呢?