Skip to content

Add internationalization support with i18next and new locales#47

Open
thedavidweng wants to merge 13 commits intorutikwankhade:masterfrom
thedavidweng:master
Open

Add internationalization support with i18next and new locales#47
thedavidweng wants to merge 13 commits intorutikwankhade:masterfrom
thedavidweng:master

Conversation

@thedavidweng
Copy link
Copy Markdown

@thedavidweng thedavidweng commented Apr 15, 2026

This pull request introduces internationalization (i18n) support across the app, refactors the main Editor component from a class to a functional component using React hooks, and updates several dependencies. The main user-facing components now use translation keys instead of hardcoded English text, and a language switcher has been added to the header. Additionally, several packages have been upgraded or added to support these features.

Internationalization (i18n) Integration:

  • Added i18next, react-i18next, and i18next-browser-languagedetector dependencies for handling translations.
  • Updated Faq, Header, and Editor components to use translation keys (t()) instead of hardcoded strings, enabling multi-language support. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
  • Added a LanguageSwitcher component to the Header for user language selection.

Component Refactoring and Modernization:

  • Refactored Editor from a class component to a functional component using React hooks (useState, useEffect). All state and event handlers were updated accordingly. [1] [2] [3] [4] [5]

Dependency Upgrades and Additions:

  • Upgraded react, react-dom, react-router-dom, and react-select to newer versions. Added ajv and ajv-keywords for JSON schema validation.
  • Specified minimum Node.js version requirement in the engines field.

These changes lay the groundwork for supporting multiple languages and ensure the codebase is using modern React best practices.

kilo-code-bot Bot and others added 11 commits April 15, 2026 07:45
- introduce i18n setup with i18next and react-i18next
- wire translation hooks in Header, Home, Editor, Faq
- add LanguageSwitcher component and integrate in header
- update package.json with i18n dependencies and init files
- add src/i18n scaffold and import in index.js
- ensure UI texts use t('...') keys
extend i18n resources to include new locales:
es, fr, de, ja, ko, pt, ru, ar, hi, it, nl, pl, tr, vi, th, id, uk
update en.json and zh.json translations for consistency
update LanguageSwitcher to use an expanded language list
and adjust its styling for the new options
update i18n and React ecosystem versions to satisfy peer dependencies
and compatibility constraints across i18next, react, react-router-dom,
and related libraries
…193-b546-52e206085453

Add internationalization support with i18next and new locales
…equirements

Fix ESLint build failure: remove unused `unsplashImage` variable
replace react-select with a native HTML select for language switching
adjust change handler to read e.target.value
default currentLang to i18n.language || 'en'
remove react-select props, styling, and dependency in this file
…d0b-93cd-5839dc54c4b4

refactor(language-switcher): switch to native select
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

@thedavidweng is attempting to deploy a commit to the Rutik Wankhade's projects Team on Vercel.

A member of the Team first needs to authorize it.

@thedavidweng thedavidweng marked this pull request as draft April 15, 2026 09:58
kilo-code-bot Bot and others added 2 commits April 15, 2026 09:59
@thedavidweng thedavidweng marked this pull request as ready for review April 15, 2026 10:02
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.

2 participants