From 56167101ce174db034e973fb548df3f3ceadc473 Mon Sep 17 00:00:00 2001 From: Kushagra Gour <chinchang457@gmail.com> Date: Mon, 4 Mar 2019 16:50:26 +0530 Subject: [PATCH] add devdocs --- devdocs/i18n.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 devdocs/i18n.md diff --git a/devdocs/i18n.md b/devdocs/i18n.md new file mode 100644 index 0000000..a18f2f0 --- /dev/null +++ b/devdocs/i18n.md @@ -0,0 +1,12 @@ +# i18n + +This needs to be added to `.babelrc` before lingui commands can be run. Otherwise lingui doesn't get the right babel presets and `macros` plugin to extract strings. + +``` + "presets": ["preact-cli/babel"], + "plugins": ["macros"], +``` + +## Why not add it permanently? + +Because then app breaks!