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

Report complete translation path for warnings instead of only translation key #209

Open
coeing opened this issue Jan 26, 2021 · 0 comments

Comments

@coeing
Copy link

coeing commented Jan 26, 2021

🚀 Feature Proposal

Warnings from the CLI command should report the whole translation path instead of only the last part (translation key) to make fixing the warning easier.

Motivation & Example

Every now and then we get a warning like:

i18next-scanner: The translation key "title" has a different default value, you may need to check the translation key of default language (en)

As we use nested JSON as our translation file format, we often have many translation keys that end with "title". Therefore it is very hard to find the translation which causes the warning.

Having the whole translation path there would make it very easy to spot the correct translation.

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