Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(window.location.href.indexOf("sv") > -1) {
- //CUSTOM TRANSLATIONS
- var translations = {
- 'All' : 'alla',
- 'Filter Members' : 'Filtrera medlemar',
- }
- for (var key in translations) {
- if (translations.hasOwnProperty(key)) {
- console.log(key + " -> " + translations[key]);
- $body = jQuery("body");
- replaceThis = new RegExp(key, "g");
- alert(replaceThis);
- $body.html($body.html().replace(replaceThis, translations[key]));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement