Commit Graph
2 Commits
Author SHA1 Message Date
Athanasios Panos 3c7eb141fc test(i18n): keep Polish-prefixed links unchanged in rewriteLinks
Cover the regression hinted at in review: an already /pl/-prefixed link
must not be prefixed a second time now that pl is part of the language
pattern.
2026-11-11 07:09:16 +01:00
Athanasios Panos edd824e1e3 fix(i18n): detect Polish and derive language routing from supportedLanguages
Polish (pl) was missing from the hand-maintained language regexes, so
getLanguageFromUrl() returned en for /pl/... pages and the UI fell back
to English after the initial server-rendered Polish content.

Derive the pattern from supportedLanguages so new locales cannot be
missed again, and cover Polish in getLanguageFromUrl(), changeLanguage()
and rewriteLinks() with regression tests.

Refs #972
2026-11-10 23:16:37 +01:00