Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Xcat I18n PreviewNew to Visual Studio Code? Get it now.
Xcat I18n Preview

Xcat I18n Preview

orzt

|
1 install
| (0) | Free
xcat preview i18n.t(key) value
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Xcat I18n Preview README

xcat 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为空时的颜色 }

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft