mirror of
https://github.com/chinchang/web-maker.git
synced 2025-04-22 11:44:28 +02:00
add devdocs
This commit is contained in:
parent
50e9f65b73
commit
56167101ce
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!
|
Loading…
x
Reference in New Issue
Block a user