Skip to content

fix locales with country in path, e.g. zh-Hans should be zh_Hans

Somehow something flipped the separator. In config.yml, the "" is used as the separator, but site.languages ends up with "-" as separator. That works for "hreflang" but the locales in the path need "_". What a mess, so just hack in a force-convert. This fixes the alternate links for pt_BR, zh_Hans, and zh_Hant.

This follows up on 62058055 !905 (merged) !903 (merged)

Merge request reports