-
-
Notifications
You must be signed in to change notification settings - Fork 139
Feat: Multi-language support #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for networking-toolbox ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements multi-language support for the application, addressing feature requests #11 and #24. The implementation adds a comprehensive i18n system with English and German translations, language detection, and translation management infrastructure.
Key Changes
- Custom lightweight i18n system with translation loading and interpolation
- Language detection from localStorage, URL path, browser settings, or default
- English (en) and German (de) translation files for tools, settings, navigation, diagnostics, and common UI elements
- Translation validation scripts and NPM commands for checking translations
Reviewed Changes
Copilot reviewed 75 out of 341 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/i18n/index.ts | Core i18n engine with translation lookup, interpolation, and pluralization |
| src/lib/i18n/lang-detector.ts | Language detection logic with fallback chain (localStorage → URL → browser → default) |
| src/lib/i18n/supported-languages.ts | Language configuration including ISO codes, native names, and flag emojis |
| src/lib/i18n/translations/en/*.json | English translation files for all UI sections |
| src/lib/i18n/translations/de/*.json | German translation files mirroring English structure |
| src/lib/components/tools/*.svelte | Component updates to use translation functions |
| package.json | Added i18n validation scripts and tsx dependency |
| playwright.config.ts | Increased webServer timeout from 120s to 180s |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR will implement internationalization.
As requested in #11 and #24.
It's still a work-in-progress, and there's a fair amount left to do. So, stay-tuned for updates.