@el-j/google-sheet-translations 2.2.0-beta.3 → 2.2.0-beta.5
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 +17 -0
- package/dist/action-entrypoint.d.ts.map +1 -1
- package/dist/esm/index.js +694 -12
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +706 -12
- package/dist/setup/cli.d.ts +13 -0
- package/dist/setup/cli.d.ts.map +1 -0
- package/dist/setup/wifSetup.d.ts +95 -0
- package/dist/setup/wifSetup.d.ts.map +1 -0
- package/dist/utils/docIngester.d.ts +111 -0
- package/dist/utils/docIngester.d.ts.map +1 -0
- package/dist/utils/docParser.d.ts +77 -0
- package/dist/utils/docParser.d.ts.map +1 -0
- package/dist/utils/driveDocScanner.d.ts +58 -0
- package/dist/utils/driveDocScanner.d.ts.map +1 -0
- package/dist/utils/driveProjectIndex.d.ts +39 -0
- package/dist/utils/driveProjectIndex.d.ts.map +1 -1
- package/dist/utils/getDriveTranslations.d.ts +46 -0
- package/dist/utils/getDriveTranslations.d.ts.map +1 -1
- package/dist-cli/setup-wif.mjs +18948 -0
- package/package.json +25 -20
package/README.md
CHANGED
|
@@ -378,6 +378,23 @@ jobs:
|
|
|
378
378
|
| `spreadsheet-title` | ❌ | `google-sheet-translations` | Title for the auto-created spreadsheet |
|
|
379
379
|
| `source-locale` | ❌ | `en` | Source locale used as the base for auto-translate formulas |
|
|
380
380
|
| `target-locales` | ❌ | `de,fr,es,it,pt,ja,zh` | Comma-separated target locales added to the auto-created spreadsheet |
|
|
381
|
+
| `drive-folder-id` | ❌ | `''` | Drive folder ID used to auto-discover spreadsheets, docs, and images |
|
|
382
|
+
| `scan-for-spreadsheets` | ❌ | `true` | When `drive-folder-id` is set, scan the folder recursively for spreadsheets |
|
|
383
|
+
| `spreadsheet-ids` | ❌ | `''` | Optional extra spreadsheet IDs to merge with any IDs discovered in Drive |
|
|
384
|
+
| `sync-images` | ❌ | `false` | Download Drive images alongside translation sync |
|
|
385
|
+
| `image-output-path` | ❌ | `./public/remote-images` | Output directory for downloaded Drive images when `sync-images` is enabled |
|
|
386
|
+
|
|
387
|
+
### Drive Folder Mode
|
|
388
|
+
|
|
389
|
+
When `drive-folder-id` is set, the action switches from single-spreadsheet mode to `manageDriveTranslations()`. That enables recursive spreadsheet discovery, optional image sync, and optional explicit `spreadsheet-ids` on the same run.
|
|
390
|
+
|
|
391
|
+
Operational notes:
|
|
392
|
+
|
|
393
|
+
- If the Drive folder is empty and `auto-create` remains enabled, the package creates a spreadsheet and then tries to move it into the target folder.
|
|
394
|
+
- `spreadsheetNameFilter` only applies to discovered sheets in the programmatic API. Explicit `spreadsheet-ids` are never filtered out.
|
|
395
|
+
- `sync-images` supports incremental freshness checks and optional `cleanSync` deletion in the programmatic API. See the Drive Folder guide for those semantics before enabling destructive cleanup.
|
|
396
|
+
|
|
397
|
+
See the full Drive Folder guide in `website/guide/drive-folder.md` for the complete API surface, image sync semantics, and Google Doc ingestion details.
|
|
381
398
|
|
|
382
399
|
### Outputs
|
|
383
400
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-entrypoint.d.ts","sourceRoot":"","sources":["../src/action-entrypoint.ts"],"names":[],"mappings":"AAMA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"action-entrypoint.d.ts","sourceRoot":"","sources":["../src/action-entrypoint.ts"],"names":[],"mappings":"AAMA,wBAAsB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CA8GzC"}
|