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

Passing config options to vue-i18n

mattgrande opened this issue · comments

Hi there, I'm hoping you can help me with something. I need to pass the keys silentTranslationWarn and silentFallbackWarn (as regex) to the vue-i18n plugin.

I assumed that adding the to vue.config.js would pass it through, but that doesn't appear to be the case:

module.exports = {
  ...
  pluginOptions: {
    i18n: {
      locale: 'en',
      fallbackLocale: 'en',
      enableInSFC: false,
      silentTranslationWarn: /^mdi/,
      silentFallbackWarn: /^mdi/,
    },
  },
}

Am I doing something wrong? Or is this not available?

If this isn't available, would you be open to a PR to add this?