Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for your contribution! 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief Information
This pull request is in the type of:
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-labelwas:data.withNamewas' {value} için {name}'("{name} for {value}"), the reverse of the Englishthe data for {name} is {value}.general.withoutTitleends with a period andseries.multiple.prefixstarts with one, which gives...Other strings.
time.monthAbbr[7]AguAğuğ(August is Ağustos)time.dayOfWeekAbbrÇrş,Prş,CtsÇar,Per,Cmtseries.typeNames.sunburstGüeş Patlaması TablosuGüneş Patlaması GrafiğiGüneş), and it is a chart, not a tableseries.typeNames.chartGrafiğiGrafikGrafiğiis the possessive/accusative form, not the nounseries.typeNames.heatmapSıcaklık HaritasıIsı HaritasıSıcaklıkmeans temperature; the usual term isısı haritasıseries.typeNames.candlestickŞamdan GrafikMum Grafiğimum grafiğiseries.typeNames.sankeySankey DiagramıSankey Diyagramıdiyagram)series.typeNames.parallelParalel Koordinat HaritasıParalel Koordinat Grafiğiseries.typeNames.funnel,customHuni Grafik,Özel grafikHuni Grafiği,Özel Grafiktoolbox.magicType.title.line,bar... Grafiğe ÇevirÇizgi Grafiğe Geç,Çubuk Grafiğe Geçtoolbox.magicType.title.stack,tiledYığın,BlokYığılmış,Yan YanaYığın(a pile) andBlok(a block) do not describe stacked / side-by-side barstoolbox.brush.title.clearSeçimi SilSeçimi Temizletoolbox.saveAsImage.langResim Olarak Kaydetmek için Sağ TıklayınResim olarak kaydetmek için sağ tıklayınAfter: How does it behave after the fixing?
The same two charts now give:
data.allDataanddata.partialDatanow 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.tsandnpx tsc --noEmitpass. Onlysrc/i18n/langTR.tsis changed;i18n/langTR*.jsare left to the release build, as in #21785.Document Info
One of the following should be checked.
Misc
Security Checking
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Merging options
Other information
Prepared with AI assistance and reviewed by me.
🤖 Generated with Claude Code