intlify / vue-i18n

Vue I18n for Vue 3

Home Page:https://vue-i18n.intlify.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jitCompilation not working with deep Linked messages

xibman opened this issue · comments

Reporting a bug?

With jitCompilation compilation activated nested linked messages are not rendered.

It work with messages from level zero but not nested keys

{
  "product": {
      "tc": {
        "howToUse": {
          "content1": "Deep Linked message"
        },
        "usage": {
          "content2": {
            "content": "@:product.tc.howToUse.content1"
          }
        }
      }
    }
}

Expected behavior

Deep linked messages must be rendered

Reproduction

Reproduction : https://stackblitz.com/edit/vitejs-vite-5mazkz?file=src%2Flocales%2Fen.json,src%2FApp.vue,vite.config.ts

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: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.10 - /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