Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>fluent-i18nNew to Visual Studio Code? Get it now.
fluent-i18n

fluent-i18n

dzg_melody

|
410 installs
| (0) | Free
an auto-completion tool to help input i18n keys for js or vue
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

fluent-i18n(zh-CN)

i18n 通常方案是根据不同语言查找对应的map。这种方案在开发时存在的一大问题是大量的key,使开发者无法全部记忆,每次使用都需要查找映射表,严重影响开发效率。本项目是为了解决该问题,提高开发效率:

  • 在js中使用:

use in js

  • 在vue模板中使用:

use in vue

使用方式

下载插件后,在配置中添加keys

{
  "fluentI18n.autoCompletion.keys": [
    "confirm",
    "OK",
    "cancel",
    "Error",
    "Hello i18n"
  ]
}

在js,ts,vue 文件中会自动获取配置中keys,并在输入t(或者$t(时触发auto-completion

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