Translations
The app ships English, Spanish, Chinese, Dutch and Tamil. Most of the text was written in English first and translated by machine, so a native speaker should review it before it is relied on. Text in src/i18n/areas/ says so in its header comment.
Where text lives
Section titled “Where text lives”src/i18n/resources.ts: the original bundles (layout, dialogs, transactions header, settings).src/i18n/homeTranslations.ts: the marketing home page.src/i18n/areas/: everything added since, one module per area of the app with all five languages side by side, so a reviewer can compare them. They are merged into the bundles at load; a key that already exists inresources.tsalways wins.
Current areas: gaps (keys English had but other languages lacked), shell (keys code used without defining), ledgerEntry, management (Accounts, Vendors, Categories), budgets, transactionsTable, feedback, searchSuggestions (the “Understood as” row in the filter search box), plus the dashboard and dialog keys that were added to resources.ts.
Adding text to a screen
Section titled “Adding text to a screen”- Write
t("area.key", { defaultValue: "English text" })in the component. Use{{placeholders}}for numbers and names, never string concatenation: word order differs between languages. - Add the key to a module in
src/i18n/areas/(or a new one, registered inareas/index.ts) for all five languages. - Plurals: define
key_oneandkey_otherand passcount. Chinese only needs_other. - Dates: use
formatDisplayDate(date, i18n.language)(src/utils/dateFormat.ts), not date-fnsformat, which always prints English month names. - Do not translate data the user typed, or stored values such as account types (
Checking); map those to a label at display time.
What the tests enforce
Section titled “What the tests enforce”src/i18n/dashboardTranslations.test.ts: every language has every key English has, and keeps the same{{placeholders}}.src/i18n/coverageGuard.test.ts:- every
t("key")in the code is defined in the English bundle (a key with only adefaultValueshows English in every language); - hard-coded English in UI files may not grow beyond
hardcodedTextBaseline.json, so new screens must use translations. After translating a screen, lower its allowance withUPDATE_I18N_BASELINE=1 pnpm vitest run src/i18n/coverageGuard.test.ts.
- every
Not translated yet
Section titled “Not translated yet”The baseline file lists every remaining file and how many strings it still hard-codes. Settings, Data Management, Scheduled transactions, Backup, CSV import, the Add/Edit budget and Smart budget dialogs and the AI provider screens are translated. What is left is mostly the Analytics, Reports and Insights pages.