Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>nur-vue-i18nNew to Visual Studio Code? Get it now.
nur-vue-i18n

nur-vue-i18n

JustFig

|
129 installs
| (0) | Free
i18n plugin for vue
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vue i18n

✨ 快速开始

  • 配置数据
    • 约定根目录为package.json所在目录

      项目 描述
      nurVueI18n.defaultVuePath vue文件所在目录(默认src/components 提取全部数据(Ctrl+Shift+Alt+U)及替换全部数据(Ctrl+Shift+Alt+I)时会使用此目录)
      nurVueI18n.defaultLocalesPath 国际化文件目录(默认src/i18n/langs)
      ~~nurVueI18n.langFile 中文文件名(默认zh-CN.json)~~
      ~~nurVueI18n.enFile 英文文件名(默认en.json)~~
      nurVueI18n.parentDirLevel 文件父目录前缀层数(默认0 0表示直接以文件名做前缀)
      nurVueI18n.modulePrefixFoUpdateJson 生成的JSON的额外前缀(默认menu 此项不为空时将会以此项的值在文件名外再包裹一层)
      nurVueI18n.notUseFileNameAsKey 是否不使用文件名做前缀(默认false)
      nurVueI18n.fileNameSubstitute 不使用文件名做前缀时的前缀(默认空 nurVueI18n.notUseFileNameAsKey为true时,此项必填)
      nurVueI18n.notScript 提取中文时,是否不包含Script中的内容(默认true)
      nurVueI18n.nurSource 同步后台数据时的后台地址(默认http://127.0.0.1/imedical/web/csp/dhc.nursemg.four.getdata.csp 同步后台数据(Ctrl+Alt+Y)时会使用此地址)
      nurVueI18n.nurSourceType 同步后台数据时的请求方式(默认POST)
      nurVueI18n.nurSourceParam 同步后台数据时的Param(默认空 请求方式为GET时生效)
      nurVueI18n.nurSourceForm 同步后台数据时的数据(默认空 请求方式为POST时生效)
      nurVueI18n.BaiduAPI 百度翻译接口地址(默认https://fanyi-api.baidu.com/api/trans/vip/translate)
      nurVueI18n.BaiduAPIDelay 百度翻译两次请求之间的间隔(默认1000ms 百度翻译有限制 普通版1QPS 高级版10QPS 企业版100QPS)
      nurVueI18n.BaiduAppID 百度翻译AppID(默认空)
      nurVueI18n.BaiduKey 百度翻译Key(默认空)
      nurVueI18n.transAllBackPath 备份目录(默认nur_vue_i18n_back 替换全部数据(Ctrl+Shift+Alt+I)时会使用此目录)
      nurVueI18n.threadhold 提取公共词组的阈值(默认2 提取全部数据(Ctrl+Shift+Alt+U)时会使用此值,一个词组出现的评论超过阈值时,将被加入公共词组中)
      nurVueI18n.caller 在js中的调用方式, 需关闭'notScript'(默认i18n)
      nurVueI18n.importDeclaration 添加在js之前的导入声明, 需关闭'notScript'(默认import i18n from '@/i18n/index')
      nurVueI18n.ignorePorperty 需要忽略的属性名 (默认 ['dict-code','dictCode'] )
      nurVueI18n.ignoreMethod 需要忽略的方法名 (默认 ['loadSysParamSubData'] )
      nurVueI18n.recoveryPrefix 需要还原的数据 (默认 ['common.label'] )
      nurVueI18n.autoFormmat 是否自动格式化转换后的代码 (默认 true )
      nurVueI18n.maintainCaller 还原数据时是否保留Caller (默认 false )
      nurVueI18n.languages 多语言列表 ('array'类型, 默认值 [{"code":"zh-CN","name":"简体中文","languageCode":"zh-CN","jsonFileName":"zh-CN.json"},{"code":"en","name":"English","languageCode":"en","jsonFileName":"en.json"},{"code":"portuguese","name":"Português","languageCode":"pt","jsonFileName":"portuguese.json"}] )
  • 快捷命令
    • 同步后台数据(Ctrl+Alt+Y)
    • 提取当前数据(Ctrl+Alt+U)
    • 翻译当前数据(Ctrl+Alt+T)
    • 替换当前数据(Ctrl+Alt+I)
    • 预览当前数据(Ctrl+Alt+O)
    • 隐藏当前数据(Ctrl+Alt+O)
    • 导出当前数据(Ctrl+Alt+R)
    • 提取全部数据(Ctrl+Shift+Alt+U)
    • 翻译全部数据(Ctrl+Shift+Alt+T)
    • 替换全部数据(Ctrl+Shift+Alt+I)
    • 还原当前数据(Ctrl+Alt+W)
    • 还原全部数据(Ctrl+Shift+Alt+W)
    • 导出全部数据(Ctrl+Shift+Alt+R)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft