Frontend/i18n: More locales constants - #9624
Open
tristanlabelle wants to merge 2 commits into
Open
Conversation
Member
MobileInstall the Dev Tool (iOS via TestFlight, iOS Simulator, or Android .apk) here. Scan the QR with your phone camera, or tap Open in Dev Tool on the device, to open this branch in the installed Dev Tool dev client.
Deep linksiOS Android Web (Vercel)View the Vercel web preview for this branch. Backend
Other
|
tristanlabelle
marked this pull request as ready for review
August 25, 2026 16:48
tristanlabelle
requested review from
darrenvong,
nabramow and
papeldeorigami
as code owners
August 25, 2026 16:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Introduces
DEFAULT_LOCALEto replace"en"everywhere and disambiguate it fromALWAYS_AVAILABLE_LOCALESthat prepares for #9184 , which will add a second always available English locale. (sometimes we want to test if it's the default locale, sometimes if it's an always available locale).Also simplifies
LANGUAGE_MAPtoLOCALE_AUTONYMSsince we only have one mapped property now, and addsLOCALE_COOKIE_NAMEto codify"NEXT_LOCALE".No functional changes. There are many files but most simply replace
locale ?? "en"bylocale ?? DEFAULT_LOCALE.Testing
Switched languages in Vercel preview while logged in and out.
Web frontend checklist
For maintainers