intl.html revision 628b3b052ecff4d1843c7e919951413fbc03e79f
<html>
<head>
<title>Intl Test</title>
</head>
<body>
<script>
YUI({filter:"raw"}).use("node", "intl", function(Y) {
var b = Y.Node.one("body");
b.append("<p>Lookup Best Match:" + Y.Intl.lookupBestLang("fr-CA", ["en-US", "en-GB", "fr"]) + "</p>");
Y.Intl.after("intl:langChange", function(e) {
});
Y.Intl.add("mystrings", "en-US", {
hello:"Hello"
});
Y.Intl.add("mystrings", "fr", {
hello:"Bonjour"
});
Y.Intl.add("mystrings", "ja-JP", {
hello: "こんにちは"
});
// Intended to be called through Y.use() [ Y.use will pull down the bundle if it's not loaded, or just call _setLang ]
Y.Intl._setLang("mystrings", "fr");
});
</script>
</body>
</html>