Skip to content

Modifiers skip missing translation keys #2121

@heohex

Description

@heohex

Reporting a bug?

When we using modifier with missing translation key. Modifier return empty string.
Missing option doesn't help.

Expected behavior

Modifier return missing transition key or modificated text if missing exist.

Reproduction

Minimal reproduction link: https://stackblitz.com/edit/vitejs-vite-ffunv1zp?file=src%2Fmain.ts,src%2Flocales%2Fen.json,src%2FApp.vue

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (16) x64 AMD Ryzen 7 5800X3D 8-Core Processor           
    Memory: 2.03 GB / 31.92 GB
  Binaries:
    Node: 22.12.0 - C:\nvm4w\nodejs\node.EXE
    npm: 10.9.0 - C:\nvm4w\nodejs\npm.CMD
    pnpm: 9.8.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.68)
    Internet Explorer: 11.0.26100.1882
  npmPackages:
    @intlify/unplugin-vue-i18n: 6.0.3 => 6.0.3 
    @vitejs/plugin-vue: 5.2.1 => 5.2.1 
    @vue/eslint-config-typescript: 14.4.0 => 14.4.0 
    vite: 6.1.0 => 6.1.0 
    vite-plugin-checker: 0.8.0 => 0.8.0 
    vite-plugin-vue-devtools: 7.7.2 => 7.7.2 
    vue: 3.5.13 => 3.5.13 
    vue-i18n: 11.1.1 => 11.1.1 
    vue-router: 4.5.0 => 4.5.0 
    vue-tsc: 2.2.0 => 2.2.0

Screenshot

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions