Skip to content

Render region codes for locale assets with an `_` instead of a `-`

Bob Van Landuyt requested to merge bvl-fix-locale-path into master

What does this MR do?

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.

This would cause the assets for locales with a region not to be loaded.

Does this MR meet the acceptance criteria?

  • Changelog entry added, if necessary
  • Tests added for this feature/bug
  • Review
    • Has been reviewed by Frontend
    • Has been reviewed by Backend

What are the relevant issue numbers?

Closes #39225 (closed)

Edited by Bob Van Landuyt

Merge request reports