Permalink
Browse files

Fix the examples.

  • Loading branch information...
1 parent 1050b8f commit 43426d65dab6e9307470efac5ce1bd78fb7b44ff Kit Goncharov committed Apr 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/templating.js
View
@@ -1,9 +1,9 @@
var i18n = require("./../index").i18n,
instance = new i18n(__dirname + "/locales");
console.log(instance);
-instance.load("en");
+instance.setLocale("en");
console.log(instance.t("sup") === "hi"); // true
console.log(instance.t("object.what.is") === "new"); // true
-console.log(instance.t("object.value" === { hi: "hello"}), "testing hello"); // true
+console.log(instance.t("object.value", { hi: "hello"}) === "testing hello"); // true
console.log(instance.t("object.value") === "testing hello"); // false

0 comments on commit 43426d6

Please sign in to comment.