Repository navigation
feat(tui): add Turkish i18n support to terminal UI - #31887
ugur-murat-alt wants to merge 1 commit into
Conversation
feat(tui): create i18n infrastructure with locale detection feat(tui): extract hardcoded strings to i18n dictionary feat(tui): add Turkish translations for all TUI components refactor(tui): use i18n context for dialog titles and messages
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: I found a potentially related PR: Related PR:
Why it's related: PR #31886 also addresses Turkish (tr) locale translations and i18n support. The current PR (#31887) focuses specifically on TUI (terminal UI) Turkish translations, while #31886 appears to cover Turkish translations across multiple packages. There may be overlap in scope or coordination needed between these two PRs to avoid duplicating translation work or creating conflicting changes. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Summary
Adds full Turkish (tr) i18n support to the Terminal UI, introducing an i18n infrastructure and translating all hardcoded strings.
New Files
packages/tui/src/i18n/index.ts — i18n infrastructure
I18nProvidercontext usingcreateSimpleContextpatternuseI18n()hook returning{ t, locale, dict }t(key, params?)with{{param}}template interpolationdetectLocale()readsLANG/LC_ALL/LC_MESSAGESenv varspackages/tui/src/i18n/en.ts — English dictionary (178 keys)
packages/tui/src/i18n/tr.ts — Turkish translations (181 keys)
Modified Files (27 components)
providerOptionssignature changeDesign Decisions
as constfor type-safe key extractionsatisfies Partial<Record<Keys, string>>for compile-time key checkingVerification
bun run --cwd packages/tui typecheckpasses cleanlyprovider-options.test.tsupdated and passes (5/5)