How can I implement internationalization inside the Client Script of a Service Portal Angular Provider?

sparrowthebird
Tera Contributor

From the Internationalization documentation, I see that Widgets support string internationalization via the ${message} syntax; HTML Templates, Server Scripts, and Client Scripts.   I have confirmed that this works as expected.

It looks like this is not supported inside the Client Script field of an Angular Provider (sp_angular_provider.script) but should be.   Strings declared using this syntax still contain the ${} and haven't been translated.

2 REPLIES 2

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Sorry,



Deleted my comment. I read your question to fast and saw I answered the wrong thing



//Göran


Patrick Schulte
Kilo Guru

Hi Eric,



have you found a solution for this problem already?


I am currently building a Service Portal and encounter the same problem.


I also can't translate any strings that come from variables like for example:



<span ng-repeat="item in c.phoneNumbers">


  <div class="col-lg-3">${{{item.region}}}</div>


  <div class="col-lg-9">{{::item.number}}</div>


</span>



I also tried: ${item.region}, ${{item.region}} and {{${item.region}}} but nothing worked.



Best regards,


Patrick