-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add i18n support #854
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
Conversation
Signed-off-by: Adam Setch <[email protected]>
✅ Deploy Preview for atlassify canceled.
|
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
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.
Copilot reviewed 39 out of 44 changed files in this pull request and generated no comments.
Files not reviewed (5)
- .vscode/extensions.json: Language not supported
- .vscode/settings.json: Language not supported
- package.json: Language not supported
- pnpm-lock.yaml: Language not supported
- src/renderer/i18n/locales/de.json: Language not supported
Comments suppressed due to low confidence (1)
src/renderer/components/settings/AppearanceSettings.tsx:106
- [nitpick] The onChange callback parameter 'option' is untyped, which might lead to unclear intent or potential issues with type inference. Consider explicitly typing this parameter (for example, as OptionType from '@atlaskit/select') for better clarity and type safety.
onChange={(option) => {
Signed-off-by: Adam Setch <[email protected]>
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 adds internationalization (i18n) support to the application by replacing hard coded text labels with calls to the translation function. Key changes include:
- Adding a default language and updating appearance settings to include the language.
- Replacing static labels in various components (settings, sidebar, notifications) with i18n keys.
- Integrating the useTranslation hook into multiple components for dynamic language support.
Reviewed Changes
Copilot reviewed 42 out of 49 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/renderer/context/App.tsx | Added default language support in appearance settings. |
src/renderer/components/settings/* | Updated string literals to translation function calls. |
src/renderer/components/notifications/* | Updated notification content labels with translation keys. |
src/renderer/components/Sidebar.tsx | Replaced tooltip and button labels with i18n keys. |
src/renderer/mocks/state-mocks.ts | Updated the default language in mock settings. |
Files not reviewed (7)
- .vscode/extensions.json: Language not supported
- .vscode/settings.json: Language not supported
- package.json: Language not supported
- pnpm-lock.yaml: Language not supported
- src/renderer/components/filters/snapshots/FilterSection.test.tsx.snap: Language not supported
- src/renderer/components/notifications/snapshots/AccountNotifications.test.tsx.snap: Language not supported
- src/renderer/components/notifications/snapshots/NotificationRow.test.tsx.snap: Language not supported
|
Add i18n internationalization support.
Current languages translated include German, French and Spanish by Google Translate via the a18n ally vscode extension