Skip to content

Instantly share code, notes, and snippets.

@TerryMooreII
Last active December 26, 2015 14:19
Show Gist options
  • Save TerryMooreII/7164405 to your computer and use it in GitHub Desktop.
Save TerryMooreII/7164405 to your computer and use it in GitHub Desktop.
Sample code for blog
<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