Skip to content

Integrate Lit Localize and translate a few strings#8675

Open
aomarks wants to merge 2 commits into
mainfrom
localize
Open

Integrate Lit Localize and translate a few strings#8675
aomarks wants to merge 2 commits into
mainfrom
localize

Conversation

@aomarks
Copy link
Copy Markdown
Member

@aomarks aomarks commented Jun 3, 2026

Integrates Lit Localize (https://lit.dev/docs/localization/overview/)

For now, the only way to switch to non-English is to pass the ?hl=<locale code> URL parameter. Later we will add auto-detection (navigator.language, or IP geolocation based, or GAIA based, TBD).

Configures a few important strings to be localizable, and adds Gemini-generated translations for French and German.

Extract messages and integrate translations with:

npm run localize:extract -w packages/visual-editor
npm run localize:build -w packages/visual-editor

@aomarks aomarks requested review from kevinpschaaf and rkarodia June 3, 2026 23:40
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

📊 Coverage Report

Metric PR Main Delta
Lines 96.91% 96.91% ⚪ +0.00%
Functions 96.95% 96.95% ⚪ +0.00%
Branches 93.85% 93.85% ⚪ +0.00%

Copy link
Copy Markdown
Collaborator

@kevinpschaaf kevinpschaaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

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.

3 participants