-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
25 lines (25 loc) 路 872 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"name": "react-intl-po-example",
"version": "0.1.5",
"private": true,
"dependencies": {
"react": "16.2.0",
"react-dom": "16.2.0",
"react-intl": "2.4.0"
},
"devDependencies": {
"react-intl-cra": "0.3.3",
"react-intl-po": "2.2.0",
"react-scripts": "1.1.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"extract:messages": "react-intl-cra 'src/**/*.js' -o 'output/messages.json'",
"extract:pot": "react-intl-po json2pot 'output/messages.json' -o 'output/messages.pot'",
"extract:pot-c": "react-intl-po json2pot 'output/messages.json' -c 'id' -o 'output/messages-c.pot'",
"extract:po-c": "react-intl-po po2json 'input/*.po' -c 'id' -m 'output/messages.json' -o 'output/translation.json'"
}
}