sheet-i18n 1.3.9 → 1.3.10
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 +6 -17
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -700,6 +700,9 @@ Example `sheet.config.json`:
|
|
|
700
700
|
|
|
701
701
|
```json
|
|
702
702
|
{
|
|
703
|
+
"watchEntry": "src",
|
|
704
|
+
"detectExtensions": ["tsx", "ts", "jsx", "js"],
|
|
705
|
+
|
|
703
706
|
"googleSheetConfig": {
|
|
704
707
|
"credentials": {
|
|
705
708
|
"sheetId": "YOUR_GOOGLE_SHEET_ID",
|
|
@@ -714,9 +717,9 @@ Example `sheet.config.json`:
|
|
|
714
717
|
}
|
|
715
718
|
```
|
|
716
719
|
|
|
717
|
-
#### 1.
|
|
720
|
+
#### 1. File change monitoring configuration
|
|
718
721
|
|
|
719
|
-
- `
|
|
722
|
+
- `watchEntry` (optional): Entry path to detect file changes relative to current working directory (default: `src`)
|
|
720
723
|
- `detectExtensions` (optional): File extensions to monitor (default: `jsx`, `js`, `tsx`, `ts`).
|
|
721
724
|
|
|
722
725
|
#### 2. Register command configuration
|
|
@@ -745,7 +748,7 @@ Sets up the `sheet.config.json` file in your project. This configuration file is
|
|
|
745
748
|
### 👀 watch
|
|
746
749
|
|
|
747
750
|
```shell
|
|
748
|
-
npx sheet-i18n watch
|
|
751
|
+
npx sheet-i18n watch
|
|
749
752
|
```
|
|
750
753
|
|
|
751
754
|
Monitors files or directories for changes and logs relevant updates.
|
|
@@ -787,16 +790,6 @@ The _watch result_ is
|
|
|
787
790
|
}
|
|
788
791
|
```
|
|
789
792
|
|
|
790
|
-
#### Options:
|
|
791
|
-
|
|
792
|
-
- `-d, --directory <directory>`: Specify the directory to watch.
|
|
793
|
-
|
|
794
|
-
Example:
|
|
795
|
-
|
|
796
|
-
```shell
|
|
797
|
-
npx sheet-i18n watch --directory src
|
|
798
|
-
```
|
|
799
|
-
|
|
800
793
|
</br>
|
|
801
794
|
|
|
802
795
|
### 📤 register
|
|
@@ -817,10 +810,6 @@ Registers translation data to Google Sheets.
|
|
|
817
810
|
|
|
818
811
|
#### Options:
|
|
819
812
|
|
|
820
|
-
- `-d, --directory <directory>`
|
|
821
|
-
Specify the directory to scan for translation data, relative to the current working directory.
|
|
822
|
-
**Default**: `src`
|
|
823
|
-
|
|
824
813
|
- `-s, --scope <scope>`
|
|
825
814
|
Define the scope of the registration process:
|
|
826
815
|
- **`diff`**: Only scans translation keys that have been modified in the Git history (based on `git diff`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheet-i18n",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/chltjdrhd777/sheet-i18n"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
},
|
|
37
37
|
"license": "ISC",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@sheet-i18n/exporter": "1.3.
|
|
40
|
-
"@sheet-i18n/react": "1.0.
|
|
39
|
+
"@sheet-i18n/exporter": "1.3.6",
|
|
40
|
+
"@sheet-i18n/react": "1.0.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^6.0.0",
|
|
44
44
|
"typescript": "^5.0.0",
|
|
45
|
-
"@sheet-i18n/typescript-config": "1.3.
|
|
45
|
+
"@sheet-i18n/typescript-config": "1.3.6"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup",
|