feat(i18n): add Turkish localization

Merged
FI
2mo ago
+1651-0

Summary

Adds Turkish (tr) as a UI language (relates to #4554).

Dyad already has an i18n layer with namespace bundles under src/i18n/locales/. This PR adds a complete Turkish translation and wires it into the app, following the same structure as the existing locales.

Changes

  • src/i18n/locales/tr/ — new Turkish bundles: common.json, settings.json, chat.json, home.json, errors.json (1491 strings total).
  • src/i18n/index.ts — import the tr bundles and add the tr resource.
  • src/lib/schemas.ts — add "tr" to LanguageSchema.
  • src/components/LanguageSelector.tsx — add Türkçe to the language picker.

Translation quality

  • 100% key parity with en: every key in each English bundle exists in the matching Turkish bundle, with no extra keys.
  • Placeholders preserved: all {{...}} interpolation tokens match en exactly (verified programmatically), so counts/names render correctly.
  • Plural/_one/_other keys translated, e.g. common.itemCount_one → {{count}} öğe.

Validation

  • npm run ts:main (tsgo type-check): no errors in the changed files. (The only remaining diagnostic is a pre-existing tightening in testing/fake-llm-server/githubHandler.ts, unrelated to this change.)
  • npx oxfmt --check on changed files: all correctly formatted.
  • npx oxlint on changed files: 0 warnings, 0 errors.
  • Runtime smoke check via vitest: i18n loads the tr resource and resolves keys across namespaces, e.g. save → Kaydet, chat.newChat → Yeni Sohbet, settings.title → Ayarlar.
  • vitest run src/__tests__/packaging_cleanup.test.ts: 8/8 passed.

Note: a full vitest run in my environment was aborted by a tmpfs disk-quota error while spinning up the full test matrix; individual suites run fine. CI will run the complete suite.