From 77e956705a01185b61f42bf59f04d3323e267cd4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 26 Sep 2016 22:48:57 +0200 Subject: [PATCH] pogen example --- pogen/example/test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pogen/example/test.ts b/pogen/example/test.ts index ffb01e0b9..57d4a6ebc 100644 --- a/pogen/example/test.ts +++ b/pogen/example/test.ts @@ -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}`); /*