Skip to content

$te is true but value is not actually translatable #1559

@plehnen

Description

@plehnen

Reporting a bug?

When $te is matching to only a part of a valid translation key it still returns true

Expected behavior

It should return false, unless there is really a translation for this key.

Reproduction

https://stackblitz.com/edit/vitejs-vite-osouet?file=src%2Fmain.ts,src%2FApp.vue

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 67.01 GB / 95.78 GB
  Binaries:
    Node: 18.17.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.6.12 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Chrome: 116.0.5845.188
    Edge: Spartan (44.22621.2283.0), Chromium (116.0.1938.81)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @intlify/unplugin-vue-i18n: 1.2.0 => 1.2.0
    @vitejs/plugin-vue: 4.3.4 => 4.3.4
    @vue/compiler-dom: 3.3.4 => 3.3.4
    @vue/eslint-config-prettier: 8.0.0 => 8.0.0
    @vue/eslint-config-typescript: 12.0.0 => 12.0.0
    @vue/runtime-core: 3.3.4 => 3.3.4
    @vue/server-renderer: 3.3.4 => 3.3.4
    @vue/test-utils: 2.4.1 => 2.4.1
    vite: 4.4.9 => 4.4.9
    vite-bundle-visualizer: 0.10.0 => 0.10.0
    vitest: 0.34.4 => 0.34.4
    vue: 3.3.4 => 3.3.4
    vue-eslint-parser: 9.3.1 => 9.3.1
    vue-focus-lock: 2.0.5 => 2.0.5
    vue-global-events: 3.0.0 => 3.0.0
    vue-i18n: 9.4.1 => 9.4.1
    vue-router: 4.2.4 => 4.2.4
    vue-tsc: 1.8.11 => 1.8.11

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