-
Hi there! I was wondering whether there is a supported way to get basic insights into the state of the translations in a project. Using the following locales // de.json
{
"A": "B",
"B": "C"
}
// en.json
{
"A": "B",
"C": "D"
} and the following template, <template>
<div>{{ $t('A') }}</div>
<div>{{ $t('B') }}</div>
<div>{{ $t('C') }}</div>
</template> how could I programmatically identify which translation keys used in the project have no representation in the locale files, and what percentage is missing? In our example, this is the information I would want:
I know that a warning is logged when Thanks for any pointers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might be able to resolve with /cc @ota-meshi
You might be able to resolve with vue-i18n-extract that created by @pixari I’m going to plan to provide type-safe for i18n resources via TypeScript in the near future. (But only JSON at first). |
Beta Was this translation helpful? Give feedback.
You might be able to resolve with
@intlify/eslint-plugin-vue-i18n
using.https://github.com/intlify/eslint-plugin-vue-i18n
/cc @ota-meshi
You might be able to resolve with vue-i18n-extract that created by @pixari
https://github.com/pixari/vue-i18n-extract
I’m going to plan to provide type-safe for i18n resources via TypeScript in the near future. (But only JSON at first).
Currently, I'm improving it.
Type…