mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 06:51:12 +02:00
add devdocs
This commit is contained in:
12
devdocs/i18n.md
Normal file
12
devdocs/i18n.md
Normal file
@@ -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!
|
Reference in New Issue
Block a user