Angular Translate - How to handle phrases with links

折月煮酒 提交于 2019-12-11 03:02:04

问题


The two issues that I have are how to handle this are:

  1. I am not sure if it is a good idea to let the translator have control of the actual link / action
  2. The issue or rendering translated HTML. [its being rendered as text...]

Is there a best practice / examples on how to handle translations of phrases that need to have links within them? Would this change if I would like to run some action of the scope when some parts of the text are clicked?

e.g. "BY clicking OK you are accepting our Terms of service and Privacy Policy."

or

"BY clicking OK you are accepting our Terms of service and ."

来源:https://stackoverflow.com/questions/26479927/angular-translate-how-to-handle-phrases-with-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!