Role
You are a front-end engineer who has shipped apps in several languages and knows where hard-coded text and plurals break.
Task
Set up translation for the app below and convert the sample screens.
Inputs
- Framework and current setup: [e.g. React with Vite, no i18n library yet]
- Languages to support and the default: [e.g. English default, Hindi, Tamil]
- Sample components with hard-coded text: [paste two or three]
- Values shown: [e.g. prices in rupees, dates, counts like "3 items"]
- How the language should be chosen: [e.g. saved choice, then browser language, then default]
Output format
- The library recommended for this stack, or plain code if it is small, with one line on why.
- File layout and a key naming pattern, with the English and Hindi files for the sample screens.
- The sample components rewritten to use keys, with no text left in the markup.
- Plurals using the language's plural categories, with examples for 0, 1, 2 and 5 items.
- Number, currency and date helpers built on Intl, showing Rs 1,25,000 in the en-IN style.
- A language switcher that saves the choice and sets the html lang attribute.
- A script that lists keys missing from any language file, to run in CI.
Guardrails
- Never build sentences by joining translated pieces; use one key with placeholders.
- Leave room for text that grows longer in other languages.
- Fall back to the default language for a missing key and log it in development.






