Skip to content

扩展本地化规则并接入译文导入 - #11

Merged
QiuYe-QAQ merged 8 commits into
26.1from
qy/localization-rules-26.1
Nov 21, 2026
Merged

QiuYe-QAQ merged 8 commits into
26.1from
qy/localization-rules-26.1

Conversation

@QiuYe-QAQ

Copy link
Copy Markdown
Member

目的

扩展 26.1 本地化声明与候选解析,接入可扩展术语、单位格式、Locale 转换及导入译文修订状态。

实现内容

  • 通过 Glossary 接口支持自定义词表,实现领域、文本类型、术语关系、别名和单位查询。
  • 增加可组合的声明默认值与单位 Locale 格式规则。
  • 接入 Locale 转换图,保护 Minecraft 占位符、样式码、URL、换行和单位符号。
  • 新增导入译文 API,按所属模组的源文本计算修订,处理审核状态、锁定、优先级和过期诊断。
  • 按实际职责调整本地化类型名称,并移除 IDEA 可推断的泛型实参。

验证

  • .gradlew.bat --offline build runGameTestServer --console=plain 通过。
  • 12 个必需 GameTest 全部通过。

后续范围

Gradle 交换插件、稳定的导入导出协议、覆盖报告、IDEA 插件和翻译平台适配不在本 PR 范围内。

@QiuYe-QAQ
QiuYe-QAQ requested a review from a team as a code owner November 21, 2026 11:14
@github-actions github-actions Bot added 26.1 Tests: Passed Game Tests have passed on this PR labels Nov 21, 2026
@QiuYe-QAQ QiuYe-QAQ added Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release type: feature New feature or request bundled for a 0.X.0 Update labels Nov 21, 2026
@QiuYe-QAQ
QiuYe-QAQ merged commit 2a9f728 into 26.1 Nov 21, 2026
5 of 7 checks passed
@QiuYe-QAQ
QiuYe-QAQ deleted the qy/localization-rules-26.1 branch November 21, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

26.1 Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release Tests: Passed Game Tests have passed on this PR type: feature New feature or request bundled for a 0.X.0 Update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant