Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do you handle strings in javascript for multi-lingual sites?
3 ways I can think of:
Any other alternatives I'm missing? What's your preferred method?
You could also generate your javascript in Razor. Than something like this should work:
<script type="text/javascript"> var object1 = 'this is object 1'; var object2 = '@umbraco.library.SomeMethod("name1")'; </script>
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Javascript and different language sites
How do you handle strings in javascript for multi-lingual sites?
3 ways I can think of:
Any other alternatives I'm missing? What's your preferred method?
You could also generate your javascript in Razor. Than something like this should work:
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.