We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
比如是变量 msg 替换 “石油这东西是非常珍贵的,拿来烧了完全是暴殄天物,这是油车天然的弱点。这就好比大家养牲畜,最好是草食动物,或者至少应该是杂食动物,除非是土豪,否则不会去养肉食动物。狗和猫本来是肉食动物,跟着人混也变成杂食了。原因很简单,植物的成本最低,肉人类自己都不够吃谁养得起。”
使用时 <span>{{ t(msg) }}</span>
<span>{{ t(msg) }}</span>
然后在编译时将 msg 替换为 长段中文
The text was updated successfully, but these errors were encountered:
t是不支持变量的,像{{ t(msg) }}是不支持的
t
{{ t(msg) }}
也不支持模板字符串,像下面这种
<span>{{ t(`石油这东西是非常珍贵的,拿来烧了完全是暴殄天物,这是油车天然的弱点。这就好比大家养牲畜,最好是草食动物,或者至少应该是杂食动物,除非是土豪,否则不会去养肉食动物。狗和猫本来是肉食动物,跟着人混也变成杂食了。原因很简单,植物的成本最低,肉人类自己都不够吃谁养得起`) }}</span>
但是你可以这样:
const msg=t("石油这东西是非常珍贵的,拿来烧了完全是暴殄天物,这是油车天然的弱点。这就好比大家养牲畜,最好是草食动物,或者至少应该是杂食动物,除非是土豪,否则不会去养肉食动物。狗和猫本来是肉食动物,跟着人混也变成杂食了。原因很简单,植物的成本最低,肉人类自己都不够吃谁养得起") <span>{{ t(msg) }}</span>
Sorry, something went wrong.
No branches or pull requests
比如是变量 msg 替换 “石油这东西是非常珍贵的,拿来烧了完全是暴殄天物,这是油车天然的弱点。这就好比大家养牲畜,最好是草食动物,或者至少应该是杂食动物,除非是土豪,否则不会去养肉食动物。狗和猫本来是肉食动物,跟着人混也变成杂食了。原因很简单,植物的成本最低,肉人类自己都不够吃谁养得起。”
使用时
<span>{{ t(msg) }}</span>
然后在编译时将 msg 替换为 长段中文
The text was updated successfully, but these errors were encountered: