sheet-i18n 1.3.3 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -735,6 +735,32 @@ npx sheet-i18n register
735
735
  sheet-i18n register --scope total
736
736
  ```
737
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
+
738
764
  ---
739
765
 
740
766
  ## License 📜
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sheet-i18n",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/chltjdrhd777/sheet-i18n"
@@ -36,8 +36,8 @@
36
36
  },
37
37
  "license": "ISC",
38
38
  "dependencies": {
39
- "@sheet-i18n/react": "0.4.2",
40
- "@sheet-i18n/exporter": "1.3.2"
39
+ "@sheet-i18n/exporter": "1.3.2",
40
+ "@sheet-i18n/react": "1.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "tsup": "^6.0.0",