Add Italian (it) interface language
OF
4d ago+2050+2050+0123456789012345678901234567890123456789-3-3-0123456789
Adds Italian as a selectable UI language, following the pattern of the French (#4742) and Turkish (#4555) locales. Requested in #4866 and #4899.
Changes
src/i18n/locales/it/*.json: Italian catalogs forcommon,settings,chat,homeanderrors, in key and{{placeholder}}parity with the currentencatalogs onmain.src/i18n/index.ts: registers theitresources.src/lib/schemas.ts: addsittoLanguageSchema(it was not listed, so the setting could not be saved).src/components/LanguageSelector.tsx: lists "Italiano".- Tests:
src/i18n/it_locale.test.ts: key and placeholder parity withen, onei18n.tlookup per namespace so a missing registration fails, Italian plural forms, andLanguageSchemaacceptance.test_gate_locales.test.tsandSubscriptionStatusBanner.test.tsxnow coverit.
- Docs:
PRODUCT.mdandrules/i18n.mdlist the new locale.
Like the other locales, only the _one/_other plural forms are shipped (Italian CLDR also has many, used only for large round numbers, which falls back to other).
Testing
npx vitest run src/i18n src/components/SubscriptionStatusBanner.test.tsx: all pass.oxlintis clean andtscreports no errors undersrc/.