Skip to content

feat: Extend language switching support across the website - #1882

Merged
omroy07 merged 1 commit into
omroy07:mainfrom
Aditya8369:feat/Extend-language-switching-support-across-the-website
Sep 25, 2026
Merged

omroy07 merged 1 commit into
omroy07:mainfrom
Aditya8369:feat/Extend-language-switching-support-across-the-website

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Enhancements Made:
Universal Website-Wide i18n Engine (scripts/i18n.js):

Implemented UniversalI18nManager with built-in instant translation dictionary and asynchronous server-side fallback via Google Cloud Translation API.
Automatically translates elements with [data-i18n] as well as standard navigation items (Home, About, Blog, Schemes, Community Forum, Level Up, Certificates, Favorites, Login, Register, Logout, etc.) across all pages.
Saves language preferences across all keys (agritech-lang, agritech_lang, selectedLang, and lang cookie) for seamless cross-page persistence.
Exposes global helper functions (window.setLanguage, window.platformLanguageChange) so any page interaction triggers smooth transitions.
Universal Auto-Loader Hook (footer.js):

Added an automatic i18n script loader inside footer.js (which is included across 90+ HTML pages on the website), ensuring consistent language switching and synchronization on every single page.
Global Navigation Language Toggle (navbar.html):

Added clean, accessible language switcher dropdown supporting English, हिन्दी (Hindi), ಕನ್ನಡ (Kannada), తెలుగు (Telugu), and தமிழ் (Tamil).
Styled with light/dark theme responsiveness without any external Google Translate branding or popup banners.
All Tests Passing:

closes #572

@vercel

vercel Bot commented Sep 20, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Aditya8369

Copy link
Copy Markdown
Contributor Author

@omroy07 please check

@omroy07
omroy07 merged commit 3befa63 into omroy07:main Sep 25, 2026
1 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congrats @Aditya8369 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

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.

Feature request : Extend language switching support across the website - 70

2 participants