Add Italian (it) interface language

OF
4d ago
+2050-3

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 for common, settings, chat, home and errors, in key and {{placeholder}} parity with the current en catalogs on main.
  • src/i18n/index.ts: registers the it resources.
  • src/lib/schemas.ts: adds it to LanguageSchema (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 with en, one i18n.t lookup per namespace so a missing registration fails, Italian plural forms, and LanguageSchema acceptance.
    • test_gate_locales.test.ts and SubscriptionStatusBanner.test.tsx now cover it.
  • Docs: PRODUCT.md and rules/i18n.md list 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.
  • oxlint is clean and tsc reports no errors under src/.

Fixes #4866
Fixes #4899


Devin Review