Closed AmatsukiKu closed 5 years ago
I fixed I18nLocaleGenerator#add_locale_config when the locale includes a hyphen (e.g.: zh-CN).
rails g i18n_locale zh-CN expects to generate
rails g i18n_locale zh-CN
# config/application.rb config.i18n.default_locale = :'zh-CN'
but now, generates
config.i18n.default_locale = :zh-CN
I guess that this behavior continues since https://github.com/amatsuda/i18n_generators/commit/7f6841f8e641c52d236174306c5d888474ccdb36
@AmatsukiKu Thank you!!
I fixed I18nLocaleGenerator#add_locale_config when the locale includes a hyphen (e.g.: zh-CN).
rails g i18n_locale zh-CN
expects to generatebut now, generates
I guess that this behavior continues since https://github.com/amatsuda/i18n_generators/commit/7f6841f8e641c52d236174306c5d888474ccdb36