翻訳ファイルのに抜けがあっても、英語版の翻訳ファイルを再度見に行くように I18nのgemに修正をかけます
Add this line to your application's Gemfile:
gem 'i18n_manylang_patch'
And then execute:
$ bundle
Or install it yourself as:
$ gem install i18n_manylang_patch
通常のI18n gemでは、各言語の翻訳がすべて揃っていないと 翻訳に失敗した時にエラーメッセージが表示されます これを防ぐために翻訳に失敗した場合は、英語の翻訳ファイルを見に行くロジックを追加しました 英語版の翻訳ファイルさえ揃っていれば、他の言語ファイルは抜けがあっても英語で代わりに表示されるので エラーだけは防げます
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request