refactor(LangUtil): 重构多语言工具类,新增枚举类型安全前缀
1. 将原有的字符串LangPrefix类型改为枚举类型,避免硬编码字符串错误 2. 更新所有使用处的调用方式,统一使用LangPrefix枚举来传入多语言前缀 3. 移除VictoryComp中硬编码的成就描述拼接逻辑,改用lang/langf方法获取多语言文本 4. 注释暂时不需要渲染的分数进度条代码
This commit is contained in:
9
assets/script/game/common/LangUtil.ts.meta
Normal file
9
assets/script/game/common/LangUtil.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "0790610b-af83-4922-ae8c-3b1ced9ff472",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Reference in New Issue
Block a user