I'm trying to use this jQuery plugin to internationalize my web app.
Specifically, I'm wanting to use the API data in the fields to translate but alert
returns "one" and not "ONE" and the spans tags remain with One and Two.
Page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery i18n Demo</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script><scriptsrc="../src/jquery.i18n.js"></script>
<script src="../src/jquery.i18n.messagestore.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/bootstrap.min.js"></script>
<script>
$.i18n({
locale: 'en'
});
alert($.i18n("um"));
</script>
</head>
<body>
<span data-i18n="um">Um</span>.
<span data-i18n="dois">Dois</span>.
</body>
</html>
en.json
{
"um": "ONE",
"dois": "TWO"
}
Has anyone used it yet and can you help?