aboutsummaryrefslogtreecommitdiff
path: root/pogen/example/test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-09-26 22:46:38 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-09-26 22:46:38 +0200
commit2a2833f96f341a2a7566093fa1f1d973dd64ded5 (patch)
treee2a39117333f140960b6ade524387ad079f7cd0f /pogen/example/test.ts
parentca8f32ad62d4d3377f5d190deb190913ae3b52a4 (diff)
Add pluralization to ts pogen
Diffstat (limited to 'pogen/example/test.ts')
-rw-r--r--pogen/example/test.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/pogen/example/test.ts b/pogen/example/test.ts
index 2cc15b063..ffb01e0b9 100644
--- a/pogen/example/test.ts
+++ b/pogen/example/test.ts
@@ -20,7 +20,9 @@ It has multiple lines, and a trailing empty line.
console.log(/*lol*/i18n.foo`Hello7,${123} World${42}`);
-i18n.plural()
+i18n.plural(i18n`one ${"foo"}`, i18`many ${"bar"}`);
+
+i18n.plural(i18n.foo`one bla ${"foo"}`, i18.foo`many bla ${"bar"}`);
console.log(i18n`${"foo"}Hello8,${123} World${42}`);
@@ -45,6 +47,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`);
+function foo(...args: any[]) {
+}
+
+console.log(foo`Another string, must be excluded`);
// First occurence