fix(i18n): resolve Google Translate language persistence and navbar theme consistency - #610
Merged
Suhani1234-5 merged 4 commits intoJul 22, 2026
Conversation
|
@kowshikramtg is attempting to deploy a commit to the Zuhani's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
I'm happy to contribute to this repo once again. If this finds you right, i'd be glad. Please attach GSSOC'26 tags to this pr. thank you. |
Contributor
Author
|
I'ld like to remind about the project update, and want to know reviews from your side. Thankyou |
Owner
|
@kowshikramtg solve conflicts |
Contributor
Author
|
I've resolved the conflicts, please verify and merge. Thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves multiple issues in the Google Translate integration by introducing a single, reliable source of truth for language state, preventing unwanted language resets during page refreshes and route navigation, and improving the navigation bar's responsiveness and dark mode appearance.
Problems Addressed
Google Translate
localStoragewrites.Navigation UI
Technical Changes
Language Management
LanguageSelectorto eliminate duplicateapplyLanguage()calls.index.htmlto correctly restore translation state before React loads.Shared State
Introduced a centralized language context:
This keeps both desktop and mobile language selectors synchronized with a single source of truth.
UI Improvements
Screenshots
Supported Languages
The language selector now supports 21 languages:
Validation
Files Modified
frontend/index.htmlfrontend/src/App.jsxfrontend/src/components/LanguageSelector.jsxfrontend/src/components/Navigation.jsxfrontend/src/context/LanguageContext.jsxfrontend/src/index.cssfrontend/src/pages/Auth.jsxNotes
This PR focuses on improving the reliability of the Google Translate integration while preserving the existing translation workflow. It also includes UI refinements to the navigation bar for improved responsiveness and a more consistent dark mode experience.
Closes #596