Skip to content

Open the cloud's web pages in the launcher's language (lang=<code>) - #246

Merged
AlxcBTW merged 1 commit into
mainfrom
night/web-lang-param
Oct 28, 2026
Merged

AlxcBTW merged 1 commit into
mainfrom
night/web-lang-param

Conversation

@AlxcBTW

@AlxcBTW AlxcBTW commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Ready for batch.

Every page the launcher opens on the cloud (the sign-in page, the account web, the appeal page) now carries lang=<code> with the language the launcher is set to (en, tr, de, es, fr, pt). The web (anyplaynet/web#48) picks its language from that parameter first, then a cookie, then Accept-Language.

  • One place: OnlineService::open_cloud_page, after the existing check that the address is under the player's cloud. Nothing else about which addresses open changes.
  • with_language keeps an existing lang= and the fragment, and handles an empty query. Unit test a_cloud_page_opens_in_the_launchers_language.
  • Checked through tools/lb: cargo fmt --all -- --check, cargo clippy -p anyps5-launcher --all-targets -- -D warnings, and the new test pass.
  • An older web that does not know lang ignores the parameter.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@AlxcBTW
AlxcBTW merged commit 3331f13 into main Oct 28, 2026
15 checks passed
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