sheet-i18n 1.3.2 → 1.3.4
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.md +34 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,12 +28,12 @@ The `sheet-i18n` ecosystem is divided into three main packages:
|
|
|
28
28
|
|
|
29
29
|
- `sheet-i18n/exporter`
|
|
30
30
|
- `sheet-i18n/react`
|
|
31
|
-
- `@sheet-i18n/cli
|
|
31
|
+
- `@sheet-i18n/cli`
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
<details>
|
|
36
|
-
<summary
|
|
35
|
+
<details open>
|
|
36
|
+
<summary>🌍 Server Export Function - sheet-i18n/exporter</summary>
|
|
37
37
|
|
|
38
38
|
#### `sheet-i18n/exporter`
|
|
39
39
|
|
|
@@ -419,7 +419,7 @@ This project is licensed under the ISC License.
|
|
|
419
419
|
---
|
|
420
420
|
|
|
421
421
|
<details>
|
|
422
|
-
<summary
|
|
422
|
+
<summary>🔧 CLI for Automated Translation Management - @sheet-i18n/cli</summary>
|
|
423
423
|
|
|
424
424
|
#### @sheet-i18n/cli
|
|
425
425
|
|
|
@@ -617,6 +617,8 @@ npx sheet-i18n init
|
|
|
617
617
|
|
|
618
618
|
Sets up the `sheet.config.json` file in your project. This configuration file is required for all other commands.
|
|
619
619
|
|
|
620
|
+
</br>
|
|
621
|
+
|
|
620
622
|
### 👀 watch
|
|
621
623
|
|
|
622
624
|
```shell
|
|
@@ -672,6 +674,8 @@ Example:
|
|
|
672
674
|
npx sheet-i18n watch --directory src
|
|
673
675
|
```
|
|
674
676
|
|
|
677
|
+
</br>
|
|
678
|
+
|
|
675
679
|
### 📤 register
|
|
676
680
|
|
|
677
681
|
```shell
|
|
@@ -731,6 +735,32 @@ npx sheet-i18n register
|
|
|
731
735
|
sheet-i18n register --scope total
|
|
732
736
|
```
|
|
733
737
|
|
|
738
|
+
</br>
|
|
739
|
+
|
|
740
|
+
### 📄 export
|
|
741
|
+
|
|
742
|
+
```shell
|
|
743
|
+
npx sheet-i18n export
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
Exports translation data from Google Sheets to local export directory.
|
|
747
|
+
The configuration of export command is based on **`sheet.config.json`** on your root.
|
|
748
|
+
|
|
749
|
+
```json
|
|
750
|
+
{
|
|
751
|
+
"googleSheetConfig": {
|
|
752
|
+
"credentials": {
|
|
753
|
+
"sheetId": "YOUR_GOOGLE_SHEET_ID",
|
|
754
|
+
"clientEmail": "YOUR_CLIENT_EMAIL",
|
|
755
|
+
"privateKey": "YOUR_PRIVATE_KEY"
|
|
756
|
+
},
|
|
757
|
+
"defaultLocale": "The base language of your application in sheet header",
|
|
758
|
+
"ignoredSheets": ["BASE"],
|
|
759
|
+
"exportPath": "The path of export directory of translation data. (default: current working directory)"
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
```
|
|
763
|
+
|
|
734
764
|
---
|
|
735
765
|
|
|
736
766
|
## License 📜
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheet-i18n",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/chltjdrhd777/sheet-i18n"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "ISC",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@sheet-i18n/exporter": "1.3.2",
|
|
40
|
-
"@sheet-i18n/react": "0.4.
|
|
40
|
+
"@sheet-i18n/react": "0.4.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^6.0.0",
|