Skip to content
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

Add UI language selection feature #173

Merged
merged 3 commits into from
Jun 26, 2024
Merged

Conversation

vanpelt
Copy link
Contributor

@vanpelt vanpelt commented Jun 26, 2024

Related to #172

Adds language selection functionality to the UI and updates the internationalization setup to support dynamic language changes.

  • Language Selection in Settings: Implements a new dropdown in frontend/src/components/Settings.tsx for language selection, allowing users to choose between English, Japanese, and Korean. The selected language is immediately applied to the UI without needing a page refresh.
  • Internationalization Configuration: Modifies frontend/src/lib/i18n.ts to include additional translations for 'Language Selection' and 'Language Updated' messages. Adjusts the language detection order to prioritize local storage, enabling persistent language preferences across sessions.
  • Dynamic Language Update: Utilizes i18next's changeLanguage method in the Settings component to dynamically update the application's language based on user selection.

For more details, open the Copilot Workspace session.

@vanpelt vanpelt merged commit 0856de7 into main Jun 26, 2024
5 checks passed
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.

1 participant