Skip to content

Explicitly terminate the parsing scope of linked messages #2163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
yxk0909 opened this issue Apr 10, 2025 · 0 comments
Open
4 tasks done

Explicitly terminate the parsing scope of linked messages #2163

yxk0909 opened this issue Apr 10, 2025 · 0 comments
Labels
Status: Review Needed Request for review comments

Comments

@yxk0909
Copy link

yxk0909 commented Apr 10, 2025

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

@yxk0909 yxk0909 added the Status: Review Needed Request for review comments label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed Request for review comments
Projects
None yet
Development

No branches or pull requests

1 participant