Xcat I18n Preview READMExcat preview i18n.t(key) value 配置在settings.json中添加以下配置:用来指定翻译文件源 "xcatI18nPreview.translationFiles": [ "assets/scripts/framework/i18n/files/*.ts", "assets/csv/language.csv", ] 完整的配置选项interface ExtensionConfig { functionName: string;// translationFiles: string[]; greenColor: string; redColor: string; yellowColor: string; } 默认配置{ "xcatI18nPreview.functionName": "i18n.t",// 翻译函数名 "xcatI18nPreview.translationFiles": [// 翻译文件源 "assets/scripts/framework/i18n/files/*.ts", "assets/csv/language.csv", ], "xcatI18nPreview.greenColor": "#00FF00",// 翻译存在时的颜色 "xcatI18nPreview.redColor": "#FF0000",// 翻译不存在时的颜色 "xcatI18nPreview.yellowColor": "#FFFF00",// 配置项functionName或者translationFiles为空时的颜色 } |