Skip to content

feat(i18n): 新增韩语(ko-KR)界面语言支持 - #259

Open
Lisianthus9903 wants to merge 3 commits into
MaaXYZ:masterfrom
Lisianthus9903:master
Open

Lisianthus9903 wants to merge 3 commits into
MaaXYZ:masterfrom
Lisianthus9903:master

Conversation

@Lisianthus9903

@Lisianthus9903 Lisianthus9903 commented Oct 17, 2026 •

Copy link
Copy Markdown

概述

新增韩语(한국어, ko-KR)界面语言。实现方式与现有的日语(ja-JP)一致,不改动其他语言的行为。

改动内容

  • MFAAvalonia/Helper/LanguageHelper.cs
    • SupportedLanguageKeys、SupportedLanguages 中加入 ko-KR(显示名:한국어)
    • LegacyLanguageMappings 中加入旧版索引 4 / 4L → ko-KR
    • 新增 IsKorean(),将 interface 语言代码 ko、ko-KR、ko_kr 统一归一化为 ko-KR
      • 仅匹配 ko 或 ko-*,不会把 kok(孔卡尼语)等以 ko 开头的其他语言代码误判为韩语,避免其资源覆盖韩语界面文本
  • MFAAvalonia/Assets/Localization/Strings.ko-KR.resx(新增)
    • 共 786 个键,与 Strings.resx 的键集合完全一致,无缺失或多余
    • 教程类文本中引用的按钮/选项名称与实际韩文界面标签保持一致;“配置(프로필)”“截图模式(캡처 모드)”“启动(실행)”“下载源(다운로드 소스)”等术语全文统一
  • SukiUI/Locale/ko-kr.axaml、ko-kr.axaml.cs(新增)
    • SukiUI 控件文本的韩语资源字典,24 个键,与 ja-jp.axaml 键集合一致
  • SukiUI/Theme/Index.axaml.cs
    • 在语言映射中注册 "ko-KR" → ko_kr

测试

  • 在 Windows x64 上发布并实际运行:设置中可选择“한국어”,切换后主界面、设置页、SukiUI 控件均显示韩文,默认配置名显示为“프로필 1”
  • 语言代码归一化:ko / ko-KR / ko_kr / KO-kr → ko-KR;kok / kok-IN / kos 不会被识别为韩语;ja-JP / en-US / zh-CN 结果不变

备注

  • 如后续界面文本有新增键,我可以继续补充韩语翻译。

Sourcery 摘要

为应用程序界面和 SukiUI 控件添加完整的韩语本地化支持。

新功能:

  • 添加韩语(ko-KR)作为可选界面语言,并提供应用程序和 SukiUI 翻译。

增强功能:

  • 规范化韩语区域标识符,同时避免与其他以“ko”开头的语言发生误匹配。
Original summary in English

Summary by Sourcery

Add complete Korean localization support across the application interface and SukiUI controls.

New Features:

  • Add Korean (ko-KR) as a selectable interface language with application and SukiUI translations.

Enhancements:

  • Normalize Korean locale identifiers while avoiding false matches for other languages beginning with “ko”.

Lisianthus9903 and others added 3 commits October 9, 2026 01:28
- Register ko-KR in LanguageHelper (supported keys, legacy index 4,
  display name, interface language code normalization for ko/ko-kr/ko_kr)
- Add SukiUI ko-kr locale dictionary and map it in SukiTheme
All 786 keys translated. Tutorial texts quote the actual UI labels verbatim
and terminology is unified (profile, capture mode, launch, download source).

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

你好——我已经审阅了你的更改,整体看起来非常棒!


Sourcery 对开源项目免费——如果你喜欢我们的评审,欢迎分享 ✨
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

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.

1 participant