Skip to content

refactor(i18n): drop the Turkish UI language - #1081

Merged
devswha merged 2 commits into
mainfrom
refactor/drop-turkish
Oct 14, 2026
Merged

devswha merged 2 commits into
mainfrom
refactor/drop-turkish

Conversation

@devswha

@devswha devswha commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Change

The UI languages are English, Korean, Japanese and Simplified Chinese. Turkish (added in #815 three days ago) is removed with its README.

  • Telemetry: the language setting itself was never reported (the deployed counts name only seven appearance settings), so usage is read from the country: 5 of 1091 installs (0.5%) were last seen in Turkey. For comparison, KR 204, JP 40, and TW/HK/SG about 63.
  • Every UI language has to translate each new t("…") string (i18n.test.ts fails otherwise) and every release summary (release-summaries.json), so each one is a recurring cost. CONTRIBUTING now says new UI language PRs are not taken.
  • A browser set to Turkish now resolves to English. A device that chose tr in Settings loads as system (sanitizeSettings already falls back for an unknown value; a new test pins it).
  • SUMMARY_LANGUAGES drops tr, and the tr entries are removed from release-summaries.json (other languages unchanged, same JSON formatting).
  • Unchanged on purpose: shared/telemetry.ts keeps tr in its language enum (narrowing it would need a Worker redeploy); dictation's tr-TR speech language stays, since that is the browser's speech recognition, not UI text; the Turkish keyboard-layout notes in shortcuts.ts stay.

Validation

  • bun run check fast: generated types, typecheck, build, unit tests all pass.
  • Demo app in Chromium: the Language select lists System, English, 简体中文, 日本語, 한국어; a tr-TR browser with language: "tr" stored renders <html lang="en-US"> with the select on System; a tr-TR browser on System renders English; a ko-KR browser still renders Korean; no page errors.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 88bb5ea2-a588-4b81-9dd1-f91256784d8b
📥 Commits

Reviewing files that changed from the base of the PR and between 6df47e6 and 120eb2e.

📒 Files selected for processing: 12
  • CONTRIBUTING.md
  • README.md
  • README.tr.md
  • changelog.d/drop-turkish.md
  • docs/guide.md
  • release-summaries.json
  • scripts/release-guards.test.ts
  • shared/update.ts
  • src/lib/i18n.test.ts
  • src/lib/i18n.tr.ts
  • src/lib/i18n.ts
  • src/lib/settings.test.ts
💤 Files with no reviewable changes: 3
  • src/lib/i18n.tr.ts
  • README.tr.md
  • release-summaries.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Language Support
    • The app now supports English, Korean, Japanese, and Simplified Chinese. Turkish is no longer available as an interface language; browsers set to Turkish display English, while saved Turkish preferences return to following the browser language.
  • Documentation
    • Updated the language support guidance and removed the Turkish project README.

Turkish is removed from UI language selection and release-summary parsing. Turkish browser preferences now resolve to English, and Turkish settings sanitize to system. The Turkish README and references to Turkish support are removed or updated.

Changes: Turkish language removal

Layer / File(s) Summary
UI language configuration and fallback
src/lib/i18n.ts, src/lib/i18n.tr.ts, src/lib/i18n.test.ts, src/lib/settings.test.ts
The UI language configuration and translation tests exclude Turkish. Turkish browser preferences resolve to English, and Turkish settings sanitize to system.
Release-summary language support
shared/update.ts, scripts/release-guards.test.ts, release-summaries.json
The release-summary language set and test fixtures exclude Turkish. Turkish release-summary entries for versions 0.4.0 through 0.4.8 are removed.
Language policy and documentation
CONTRIBUTING.md, docs/guide.md, README.md, README.tr.md, changelog.d/drop-turkish.md
Project guidance limits UI languages to English, Korean, Japanese, and Simplified Chinese. The Turkish README and language-selector link are removed; the guide and changelog describe the language change.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Other

Suggested reviewers: nahwan-kim

Merge Risk: ⚪ Minimal · up to 120eb

The change consistently removes Turkish UI and release-summary support while preserving the documented fallback behavior. No concrete merge-blocking risk remains.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies the primary change: removing the Turkish UI language.
Description check Passed The description includes both required sections. It explains the change, resulting behavior, rationale, intentional exceptions, and validation results.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 5 files. (4 skipped: 4 …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fitzgpt

fitzgpt commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Totally understandable — data beats hope. Thanks for merging it while it lasted and for the kind words. Good luck with the project! 🙏

# Conflicts:
#	src/lib/i18n.tr.ts
@devswha
devswha merged commit 694b753 into main Oct 14, 2026
17 checks passed
@devswha
devswha deleted the refactor/drop-turkish branch October 14, 2026 12:06
devswha added a commit that referenced this pull request Oct 14, 2026
…chema (#1123)

The Turkish UI language was removed in #1081, and `sanitizeSettings`
loads a stored `"tr"` as `"system"`, so no snapshot can carry it. No
release has sent a settings snapshot yet (#866 is in no `v*` tag), so
dropping the value refuses nothing a shipped sender sends.

- `shared/telemetry.ts`: `language` no longer accepts `"tr"` (type and
validator).
- `telemetry/worker.test.ts`: the Worker refuses a snapshot with
`language: "tr"`.

Every other setting is already reported (#1105), so the snapshot needs
nothing else.

**Before the next release:** `shared/telemetry.ts` is a Worker source,
so redeploy the Worker and record it (`bun scripts/release-guards.ts
--worker-deployed`, commit `telemetry/deployed.json`), per
telemetry/README.md#deploy. The release guard fails until then.

No changelog fragment: nothing a user sees changes.

Tested: `bun run typecheck`; `HERDR_TEST_MODE=unit bun test` on
telemetry/worker, src/lib/settings, src/lib/api, server/telemetry and
scripts/release-guards tests (101 pass).
Noobear pushed a commit to Noobear/herdr-web-ui that referenced this pull request Oct 15, 2026
Conflicts: keep main's side and put back this PR's own lines (the omo /model row and
search-box sentence in the guide, the prompt/filter proxy route, the Search models
strings). The Turkish strings file goes, as main dropped Turkish (devswha#1081).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UZtgywVP3Jr6PBKBJpiHYN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants