Skip to content

Explicitly terminate the parsing scope of linked messages #2163

@yxk0909

Description

@yxk0909

Reporting a bug?

When explicit termination of linked message parsing scope is required, use the pipe character | to demarcate boundaries (exception will be displayed).

const messages = {
  zh_CN: {
    message: {
      name: '张三',
      linked: '@:message.name| 批准了这个请求'
    }
  }
}

Expected behavior

Output:
<p>张三批准了这个请求</p>

Reproduction

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

System Info

System:
    OS: macOS 15.3.2
    CPU: (8) arm64 Apple M1
    Memory: 104.13 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    pnpm: 9.14.4 - ~/.nvm/versions/node/v22.11.0/bin/pnpm
  Browsers:
    Chrome: 135.0.7049.85
    Edge: 135.0.3179.54
    Safari: 18.3.1

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