-
- Downloads
Build the locale path with an `_` instead of a `-`
The locale code is turned into an asset path with an underscore instead of a dash. The language codes are transformed by `I18n.locale` into a code with a dash. But the resources for translating are always stored in a path using a `_` separating the language and the region code.
Showing
- app/helpers/application_helper.rb 4 additions, 0 deletionsapp/helpers/application_helper.rb
- app/views/layouts/_head.html.haml 1 addition, 1 deletionapp/views/layouts/_head.html.haml
- changelogs/unreleased/bvl-fix-locale-path.yml 5 additions, 0 deletionschangelogs/unreleased/bvl-fix-locale-path.yml
- spec/helpers/application_helper_spec.rb 8 additions, 0 deletionsspec/helpers/application_helper_spec.rb
Please register or sign in to comment