Skip to content

Conversation

@priyanka91722
Copy link
Contributor

Which issue does this PR close?
Closes #358

Rationale for this change
This PR improves user experience by:
Offline Support: Prevents blank screens or network errors when users go offline by caching essential assets and providing a friendly offline fallback page (offline.html).
Multilingual Support: Adds Marathi, Kannada, and Gujarati support so users can access the website in their preferred language.
These changes make the site faster, more accessible, and PWA-like, without affecting backend functionality.

What changes are included in this PR?
Added public/service-worker.js to cache essential assets.
Added public/offline.html with a minimal friendly offline message.
Registered service worker in main.jsx / index.js.
Added language JSON files: mr.json, kn.json, gu.json.
Updated i18n configuration to include Marathi, Kannada, and Gujarati.
Updated language switcher dropdown to allow selecting these new languages.
Verified offline fallback and language switching functionality.

Are these changes tested?
Yes.
Offline fallback tested by disabling network in Chrome DevTools.
Language switching tested for all supported languages (en, hi, gu, mr, kn).
Verified that fallback works if a translation key is missing.

Are there any user-facing changes?
Yes.
Users can now access the website in Marathi, Kannada, and Gujarati.
Users will see a friendly offline page instead of a blank screen when offline.

@vercel
Copy link

vercel bot commented Dec 14, 2025

@priyanka91722 is attempting to deploy a commit to the eccentriccoder01's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

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. 🙌🏼

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.

Add Support for Additional Languages & Fix Incomplete Translations and Add Basic Offline Support Using Service Worker

1 participant