pogen example

This commit is contained in:
Florian Dold 2016-09-26 22:48:57 +02:00
parent 2a2833f96f
commit 77e956705a

View File

@ -24,6 +24,10 @@ i18n.plural(i18n`one ${"foo"}`, i18`many ${"bar"}`);
i18n.plural(i18n.foo`one bla ${"foo"}`, i18.foo`many bla ${"bar"}`);
let x = 42;
i18n.plural(i18n`I have ${x} apple`, i18`I have ${x} apples`);
console.log(i18n`${"foo"}Hello8,${123} World${42}`);
/*