Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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