sheet-i18n 1.9.0 → 1.9.2
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 +8 -6
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -753,6 +753,7 @@ Example `sheet.config.ts`:
|
|
|
753
753
|
|
|
754
754
|
```json
|
|
755
755
|
{
|
|
756
|
+
"gitRootPath": ".",
|
|
756
757
|
"watchEntry": "src",
|
|
757
758
|
"detectExtensions": ["tsx", "ts", "jsx", "js"],
|
|
758
759
|
|
|
@@ -777,10 +778,11 @@ Example `sheet.config.ts`:
|
|
|
777
778
|
|
|
778
779
|
### 1. File change monitoring configuration
|
|
779
780
|
|
|
780
|
-
| Option | Type | Required | Default | Description
|
|
781
|
-
| ------------------ | -------- | -------- | -------------------------- |
|
|
782
|
-
| `
|
|
783
|
-
| `
|
|
781
|
+
| Option | Type | Required | Default | Description |
|
|
782
|
+
| ------------------ | -------- | -------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
783
|
+
| `gitRootPath` | string | | "." (CWD) | Git repository root path. Used as the base directory for all git operations (especially useful in monorepo environments) |
|
|
784
|
+
| `watchEntry` | string | | "src" | Entry path to monitor file changes, relative to the current working directory. |
|
|
785
|
+
| `detectExtensions` | string[] | | ["jsx", "js", "tsx", "ts"] | List of file extensions to watch. |
|
|
784
786
|
|
|
785
787
|
### 2. Register command configuration
|
|
786
788
|
|
|
@@ -791,8 +793,8 @@ Example `sheet.config.ts`:
|
|
|
791
793
|
| `credentials.sheetId` | string | ✅ | | The same ID as `spreadsheetId` (for API auth). |
|
|
792
794
|
| `credentials.clientEmail` | string | ✅ | | Client email from your Google Service Account credentials. |
|
|
793
795
|
| `credentials.privateKey` | string | ✅ | | Private key from your Google Service Account credentials. |
|
|
794
|
-
| `
|
|
795
|
-
| `
|
|
796
|
+
| `supportedLocales` | string[] | ✅ | | Array of all supported locale codes in ISO 639-1 format (e.g., `["en", "ko"]`). Recommended to use ISO 639-1 standard. |
|
|
797
|
+
| `defaultLocale` | string | ✅ | | The default language/locale that serves as the base language for translations. This will be the language of the original text in your source code. Must be one of the values defined in `supportedLocales` |
|
|
796
798
|
| `headerStartRowNumber` | number | | 1 | Row number where sheet headers begin. |
|
|
797
799
|
| `ignoredSheets` | string[] | | | Titles of sheets to ignore during register/import (e.g., `["BASE"]`). |
|
|
798
800
|
| `importPath` | string | | current working directory | Directory path to export translation JSON files. |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sheet-i18n",
|
|
3
3
|
"description": "All-in-one i18n toolchain: seamlessly integrate Google Sheets, CLI, and react-i18n for easy translation workflows.",
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/chltjdrhd777/sheet-i18n"
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"license": "ISC",
|
|
51
51
|
"homepage": "https://github.com/chltjdrhd777/sheet-i18n",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@sheet-i18n/react": "1.5.
|
|
54
|
-
"@sheet-i18n/importer": "1.9.
|
|
55
|
-
"@sheet-i18n/typescript": "0.2.
|
|
53
|
+
"@sheet-i18n/react": "1.5.1",
|
|
54
|
+
"@sheet-i18n/importer": "1.9.2",
|
|
55
|
+
"@sheet-i18n/typescript": "0.2.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsup": "^6.0.0",
|
|
59
59
|
"typescript": "^5.0.0",
|
|
60
|
-
"@sheet-i18n/typescript-config": "1.8.
|
|
60
|
+
"@sheet-i18n/typescript-config": "1.8.1"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsup",
|