Skip to content

feat: honor forceDefaultLanguage in language() and page_language() - #6

Open
tobao17 wants to merge 1 commit into
mainfrom
fix/force-english-default
Open

tobao17 wants to merge 1 commit into
mainfrom
fix/force-english-default

Conversation

@tobao17

@tobao17 tobao17 commented Aug 24, 2026

Copy link
Copy Markdown

ua_language() already returns the default language when myDrumee.forceDefaultLanguage is set, but its two siblings still leaked request-derived languages: language() (Xlang/lang params, accept-language) and page_language() (pagelang header, accept-language). A deployment that forces the default language expects every page and lex lookup to follow it.

This applies the same guard at the top of both functions. No behavior change when the flag is unset.

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.

1 participant