Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 2.45 KB

File metadata and controls

48 lines (39 loc) · 2.45 KB

Multi-Language Support Implementation TODO

Step 1: Create Translation Files

  • Create locales/ directory
  • Create locales/en.json with English translations
  • Create locales/hi.json with Hindi translations

Step 2: Create Internationalization Script

  • Create js/i18n.js for language loading, switching, and text replacement

Step 3: Modify HTML Files

  • 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

Step 4: Update JavaScript Files

  • Update js/app.js: Replace hardcoded strings with translation keys
  • Update other JS files if needed (e.g., checkout.js, etc.)

Step 5: Add Language Selector to Navbar

  • Ensure language selector is added to all HTML files' navbars
  • Style the language selector in CSS if necessary

Step 6: Testing and Followup

  • 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

Order History Implementation TODO

  • 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