Skip to content

<i18n-t /> does not support scope local #2327

@OrbisK

Description

@OrbisK

Reporting a bug?

<i18n-t> does not (only with workaround) scope local.

Opened nuxt-modules/i18n#3885 first. But could be reproduced with vue-i18n only.

Expected behavior

<i18n-t /> should support scope local.

calling useI18n() (without useScope: "local" btw) should not change the behaviour.

Reproduction

Full minimal reproduction: (with nuxt)

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-a88a28eg?file=app%2Fcomponents%2Fexample%2FExampleWorkaroundI18nTLocal.vue

Relevant part with vue-i18n only:

https://stackblitz.com/edit/vitejs-vite-tarvqq6x?file=src%2FTestComponent.vue

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 20.19.1 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @intlify/unplugin-vue-i18n: ^1.0.1 => 1.0.1 
    @vitejs/plugin-vue: ^4.2.3 => 4.3.4 
    vite: ^4.4.9 => 4.4.9 
    vue: ^3.3.4 => 3.3.4 
    vue-i18n: ^9.3.0 => 9.3.0 
    vue-tsc: ^1.8.8 => 1.8.10

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