Socket
Book a DemoInstallSign in
Socket

@widitrade/vue-i18n-scanner

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@widitrade/vue-i18n-scanner

Manage vue-i18n localization with static analysis

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
2
Created
Source

vue-i18n-scanner

Translation string analyzer that reports missing and unused keys

vue-i18n-scanner is built to work with your Vue.js projects using vue-i18n. When run vue-18n-scanner analyses your Vue.js source code for any vue-i18n key usages (ex. $t(''), $tc(''), ...) as well as your language files (ex. de_DE.js, en_EN.json, ...), in order to:

  • Report keys that are missing in the language files.
  • Report unused keys in the language files.
  • Add missing keys to language files

It is built to support both .js and .vue files, and tested and on active use on large codebases

Example

Check the example by running npm run example. You can base your package.json i18n script on that one, or run it directly like:

npx vue-i18n-scanner -v 'src' -l 'locales' -f json -L 'en,es'

Configuration

vue-i18n-scanner is highly opinionated, and doesn't offer configuration besides the CLI options. Run npx vue-i18n-scanner report --help to learn more

License

MIT

Keywords

javascript

FAQs

Package last updated on 22 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.