Skip to content

[l10n][charts] Add Korean (ko-KR) locale - #24308

Merged
JCQuintas merged 4 commits into
mui:masterfrom
wonjangcloud9:l10n/ko-KR-charts
Nov 24, 2026
Merged

JCQuintas merged 4 commits into
mui:masterfrom
wonjangcloud9:l10n/ko-KR-charts

Conversation

@wonjangcloud9

Copy link
Copy Markdown
Contributor

Adds a Korean (ko-KR) locale to the charts, with all 124 keys translated. It is exported from @mui/x-charts/locales and listed in docs/data/charts/localization/data.json (between Indonesian and Norwegian, since the report is sorted by locale name).

Follows #24295 (Data Grid) and #24303 (Scheduler).

  • Chart types use the names Korean Excel and Office use: 가로 막대형 (bar), 세로 막대형 (column), 꺾은선형, 영역형, 원형. OHLC uses the standard market terms 시가 / 고가 / 저가 / 종가.
  • Particles: strings that insert a value are worded so that no particle follows the value. Export reads PNG 형식으로 내보내기 instead of attaching (으)로 to the format name. The Sankey link reads 서울 → 부산. That way they stay correct for any custom label.
  • Accessibility descriptions keep the English structure (this.a11yConnector, this.a11yNoValue), so a user override of those two still applies.

Checks

I worked in a sparse checkout without installing the workspace, so pnpm l10n, ESLint and the type check did not run locally. What did run:

  • Prettier 3.10.1 on the file, with the options the other locale files pass.
  • A key comparison with enUS.ts: 124 of 124 keys, in the same order.
  • The file loaded with getChartsLocalization stubbed (and the real imageMimeTypes), printing what a user hears or sees:
toolbarExportImage('image/png')                         PNG 형식으로 내보내기
zoomRangeDescription({ x, 12.4, 80 })                    가로축의 12%부터 80%까지 표시
zoomSliderStartLabel({ y }) / EndLabel({ '매출' })        세로축 확대/축소 시작 / 매출 확대/축소 끝
barDescription({ value: null, '1월', '매출' })            1월; 매출; 값 없음
sankeyLinkDescription({ '서울', '부산', '120' })          서울 → 부산; 120
ohlcDescription(…)                                      11월 23일; KOSPI; 시가: 1,000, 고가: 2,000, 저가: 500, 종가: 1,500
ohlcDescription({ open: null, … })                      11월 24일; 값 없음

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@code-infra-dashboard

code-infra-dashboard Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-scheduler 0B(0.00%) 0B(0.00%)
@mui/x-scheduler-premium 0B(0.00%) 0B(0.00%)
@mui/x-chat 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

No regressions in 35 benchmarks · precise to ±11.9% (±54.2% at worst) · ran 7m 03s · details


Check out the code infra dashboard for more information about this PR.

…ion labels

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JCQuintas JCQuintas added l10n Localization. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: charts Changes related to the charts. labels Nov 24, 2026

@JCQuintas JCQuintas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Keys match enUS and the translations read well. One small a11y suggestion on the Sankey link. I don't speak Korean, so the wording suggestions are AI-generated.

Comment thread packages/x-charts/src/locales/koKR.ts Outdated
targetLabel,
}) {
return [
sourceLabel && targetLabel ? `${sourceLabel} → ${targetLabel}` : (sourceLabel ?? targetLabel),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string is read by screen readers, and → is either announced as "right arrow" or skipped depending on the punctuation setting. I don't speak Korean, so these are AI suggestions, please double check:

  • ${sourceLabel}에서 ${targetLabel}까지 ("from A to B"): 에서/까지 never change, so it works for any label.
  • ${sourceLabel}에서 ${targetLabel}(으)로: maybe more natural for a flow, but needs picking 으로/로 based on the last syllable of the label.
Suggested change
sourceLabel && targetLabel ? `${sourceLabel} → ${targetLabel}` : (sourceLabel ?? targetLabel),
sourceLabel && targetLabel ? `${sourceLabel}에서 ${targetLabel}까지` : (sourceLabel ?? targetLabel),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, took ${sourceLabel}에서 ${targetLabel}까지 in c93b02c. It reads naturally and, as you say, needs no particle choice for the label.

Comment thread packages/x-charts/src/locales/koKR.ts Outdated
chartConfigurationStacked: '누적',
chartConfigurationShowToolbar: '도구 모음 표시',
chartConfigurationSkipAnimation: '애니메이션 건너뛰기',
chartConfigurationInnerRadius: '안쪽 반지름',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: 반지름 here but 반경 for border/corner radius, maybe pick one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, c93b02c uses 반경 for all four (border, inner, outer, corner).

@JCQuintas JCQuintas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Pushed a prettier fix for test_static.

@JCQuintas
JCQuintas merged commit 30c4193 into mui:master Nov 24, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

l10n Localization. scope: charts Changes related to the charts. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants