intlify / vue-cli-plugin-i18n

:globe_with_meridians: Vue CLI plugin to add vue-i18n to your Vue Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: ignore paths in report (i18n:report --ignore one,another.path)

caugner opened this issue · comments

Summary

I would like to ignore specific paths in the i18n:report.

Background

I have some components that fetch keys dynamically, e.g. <LanguageName code="de-DE" /> with {{ $t(`languages.${code}`) }}.

Problem

The i18n:report unfortunately doesn't account for these dynamic usages, and therefore marks

  • the usage as missing, and
  • the corresponding entries as unused (if they're not used anywhere else).