I want to translate the alert. I used angular-gettext
;
How can I output the translated contents from alert()
in angular-gettext
? example for
swal("", "<span translate>mobile.ver.send</span>");
or
alert("", "<span translate>mobile.ver.send</span>");
Currently it works well in html.
<span translate>mobile.ver.send</span>
alert(gettext(mobile.ver.send));
您可以在此处了解更多信息: https : //angular-gettext.rocketeer.be/dev-guide/annotate-js/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.