Last active
December 26, 2015 14:19
-
-
Save TerryMooreII/7164405 to your computer and use it in GitHub Desktop.
Sample code for blog
This file contains hidden or 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
<html> | |
<body> | |
<div id="myId"> | |
<span data-i18n="welcome"></span> <!-- Updates the span text with the welcome value from the translation file--> | |
<input data-i18n="enter_name"> <!-- Updates the placeholder value with enter_name value fro from the translation file--> | |
</div> | |
<script src="path/to/jquery"></script> | |
<script src="path/to/jquery.i18n.js"></script> | |
<script> | |
$('body').i18n(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment