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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...