Skip to content

fix(Translation): 重新命名不符 content_id 規範的資料夾 - #972

Merged
xMikux merged 2 commits into
mainfrom
fix/content-id-naming
Aug 12, 2026
Merged

xMikux merged 2 commits into
mainfrom
fix/content-id-naming

Conversation

@xMikux

@xMikux xMikux commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

No description provided.

xMikux added 2 commits August 12, 2026 20:33
translation-toolkit v1.8.0 起,content_id 資料夾名稱由建議改為強制契約
(^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$),metadata.ScanAll 遇到非法名稱會拒絕
整次掃描。這 5 個資料夾含有括號、撇號、句點、方括號或重音字元,導致
doctor 與 build 都直接失敗,CI 無法運作。

  [DEPRECATED]-Additional-Bars-[NeoForge]     -> Additional-Bars-NeoForge
  Advanced-XRay-(Fabric-Edition)              -> Advanced-XRay-Fabric
  Ars-Énergistique                            -> Ars-Energistique
  ExtendedAE-1.20                             -> ExtendedAE-1-20
  Italian-Delight-(A-Farmer's-Delight-Add-on) -> Italian-Delight

純改名,67 個檔案全數 100% 相似度,無內容變動。content_id 只用於資料夾識別,
資源包路徑由 mod_id 決定,display_name 也保留原本的名稱,因此對使用者不可見。

ExtendedAE-1-20 保留版本後綴:另有一個 Extendedae(mod_id extendedae,1.21),
本資料夾為 expatternprovider(1.20),模組換過 mod_id 才拆成兩份。
清單只留工具無法代勞的三件事:用 translation-tool init 產生新模組與版本層級、
翻譯異動後跑 progress、commit 訊息符合約定式提交。

刻意不列 CI 已經硬擋的項目(undeclared-tier-dir、group-tier-ambiguity、
metadata schema)。清單裡放滿反正會被擋下的項目,只會讓人整排打勾不看。

另外記下 init 的邊界:它不會動既有層級,新增層級後舊層級的 "<=@latest"
仍需自己收斂。
@xMikux
xMikux requested a review from a team as a code owner August 12, 2026 12:50
@github-actions

Copy link
Copy Markdown
Contributor

📦 建構產物預覽

本 PR 的翻譯資源包已建構完成,可直接下載測試,不需要 GitHub 帳號:

版本 下載
1.18 ModsTranslationPack-1.18.zip
1.19 ModsTranslationPack-1.19.zip
1.20 ModsTranslationPack-1.20.zip
1.21 ModsTranslationPack-1.21.zip
26.1 ModsTranslationPack-26.1.zip
26.2 ModsTranslationPack-26.2.zip

連結由 nightly.link 提供,下載到的就是資源包本身,可直接放進 resourcepacks。
Artifact 保留 3 天,逾期後連結失效;本留言會隨新的 commit 自動更新。
對應 commit:eefb632

@xMikux
xMikux merged commit ed44a6e into main Aug 12, 2026
10 checks passed
@xMikux
xMikux deleted the fix/content-id-naming branch August 12, 2026 12:56
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