aboutsummaryrefslogtreecommitdiff
path: root/pogen
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-26 22:48:57 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-26 22:48:57 +0200
commit77e956705a01185b61f42bf59f04d3323e267cd4 (patch)
tree7712ebb79e64cac4a2803ed72fe2595af5c432c2 /pogen
parent2a2833f96f341a2a7566093fa1f1d973dd64ded5 (diff)
pogen example
Diffstat (limited to 'pogen')
-rw-r--r--pogen/example/test.ts4
1 files changed, 4 insertions, 0 deletions
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}`);
/*