vue-i18n-extractis built to work with your Vue.js projects using the libraryvue-i18n. It runs static analysis on your Vue.js source code looking for anyvue-i18nusage, in order to: Report allmissing keysin your language files. Report allunused keysin your language files. ...
Added json5 language file support with json5 lib, as vite plugin i18n (and unplugin i18n) do support json5. https://github.com/intlify/bundle-tools/tree/main/packages/vite-plugin-vue-i18n#locale-messages-formatting
在命令行执行: npm install --save-dev vue-i18n-extract 设置package.json 在package.json里添加如下设置: {"scripts":{"i18n_ext":"vue-i18n-extract report -v './src/pages/**/*.vue' './src/components/*.vue' -l './src/assets/lang/*.json'","vue-i18n-extract":"npm run i18n_ext"}}...
npm install --save-dev vue-i18n-extract Import the module and use it like this: constVueI18NExtract=require('vue-i18n-extract');constreport=VueI18NExtract.createI18NReport({vueFiles:'./path/to/vue-files/**/*.?(js|vue)',languageFiles:'./path/to/language-files/*.?(json|yml|yaml|js)...
Manage vue-i18n localization with static analysis. Latest version: 1.0.0, last published: 8 months ago. Start using @it-brains/vue-i18n-extract in your project by running `npm i @it-brains/vue-i18n-extract`. There are no other projects in the npm registr