[英]How to escape curly braces in Angular's $localize function?
If i try to translate the following text:如果我尝试翻译以下文本:
{example}
like this:像这样:
$localize`{example}`
The text will disappear in the translated build.文本将在翻译后的版本中消失。
Is there a way to escape the curly braces?有没有办法逃避花括号?
Try writing:尝试写:
$localize`${'{'}example}`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.