kazupon / vue-i18n

:globe_with_meridians: Internationalization plugin for Vue.js
https://kazupon.github.io/vue-i18n/
MIT License
7.24k stars 860 forks source link

Missing translations throws an Exception #1649

Open jousepo opened 1 year ago

jousepo commented 1 year ago

Reporting a bug?

When a key is missing in translations the api (this.$t) throws an Error. Version: 9.3.0-beta.14-77e850b Options:

missingWarn: false, fallbackWarn: false, silentTranslationWarn: true, seo: false

Expected behavior

A warning is shown in console

Reproduction

in options api:

this.$t('missing.key')

System Info

System:
    OS: Linux 6.0 Fedora Linux 35 (Workstation Edition)
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 6.73 GB / 14.90 GB
    Container: Yes
    Shell: 5.1.8 - /bin/bash
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
  Browsers:
    Chrome: 109.0.5414.119
    Firefox: 107.0
  npmPackages:
    vite-svg-loader: ^4.0.0 => 4.0.0 
    vue-axios: ^3.5.2 => 3.5.2 
    vue-codemirror: ^6.1.1 => 6.1.1 
    vue-fullscreen: ^3.1.1 => 3.1.1 
    vue-iframes: ^0.0.20 => 0.0.20 
    vue-writer: ^1.2.0 => 1.2.0 
    vue3-grid-layout-next: ^1.0.5 => 1.0.5 
    vue3-markdown-it: ^1.0.10 => 1.0.10 
    vue3-organization-chart: ^1.9.4 => 1.9.4 
    vue3-resize-text: ^0.1.0 => 0.1.0 
    vue3-toastify: ^0.0.4 => 0.0.4 
    vuedraggable: ^4.1.0 => 4.1.0 
    vuetify: ^3.0.6 => 3.1.2 
    vuex: ^4.0.2 => 4.1.0

Screenshot

No response

Additional context

No response

Validations