Rails I18n validation deprecation warning, after setting enforce_available_locales = true

会有一股神秘感。 提交于 2019-12-01 16:52:03

The reason is due to a bug with locales that have the language-country format. The good news is that it has been fixed already. This was reported in Github with Issue 13164 and fixed with pull request 229.

If you want to grab the latest code with the fix, update the gem like this:

Update your Gemfile with:

gem 'i18n', github: 'svenfuchs/i18n'

And then: bundle install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!