Skip to content

fix(i18n): fix typos and incorrect translations in langTR - #21870

Open
Asimmimx wants to merge 1 commit into
apache:masterfrom
Asimmimx:fix/i18n-tr-corrections
Open

Asimmimx wants to merge 1 commit into
apache:masterfrom
Asimmimx:fix/i18n-tr-corrections

Conversation

@Asimmimx

Copy link
Copy Markdown

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fixes typos, wrong meanings and broken screen reader sentences in the Turkish locale (src/i18n/langTR.ts).

Fixed issues

None.

Details

Before: What was the problem?

Screen reader (aria) labels. The aria strings produced broken Turkish, and one of them reversed the meaning. With a titled pie chart and a chart with two series, the generated aria-label was:

Bu grafik "Satışlar" içindir. Grafik Türü Pasta Grafiği ve 2025 gösteriyor.Veriler Aşağıdaki Gibidir:  12 için Ocak,  9 için Şubat.
Bu Bir Grafiktir.. 2 kadar grafik sayısından oluşur. 0.serisi Gelir adını temsil eden bir Çubuk Grafik temsil eder.İlk 2 öğesi: 5, 7. ...
  • data.withName was ' {value} için {name}' ("{name} for {value}"), the reverse of the English the data for {name} is {value}.
  • general.withoutTitle ends with a period and series.multiple.prefix starts with one, which gives ...
  • "Grafik Türü X ve Y gösteriyor" ("chart type X and shows Y"), "kadar grafik sayısından oluşur" and "adını temsil eden bir ... temsil eder" are ungrammatical.

Other strings.

Key Before After Why
time.monthAbbr[7] Agu Ağu Missing ğ (August is Ağustos)
time.dayOfWeekAbbr Çrş, Prş, Cts Çar, Per, Cmt Standard Turkish abbreviations, as in CLDR
series.typeNames.sunburst Güeş Patlaması Tablosu Güneş Patlaması Grafiği Typo (Güneş), and it is a chart, not a table
series.typeNames.chart Grafiği Grafik Grafiği is the possessive/accusative form, not the noun
series.typeNames.heatmap Sıcaklık Haritası Isı Haritası Sıcaklık means temperature; the usual term is ısı haritası
series.typeNames.candlestick Şamdan Grafik Mum Grafiği Turkish finance uses mum grafiği
series.typeNames.sankey Sankey Diagramı Sankey Diyagramı Spelling (diyagram)
series.typeNames.parallel Paralel Koordinat Haritası Paralel Koordinat Grafiği It is not a map
series.typeNames.funnel, custom Huni Grafik, Özel grafik Huni Grafiği, Özel Grafik Consistent with the other type names
toolbox.magicType.title.line, bar ... Grafiğe Çevir Çizgi Grafiğe Geç, Çubuk Grafiğe Geç "Switch to ..."
toolbox.magicType.title.stack, tiled Yığın, Blok Yığılmış, Yan Yana Yığın (a pile) and Blok (a block) do not describe stacked / side-by-side bars
toolbox.brush.title.clear Seçimi Sil Seçimi Temizle Clearing a selection does not delete anything
toolbox.saveAsImage.lang Resim Olarak Kaydetmek için Sağ Tıklayın Resim olarak kaydetmek için sağ tıklayın Sentence case for a sentence

After: How does it behave after the fixing?

The same two charts now give:

Bu, "Satışlar" hakkında bir grafiktir. Türü Pasta Grafiği, adı 2025. Veriler şöyle: Ocak verisi 12, Şubat verisi 9.
Bu bir grafiktir. 2 seriden oluşur. 0. seri, Gelir adlı bir Çubuk Grafik. İlk 2 öğe: 5, 7. ...

data.allData and data.partialData now start with a space, so the data part does not stick to the previous sentence.

The outputs above were produced by a small script that fills the locale strings in the same order as src/visual/aria.ts, not by rendering a chart in a browser. npx eslint src/i18n/langTR.ts and npx tsc --noEmit pass. Only src/i18n/langTR.ts is changed; i18n/langTR*.js are left to the release build, as in #21785.

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

Security Checking

  • This PR uses security-sensitive Web APIs.

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Merging options

  • Please squash the commits into a single one when merging.

Other information

Prepared with AI assistance and reviewed by me.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@echarts-bot

echarts-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant