Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Miniapp I18n toolNew to Visual Studio Code? Get it now.
Miniapp I18n tool

Miniapp I18n tool

Yukimura

|
4 installs
| (0) | Free
A tool to improve i18n readability.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

插件功能

这个 VS Code 插件旨在提升小程序中多语言代码的可读性。它会自动显示词条对应的中文翻译。

用法

  1. 安装插件
    将插件安装到 VS Code 中。
  2. 配置插件
    安装完插件后,会在工作区的 .vscode/settings.json 自动生成默认配置 "miniapp-i18n-tool.i18nFilePath": "i18n/strings.json"。你可以根据需要修改配置文件路径。
  3. 加载翻译文件
    当前打开的文件目录确保根目录有project.tuya.json文件。
    确保文件路径配置正确,插件会自动加载对应的国际化翻译文件 strings.json 的zh对应的文案。
  4. 装饰文本
    插件会自动扫描当前文件中所有 I18n.t 调用,并在调用的位置旁边显示对应的中文翻译。
  5. 错误提示
    如果找不到配置的翻译文件,会弹出错误提示,并提供一个按钮,点击按钮可以直接打开 .vscode/settings.json 文件进行修改。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft