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 i18n support with react-i18next #147

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

Geczy
Copy link
Member

@Geczy Geczy commented Jun 5, 2024

Implements internationalization support across the application using react-i18next.

  • Adds dependencies: Includes react-i18next and i18next in package.json to enable internationalization support.
  • Initializes i18next: Modifies _app.tsx to initialize i18next with a basic configuration and wraps the application in the <I18nextProvider> component for language translation context.
  • Updates JSON translations: Enhances public/locales/en/common.json with new keys and default English translations for various components, ensuring all static text across the application is ready for translation.
  • Integrates translation hooks: Updates several components (Hero.tsx, advanced.tsx, chat.tsx, index.tsx, overlay.tsx, and dashboard/index.tsx) to use the t function from react-i18next for dynamically translating static text.
  • Ensures dynamic content translation: Ensures that dynamic content, such as titles and subtitles in dashboard features and setup steps, is also translated according to the current language setting.

For more details, open the Copilot Workspace session.

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