From 42a0076f5951d303635b2e544aa66112cdb9abfe Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 1 Feb 2016 15:10:20 +0100 Subject: new fulfillment protocol --- extension/pogen/example/test.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'extension/pogen/example/test.ts') diff --git a/extension/pogen/example/test.ts b/extension/pogen/example/test.ts index 7bc8520e2..2cc15b063 100644 --- a/extension/pogen/example/test.ts +++ b/extension/pogen/example/test.ts @@ -18,7 +18,11 @@ It has multiple lines, and a trailing empty line. */ console.log(/*lol*/i18n.foo`Hello7,${123} World${42}`); -console.log(i18n.foo`${"foo"}Hello8,${123} World${42}`); + + +i18n.plural() + +console.log(i18n`${"foo"}Hello8,${123} World${42}`); /* @@ -40,3 +44,10 @@ it should be wrapped and stuff`); // This is a single line comment console.log(i18n`Hello12 this is a long long string it will go over multiple lines and in the pofile it should be wrapped and stuff. asdf asdf asdf asdf asdf asdf asdf asdf adsf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf`); + + + +// First occurence +console.log(i18n`This message appears twice`); +// Second occurence +console.log(i18n`This message appears twice`); -- cgit v1.2.3