Skip to content

fix(web): make tr locale capitalisation consistent for expanded labels - #19273

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
bakiburakogun:fix/tr-locale-case-consistency
Sep 4, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
bakiburakogun:fix/tr-locale-case-consistency

Conversation

@bakiburakogun

Copy link
Copy Markdown
Contributor

Summary

Turkish frequently needs two words where English has one, and the tr locale is inconsistent about how it capitalises them. It uses sentence case 77 times and title case 9 times for exactly the same situation. This aligns those 9 with the majority. 9 strings, one file.

The header

Every entry in translation.header is sentence case except one:

key English Turkish
logout Log out Çıkış yap
register Register Kayıt ol
signin Sign in Giriş yap
setting User settings Kullanıcı ayarları
home Home Ana Sayfa → Ana sayfa

The file already contains Ana sayfa elsewhere, for Homepage — so the same page was written two different ways.

The data-source fields

The same split appears inside a single group. Three fields were already sentence case:

key English Turkish
dataSourceFieldHost Host Ana bilgisayar
dataSourceFieldPort Port Bağlantı noktası
dataSourceFieldUsername Username Kullanıcı adı

Four of their neighbours were not, and now match:

key English was now
dataSourceFieldWorkspace Workspace Çalışma Alanı Çalışma alanı
dataSourceOptionWorkspace Workspace Çalışma Alanı Çalışma alanı
dataSourceFieldPrefix Prefix Ön Ek Ön ek
dataSourceFieldPrefixOptional Prefix (optional) Ön Ek (isteğe bağlı) Ön ek (isteğe bağlı)
dataSourceFieldMailboxes Mailboxes Posta Kutuları Posta kutuları
dataSourceFieldAuthentication Authentication Kimlik Doğrulama Kimlik doğrulama

Multi-word English labels in that group keep title case, because the source has it — Access Token stays Erişim Token'ı, Workspace ID stays Çalışma Alanı Kimliği.

And two confirm buttons

unlinkPipelineModalConfirmText and unlinkSourceModalConfirmText read Bağlantıyı Kes. Verb phrases elsewhere in the locale are sentence case — Yeniden adlandır, İçe aktar, Devam et — so both are now Bağlantıyı kes.

Left alone on purpose

  • API-Version → API Sürümü, which sits next to the API Version field rendered the same way.
  • Calculator → Hesap Makinesi, which is a tool name rather than a UI label.

No key was added or removed, no placeholder changed, and the file's CRLF line endings are preserved. This is a follow-up to #19009.

Turkish often needs two words where English has one. The locale renders
that in sentence case 77 times — "Rename" -> "Yeniden adlandır",
"Metadata" -> "Meta veri", "Homepage" -> "Ana sayfa" — and in title case
9 times. This brings those 9 in line.

The clearest case is the header, where every other entry is sentence
case ("Log out" -> "Çıkış yap", "Sign in" -> "Giriş yap", "User
settings" -> "Kullanıcı ayarları") while "Home" alone read "Ana Sayfa".
The file also contained both "Ana Sayfa" and "Ana sayfa" for what is
the same page.

The data-source fields had the same split inside one group: "Host",
"Port" and "Username" were already "Ana bilgisayar", "Bağlantı
noktası" and "Kullanıcı adı", but "Workspace", "Prefix", "Mailboxes"
and "Authentication" were title case. Multi-word English labels in that
group keep title case, since the source has it.

Left as they are: "API-Version" -> "API Sürümü", which pairs with the
"API Version" field next to it, and "Calculator" -> "Hesap Makinesi",
which is a tool name.

No key was added or removed and no placeholder changed.

Signed-off-by: Baki Burak Öğün <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: eb9a3b6a-9cca-4b42-a443-bd4f4250b6a5

📥 Commits

Reviewing files that changed from the base of the PR and between 0cee507 and 09ad262.

📒 Files selected for processing (1)
  • web/src/locales/tr.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The Turkish locale updates nine translation values. The changes lowercase the second word in compound labels and confirmation texts across the header, settings, and dataflow parser sections.

Changes

Turkish locale translations

Layer / File(s) Summary
Update Turkish translation values
web/src/locales/tr.ts
Turkish header, settings, and dataflow parser strings use revised capitalization for compound terms.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 09ad2

This updates Turkish UI labels and confirmation text to consistent sentence case without changing application behavior or localization keys. No merge-blocking risk remains.

Suggested reviewers: wangq8, lynn-inf, euvre

Poem

A rabbit checks each Turkish phrase,
And trims the capitals with care.
The labels now rest in lowercase,
With tidy wording everywhere.
Hop, hop—the locale shines bright.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: consistent capitalization in the Turkish web locale.
Description check ✅ Passed The description includes the required Summary section and provides clear background, affected strings, intentional exceptions, and scope details.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.

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.

@JinHai-CN JinHai-CN added the ci Continue Integration label Sep 4, 2026
@JinHai-CN
JinHai-CN merged commit f99b9cd into infiniflow:main Sep 4, 2026
5 checks passed
wangq8 pushed a commit to wangq8/ragflow that referenced this pull request Sep 7, 2026
infiniflow#19273)

Align 9 title-case Turkish UI labels to sentence case (matching 77 existing strings). Follow-up to infiniflow#19009.

Signed-off-by: Baki Burak Öğün <[email protected]>
JinHai-CN pushed a commit that referenced this pull request Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants