Skip to content

Commit

Permalink
fix: adding babel preset to fixing extract command
Browse files Browse the repository at this point in the history
  • Loading branch information
zainchen committed Mar 17, 2021
1 parent b1f290e commit d897eb2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"store": "^2.0.0"
},
"devDependencies": {
"@babel/preset-react": "^7.12.13",
"@lingui/cli": "^3.7.0",
"@lingui/macro": "^3.7.2",
"@umijs/preset-react": "^1.4.0",
Expand Down Expand Up @@ -82,12 +83,14 @@
]
},
"lingui": {
"fallbackLocale": "en",
"fallbackLocales": {
"default": "en"
},
"sourceLocale": "en",
"locales": [
"en",
"zh",
"pr"
"pt-br"
],
"catalogs": [
{
Expand All @@ -103,7 +106,8 @@
"format": "minimal",
"extractBabelOptions": {
"presets": [
"@umijs/babel-preset-umi"
"@umijs/babel-preset-umi",
"@babel/preset-react"
]
}
},
Expand Down

0 comments on commit d897eb2

Please sign in to comment.