Repository navigation
fix(Translation): 重新命名不符 content_id 規範的資料夾 - #972
Merged
Merged
Conversation
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" 仍需自己收斂。
Contributor
📦 建構產物預覽本 PR 的翻譯資源包已建構完成,可直接下載測試,不需要 GitHub 帳號:
|
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.
No description provided.