Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Is it possible to use the parser to extract all used keys? #419

Open
davidwessman opened this issue Aug 3, 2023 · 0 comments

Comments

@davidwessman
Copy link

Tell us about your environment

  • ESLint version: 8.46
  • eslint-plugin-vue version: 9.16
  • eslint-plugin-vue-i18n version:
  • Node version: 18

The problem you want to solve.

I would like to extract a list of used translation keys, to be able to only include the keys we are using.

Your take on the correct solution to problem.

I have investigated https://github.com/intlify/eslint-plugin-vue-i18n/blob/master/lib/rules/no-unused-keys.ts#L78 but could not find any way to continue. Would be okay with running this manually or via eslint and the output could be to stdout or to a file.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant