You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linked messages can be used to combine existing messages into one larger message.
From what I can tell, vue-i18n-extract only checks the vueFiles to determine if a message is used or not, while the languageFiles also can use their own messages with this feature.
Run npx vue-i18n-extract report --vueFiles './src/App.vue' --languageFiles './src/locales/*.?json'
"message.the_world" and "message.dio" are reported as unused
What you expected would happen
Messages used to create linked messages to not be reported as unused.
My suggestion: Treat any message linked referenced with the @: syntax as used. If the message making the reference is deleted (because that message is maybe unused), the linked message will no longer be referenced, and should once again be reported as unused.
What actually happens
Messages used to create linked messages are reported as unused.
If you run npx vue-i18n-extract report --remove in this project, the App will break.
The text was updated successfully, but these errors were encountered:
Linked messages can be used to combine existing messages into one larger message.
From what I can tell,
vue-i18n-extract
only checks thevueFiles
to determine if a message is used or not, while thelanguageFiles
also can use their own messages with this feature.Steps to reproduce
vue-i18n
src/locales/en-GB.json
src/App.vue
npx vue-i18n-extract report --vueFiles './src/App.vue' --languageFiles './src/locales/*.?json'
"message.the_world"
and"message.dio"
are reported as unusedWhat you expected would happen
Messages used to create linked messages to not be reported as unused.
My suggestion: Treat any message linked referenced with the
@:
syntax as used. If the message making the reference is deleted (because that message is maybe unused), the linked message will no longer be referenced, and should once again be reported as unused.What actually happens
Messages used to create linked messages are reported as unused.
If you run
npx vue-i18n-extract report --remove
in this project, the App will break.The text was updated successfully, but these errors were encountered: