Skip to content

feat: localization support#9570

Open
AdityaHegde wants to merge 11 commits into
mainfrom
feat/localization
Open

feat: localization support#9570
AdityaHegde wants to merge 11 commits into
mainfrom
feat/localization

Conversation

@AdityaHegde

@AdityaHegde AdityaHegde commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Adds just the boilerplate for paraglide i18n integration. Actual string replacements have been reverted and separate PRs will be raised for it.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@AdityaHegde AdityaHegde changed the title feat: localization initial commit feat: localization support Jun 18, 2026
@nishantmonu51

Copy link
Copy Markdown
Collaborator

@codex review this

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1bc287c3b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread package.json Outdated
Comment thread scripts/web-test-code-quality.sh Outdated
@AdityaHegde AdityaHegde marked this pull request as ready for review June 29, 2026 11:52
@nishantmonu51 nishantmonu51 requested a review from Copilot June 29, 2026 18:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds Paraglide JS internationalization (i18n) scaffolding across the SvelteKit frontends (web-local, web-admin) and shared i18n assets/config under web-common, plus a lightweight guard script to prevent reintroducing hardcoded strings in already-migrated areas.

Changes:

  • Integrate @inlang/paraglide-js via Vite plugins and SvelteKit hooks; set HTML lang dynamically at render time.
  • Introduce web-common/src/lib/i18n/ project scaffolding (inlang project config + initial en.json message).
  • Add build:i18n + CI quality-step wiring and an i18n-guard heuristic scanner.

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
web-local/vite.config.ts Adds Paraglide Vite plugin to compile i18n output during dev/build.
web-local/src/hooks.ts Adds reroute hook for Paraglide URL delocalization.
web-local/src/hooks.server.ts Adds server handle using Paraglide middleware and injects %lang%.
web-local/src/app.html Switches <html lang> to a %lang% placeholder.
web-common/src/lib/i18n/README.md Adds i18n documentation and conventions for message usage/keys.
web-common/src/lib/i18n/messages/en.json Adds initial base-locale message catalog.
web-common/src/lib/i18n/project.inlang/settings.json Adds inlang project settings for message-format plugin + locales.
web-common/src/lib/i18n/project.inlang/README.md Documents the unpacked inlang project folder contents.
web-common/src/lib/i18n/project.inlang/.meta.json Tracks inlang SDK version metadata.
web-common/src/lib/i18n/project.inlang/.gitignore Adds inlang-generated ignore rules for cache/settings.json.
web-admin/vite.config.ts Adds Paraglide Vite plugin to compile i18n output during dev/build.
web-admin/src/routes/[organization]/+page.svelte Replaces a hardcoded <title> string with a Paraglide message call.
web-admin/src/hooks.server.ts Adds server handle using Paraglide middleware and injects %lang%.
web-admin/src/app.html Switches <html lang> to a %lang% placeholder.
scripts/web-test-code-quality.sh Runs i18n compile + i18n guard as part of quality checks.
scripts/i18n-guard.js Adds a warning-only heuristic scan for hardcoded strings in migrated areas.
package.json Adds build:i18n script and makes root build depend on it; adds @inlang/paraglide-js.
package-lock.json Locks @inlang/paraglide-js and its dependency graph.
.prettierignore Ignores generated Paraglide output and inlang cache.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread web-local/src/hooks.ts Outdated
Comment thread web-common/src/lib/i18n/README.md Outdated
Comment thread web-common/src/lib/i18n/README.md Outdated
Comment thread web-common/src/lib/i18n/README.md Outdated
Comment thread web-common/src/lib/i18n/README.md Outdated
Comment thread web-common/src/lib/i18n/project.inlang/.gitignore Outdated
Comment thread web-common/src/lib/i18n/README.md
Comment thread web-common/src/lib/i18n/project.inlang/settings.json
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