feat(i18n): add Turkish localization
Merged
FI
2mo ago+1651+1651+0123456789012345678901234567890123456789-0-0-0123456789
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 thetrbundles and add thetrresource.src/lib/schemas.ts— add"tr"toLanguageSchema.src/components/LanguageSelector.tsx— addTürkçeto 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 matchenexactly (verified programmatically), so counts/names render correctly. - Plural/
_one/_otherkeys 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 intesting/fake-llm-server/githubHandler.ts, unrelated to this change.)npx oxfmt --checkon changed files: all correctly formatted.npx oxlinton changed files: 0 warnings, 0 errors.- Runtime smoke check via vitest:
i18nloads thetrresource 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.