Skip to content

Frontend/i18n: More locales constants - #9624

Open
tristanlabelle wants to merge 2 commits into
developfrom
frontend/refactor/locales-constants
Open

Frontend/i18n: More locales constants#9624
tristanlabelle wants to merge 2 commits into
developfrom
frontend/refactor/locales-constants

Conversation

@tristanlabelle

@tristanlabelle tristanlabelle commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Introduces DEFAULT_LOCALE to replace "en" everywhere and disambiguate it from ALWAYS_AVAILABLE_LOCALES that 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_MAP to LOCALE_AUTONYMS since we only have one mapped property now, and adds LOCALE_COOKIE_NAME to codify "NEXT_LOCALE".

No functional changes. There are many files but most simply replace locale ?? "en" by locale ?? DEFAULT_LOCALE.

Testing

Switched languages in Vercel preview while logged in and out.

Web frontend checklist

  • There are no console warnings when running the app
  • Added tests where relevant
  • Clicked around my changes running locally and it works
  • Checked Desktop, Mobile and Tablet screen sizes

For maintainers

  • Maintainers can push commits to my branch
  • Maintainers can merge this PR for me

@CouchersBot

CouchersBot commented Aug 25, 2026

Copy link
Copy Markdown
Member

Mobile

Install 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.

    iOS         Android    
    QR to open the iOS build         QR to open the Android build    
    Open in Dev Tool         Open in Dev Tool    
Deep links

iOS

couchers-devtool://expo-development-client/?url=https%3A%2F%2F612b369e--ota.preview.couchershq.org%2Fios%2Fmanifest

Android

couchers-devtool://expo-development-client/?url=https%3A%2F%2F612b369e--ota.preview.couchershq.org%2Fandroid%2Fmanifest

Web (Vercel)

View the Vercel web preview for this branch.

Backend

Schema Schema diff Sample emails SQL query log
no change in DB access patterns

Other

Protos

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