Created
June 25, 2019 14:12
-
-
Save bodrovis/c1c20117bace61e3cf98973eab7e57d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.i18n().load( { | |
'en': './i18n/en.json' | |
}).done(function() { | |
$('.change_locale).click(function() { | |
// change locale here... | |
}); | |
}).fail(function() { | |
console.error('Cannot load translations!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment