- Create
locales/directory - Create
locales/en.jsonwith English translations - Create
locales/hi.jsonwith Hindi translations
- Create
js/i18n.jsfor language loading, switching, and text replacement
- Update
html/index.html: Add data-i18n attributes and language selector - Update
html/menu.html: Add data-i18n attributes and language selector - Update translation files with menu-specific keys
- Update
html/checkout.html: Add data-i18n attributes and language selector - Update
html/aboutUs.html: Add data-i18n attributes and language selector - Update
html/contactUs.html: Add data-i18n attributes and language selector - Update
html/feedback.html: Add data-i18n attributes and language selector - Update
html/forgot-password.html: Add data-i18n attributes and language selector - Update
html/nearbyres.html: Add data-i18n attributes and language selector - Update
html/PartnerWithUs.html: Add data-i18n attributes and language selector - Update
html/signup.html: Add data-i18n attributes and language selector - Update
html/supportCenter.html: Add data-i18n attributes and language selector
- Update
js/app.js: Replace hardcoded strings with translation keys - Update other JS files if needed (e.g., checkout.js, etc.)
- Ensure language selector is added to all HTML files' navbars
- Style the language selector in CSS if necessary
- Test language switching on different pages
- Verify all text is properly translated and displayed
- Ensure cart and other functionalities work in both languages
- Check localStorage persistence of language preference
- Update checkout.html to save orders to localStorage on payment success
- Create html/order-history.html with navbar and order display structure
- Create js/order-history.js to load and render orders from localStorage
- Create css/order-history.css for order history page styling
- Update navbar in html/index.html to include Order History link
- Update navbar in html/menu.html to include Order History link
- Test the full flow: add to cart, checkout, pay, view order history