mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
Re-arranging of files to move localized base files in /docs from /docs/en, updates to template crowdin.yaml, update to package.json to make calling crowdin easier. Updating documentation to reflect.
This commit is contained in:
parent
fcc38e0e90
commit
8e9808c0f4
21 changed files with 1547 additions and 25 deletions
|
@ -1,11 +1,11 @@
|
||||||
project_identifier_env: CROWDIN_PROJECT_ID
|
project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID
|
||||||
api_key_env: CROWDIN_API_KEY
|
api_key_env: CROWDIN_DOCUSAURUS_API_KEY
|
||||||
base_path: "./"
|
base_path: "./"
|
||||||
preserve_hierarchy: true
|
preserve_hierarchy: true
|
||||||
|
|
||||||
files:
|
files:
|
||||||
-
|
-
|
||||||
source: '/docs/en/*.md'
|
source: '/docs/*.md'
|
||||||
translation: '/website/translated_docs/%locale%/%original_file_name%'
|
translation: '/website/translated_docs/%locale%/%original_file_name%'
|
||||||
languages_mapping: &anchor
|
languages_mapping: &anchor
|
||||||
locale:
|
locale:
|
||||||
|
|
|
@ -117,8 +117,8 @@ You can add the following to your `package.json` to manually trigger crowdin.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"crowdin-upload": "export CROWDIN_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
|
"crowdin-upload": "export CROWDIN_DOCUSAURUS_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_DOCUSAURUS_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
|
||||||
"crowdin-download": "export CROWDIN_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml download -b master"
|
"crowdin-download": "export CROWDIN_DOCUSAURUS_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_DOCUSAURUS_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml download -b master"
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
.DS_Store
|
|
||||||
node_modules
|
node_modules
|
||||||
translated_docs
|
.DS_Store
|
||||||
i18n
|
lib/core/metadata.js
|
||||||
yarn.lock
|
lib/core/MetadataBlog.js
|
||||||
|
website/translated_docs
|
||||||
|
website/build/
|
||||||
|
website/yarn.lock
|
||||||
|
website/node_modules
|
||||||
|
|
||||||
|
website/i18n/*
|
||||||
|
!website/i18n/en.json
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
project_identifier_env: CROWDIN_PROJECT_ID
|
project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID
|
||||||
api_key_env: CROWDIN_API_KEY
|
api_key_env: CROWDIN_DOCUSAURUS_API_KEY
|
||||||
base_path: "./"
|
base_path: "./"
|
||||||
preserve_hierarchy: true
|
preserve_hierarchy: true
|
||||||
|
|
||||||
files:
|
files:
|
||||||
-
|
-
|
||||||
source: '/docs/en/*.md'
|
source: '/docs/*.md'
|
||||||
translation: '/website/translated_docs/%locale%/%original_file_name%'
|
translation: '/website/translated_docs/%locale%/%original_file_name%'
|
||||||
languages_mapping: &anchor
|
languages_mapping: &anchor
|
||||||
locale:
|
locale:
|
||||||
|
|
|
@ -25,14 +25,5 @@
|
||||||
"Guides": "Guides",
|
"Guides": "Guides",
|
||||||
"API": "API"
|
"API": "API"
|
||||||
},
|
},
|
||||||
"pages-strings": {
|
"pages-strings": {}
|
||||||
"Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)|no description given": "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)",
|
|
||||||
"Browse Docs|no description given": "Browse Docs",
|
|
||||||
"Ask questions about the documentation and project|no description given": "Ask questions about the documentation and project",
|
|
||||||
"Join the community|no description given": "Join the community",
|
|
||||||
"Find out what's new with this project|no description given": "Find out what's new with this project",
|
|
||||||
"Stay up to date|no description given": "Stay up to date",
|
|
||||||
"Need help?|no description given": "Need help?",
|
|
||||||
"This project is maintained by a dedicated group of people.|statement made to reader": "This project is maintained by a dedicated group of people."
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -14,7 +14,7 @@ const languages = [
|
||||||
tag: "en"
|
tag: "en"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: false,
|
enabled: true,
|
||||||
name: "日本語",
|
name: "日本語",
|
||||||
tag: "ja"
|
tag: "ja"
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"write-translations": "docusaurus-write-translations",
|
"write-translations": "docusaurus-write-translations",
|
||||||
"version": "docusaurus-version",
|
"version": "docusaurus-version",
|
||||||
"rename-version": "docusaurus-rename-version",
|
"rename-version": "docusaurus-rename-version",
|
||||||
"crowdin-upload": "export CROWDIN_PROJECT_ID=docusaurus; export CROWDIN_API_KEY=d618a1663b548eca3fc7fc7c4294512e; crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
|
"crowdin-upload": "crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
|
||||||
"crowdin-download": "export CROWDIN_PROJECT_ID=docusaurus; export CROWDIN_API_KEY=d618a1663b548eca3fc7fc7c4294512e; crowdin-cli --config ../crowdin.yaml download -b master"
|
"crowdin-download": "crowdin-cli --config ../crowdin.yaml download -b master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue