This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit f84b9dc9ee9e5b42175beedc63ac36fd5be47659
Author: LiLi <[email protected]>
AuthorDate: Fri Feb 18 10:36:40 2022 +0800

    feat: crowdin configure
    
    Signed-off-by: LiLi <[email protected]>
---
 site2/website-next/crowdin.yml   | 30 ++++++++++++++----------------
 site2/website-next/package.json  |  4 ++--
 site2/{ => website}/README.md    |  0
 site2/{ => website}/crowdin.yaml |  2 +-
 site2/website/package.json       |  6 +++---
 5 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/site2/website-next/crowdin.yml b/site2/website-next/crowdin.yml
index 0828821..870c339 100644
--- a/site2/website-next/crowdin.yml
+++ b/site2/website-next/crowdin.yml
@@ -1,26 +1,24 @@
-project_id: 485261
-# api_token_env: 'CROWDIN_PERSONAL_TOKEN'
-# api_token: 20a2c29bfe39397f7ae63ce318c04c96,
-api_token: 
f12b5ae600612e3a5c215708f09d2cd5c27896d7c67e40c9fdad24c5e5b5471039da023d379d3da4
+project_id: 500514 #NEXT_CROWDIN_DOCUSAURUS_PROJECT_ID
+api_token: 
375bdea4ed65a3f0a7814799346c064ca47e66f61f6c7cda215cfe148cd7469481d521ca047787be
 #NEXT_CROWDIN_DOCUSAURUS_API_TOKEN
 preserve_hierarchy: true
 files: [
-    # JSON 翻译文件
+    # JSON
     {
-      source: '/i18n/en/**/*',
-      translation: '/i18n/%two_letters_code%/**/%original_file_name%',
+      source: "/i18n/en/**/*",
+      translation: "/i18n/%two_letters_code%/**/%original_file_name%",
     },
-    # 文档 Markdown 文件
+    # Docs
     {
-      source: '/docs/**/*',
-      translation: 
'/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%',
+      source: "/docs/**/*",
+      translation: 
"/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%",
     },
     {
-      source: '/versioned_docs/**/*',
-      translation: 
'/i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%',
+      source: "/versioned_docs/**/*",
+      translation: 
"/i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name%",
     },
-    # 博客 Markdown 文件
+    # Blogs
     {
-      source: '/blog/**/*',
-      translation: 
'/i18n/%two_letters_code%/docusaurus-plugin-content-blog/**/%original_file_name%',
+      source: "/blog/**/*",
+      translation: 
"/i18n/%two_letters_code%/docusaurus-plugin-content-blog/**/%original_file_name%",
     },
-  ]
\ No newline at end of file
+  ]
diff --git a/site2/website-next/package.json b/site2/website-next/package.json
index 209c5a2..579f748 100644
--- a/site2/website-next/package.json
+++ b/site2/website-next/package.json
@@ -14,8 +14,8 @@
     "write-translations": "docusaurus write-translations",
     "write-heading-ids": "docusaurus write-heading-ids",
     "crowdin": "crowdin",
-    "upload": "CROWDIN_PERSONAL_TOKEN=20a2c29bfe39397f7ae63ce318c04c96 crowdin 
upload",
-    "download": "CROWDIN_PERSONAL_TOKEN=20a2c29bfe39397f7ae63ce318c04c96 
crowdin download"
+    "upload": "crowdin upload",
+    "download": "crowdin download"
   },
   "dependencies": {
     "@crowdin/cli": "3.7.4",
diff --git a/site2/README.md b/site2/website/README.md
similarity index 100%
rename from site2/README.md
rename to site2/website/README.md
diff --git a/site2/crowdin.yaml b/site2/website/crowdin.yaml
similarity index 98%
rename from site2/crowdin.yaml
rename to site2/website/crowdin.yaml
index 0e9df3e..359ff71 100644
--- a/site2/crowdin.yaml
+++ b/site2/website/crowdin.yaml
@@ -1,6 +1,6 @@
 project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID
 api_key_env: CROWDIN_DOCUSAURUS_API_KEY
-base_path: "./"
+base_path: "../"
 preserve_hierarchy: true
 
 files:
diff --git a/site2/website/package.json b/site2/website/package.json
index 27104bb..f28977f 100644
--- a/site2/website/package.json
+++ b/site2/website/package.json
@@ -8,9 +8,9 @@
     "version": "cp -r docusaurus-version.js 
./node_modules/docusaurus/lib/version.js && docusaurus-version",
     "rename-version": "docusaurus-rename-version",
     "test": "jest --detectOpenHandles",
-    "crowdin-upload": "crowdin --config ../crowdin.yaml upload sources 
--auto-update -b master",
-    "crowdin-download": "crowdin --config ../crowdin.yaml download -b master",
-    "crowdin-test": "java -jar ./scripts/crowdin-cli.jar --config 
../crowdin.yaml download -b master"
+    "crowdin-upload": "crowdin --config ./crowdin.yaml upload sources 
--auto-update -b master",
+    "crowdin-download": "crowdin --config ./crowdin.yaml download -b master",
+    "crowdin-test": "java -jar ./scripts/crowdin-cli.jar --config 
./crowdin.yaml download -b master"
   },
   "devDependencies": {
     "axios": "^0.18.0",

Reply via email to