Skip to content

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

Merged
merged 9 commits into from
Apr 17, 2025
Merged

feat: add i18n support #854

merged 9 commits into from
Apr 17, 2025

Conversation

setchy
Copy link
Owner

@setchy setchy commented Apr 12, 2025

Add i18n internationalization support.

Current languages translated include German, French and Spanish by Google Translate via the a18n ally vscode extension

Signed-off-by: Adam Setch <[email protected]>
@setchy setchy added this to the Release 1.17.0 milestone Apr 12, 2025
@github-actions github-actions bot added dependency Dependency updates enhancement New feature or enhancement to existing functionality labels Apr 12, 2025
Copy link

netlify bot commented Apr 12, 2025

Deploy Preview for atlassify canceled.

Name Link
🔨 Latest commit 2bbc10d
🔍 Latest deploy log https://app.netlify.com/sites/atlassify/deploys/680032520591fb0008cf71e9

@setchy setchy requested a review from Copilot April 15, 2025 23:30
Copy link

@Copilot Copilot AI left a 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]>
@setchy setchy marked this pull request as ready for review April 16, 2025 22:44
@setchy setchy requested a review from Copilot April 16, 2025 22:45
Copy link

@Copilot Copilot AI left a 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

@setchy setchy merged commit 1f5951f into main Apr 17, 2025
23 checks passed
@setchy setchy deleted the feat/i18n branch April 17, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Dependency updates enhancement New feature or enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant