@kununu/phraseapp-cli 4.0.0-beta.2 → 4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README_CHECK_TRANSLATIONS.md +55 -0
- package/package.json +2 -6
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# phraseapp-cli
|
|
2
|
+
>
|
|
3
|
+
> phraseapp-cli for <https://phraseapp.com/>
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Add `@kununu/phraseapp-cli` to your project
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @kununu/phraseapp-cli --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Add `check-translations` to your project
|
|
14
|
+
|
|
15
|
+
Add to ```package.json```
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
"check-translations": "SOURCE_DIR=src node ./node_modules/@kununu/phraseapp-cli/check-translations.js",
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Configuration file
|
|
22
|
+
|
|
23
|
+
You have to add to the ```.phraseapp.json``` file a new var dynamicKeys
|
|
24
|
+
|
|
25
|
+
**For example**:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"project_id": "YOUR_PROJECT_ID",
|
|
30
|
+
"path": "YOUR_TRANSLATIONS_PATH",
|
|
31
|
+
"locales": [
|
|
32
|
+
{
|
|
33
|
+
"locale_id": "de_DE",
|
|
34
|
+
"tags": [
|
|
35
|
+
"TAG1",
|
|
36
|
+
"TAG2",
|
|
37
|
+
"TAG3"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"locale_id": "de_AT",
|
|
42
|
+
"tags": [
|
|
43
|
+
(...)
|
|
44
|
+
],
|
|
45
|
+
"fallback_locale_id": "de_DE"
|
|
46
|
+
},
|
|
47
|
+
(...)
|
|
48
|
+
],
|
|
49
|
+
"dynamicKeys": []
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
Apache-2.0 © [kununu](https://kununu.com)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kununu/phraseapp-cli",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "kununu",
|
|
@@ -10,11 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"colors": "1.4.0",
|
|
13
|
-
"dotenv": "16.4.5"
|
|
14
|
-
"@babel/parser": "^7.26.9",
|
|
15
|
-
"@babel/traverse": "^7.26.9",
|
|
16
|
-
"fs": "^0.0.1-security",
|
|
17
|
-
"glob": "^11.0.1"
|
|
13
|
+
"dotenv": "16.4.5"
|
|
18
14
|
},
|
|
19
15
|
"devDependencies": {
|
|
20
16
|
"@kununu/eslint-config": "5.0.1"
|