From a56210dfc9a40a32a2025eb462eead436ce180bb Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Wed, 16 Nov 2016 04:02:02 +0100
Subject: add JSX translation extraction

---
 pogen/example/test2.tsx | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'pogen/example/test2.tsx')

diff --git a/pogen/example/test2.tsx b/pogen/example/test2.tsx
index 08a1deacc..4133f86fb 100644
--- a/pogen/example/test2.tsx
+++ b/pogen/example/test2.tsx
@@ -1 +1,15 @@
-let y = <div>a{b}c</div>
+let x = <i18n.Translate>foo
+{bar} {" foo "} baz</i18n.Translate>
+
+
+let y = (
+  <i18n.TranslateSwitch>
+    <i18n.TranslateSingular>
+      singular form
+      second line
+    </i18n.TranslateSingular>
+    <i18n.TranslatePlural>
+     plural form
+    </i18n.TranslatePlural>
+    </i18n.TranslateSwitch>
+);
-- 
cgit v1.2.3

