Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Passing config options to vue-i18n #110

Open
mattgrande opened this issue Jun 2, 2020 · 0 comments
Open

Passing config options to vue-i18n #110

mattgrande opened this issue Jun 2, 2020 · 0 comments

Comments

@mattgrande
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant