Skip to content

fix: allow hyphenated language names in language switching#2

Merged
tm8544 merged 1 commit intotm8544:developfrom
alextselegidis:develop
Apr 14, 2026
Merged

fix: allow hyphenated language names in language switching#2
tm8544 merged 1 commit intotm8544:developfrom
alextselegidis:develop

Conversation

@tm8544
Copy link
Copy Markdown
Owner

@tm8544 tm8544 commented Apr 14, 2026

The language sanitization regex in Localization::change_language() was stripping hyphens, turning 'portuguese-br' into 'portuguesebr' which didn't match any available language entry. This caused an error when users tried to switch to Portuguese-BR or Traditional Chinese.

Also added missing language code mappings for pt-br and zh-tw.

The language sanitization regex in Localization::change_language() was
stripping hyphens, turning 'portuguese-br' into 'portuguesebr' which
didn't match any available language entry. This caused an error when
users tried to switch to Portuguese-BR or Traditional Chinese.

Also added missing language code mappings for pt-br and zh-tw.
@tm8544 tm8544 merged commit dae357d into tm8544:develop Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants