Added Offline Support and Multilingual Support (Marathi, Kannada, Gujarati) #360
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.
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.