How can I implement internationalization inside the Client Script of a Service Portal Angular Provider?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 02:22 PM
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.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2016 05:03 AM
Sorry,
Deleted my comment. I read your question to fast and saw I answered the wrong thing
//Göran

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2017 02:45 AM
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