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:
Eric Nakagawa 2017-09-21 08:36:30 -07:00
parent fcc38e0e90
commit 8e9808c0f4
21 changed files with 1547 additions and 25 deletions

View file

@ -1,11 +1,11 @@
project_identifier_env: CROWDIN_PROJECT_ID
api_key_env: CROWDIN_API_KEY
project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID
api_key_env: CROWDIN_DOCUSAURUS_API_KEY
base_path: "./"
preserve_hierarchy: true
files:
-
source: '/docs/en/*.md'
source: '/docs/*.md'
translation: '/website/translated_docs/%locale%/%original_file_name%'
languages_mapping: &anchor
locale:

View file

@ -117,8 +117,8 @@ You can add the following to your `package.json` to manually trigger crowdin.
```json
"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-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-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_DOCUSAURUS_PROJECT_ID=$YOUR_CROWDIN_ID; export CROWDIN_DOCUSAURUS_API_KEY=$YOUR_CROWDIN_API_KEY; crowdin-cli --config ../crowdin.yaml download -b master"
},
```

View file

@ -1,5 +1,11 @@
.DS_Store
node_modules
translated_docs
i18n
yarn.lock
.DS_Store
lib/core/metadata.js
lib/core/MetadataBlog.js
website/translated_docs
website/build/
website/yarn.lock
website/node_modules
website/i18n/*
!website/i18n/en.json

View file

@ -1,11 +1,11 @@
project_identifier_env: CROWDIN_PROJECT_ID
api_key_env: CROWDIN_API_KEY
project_identifier_env: CROWDIN_DOCUSAURUS_PROJECT_ID
api_key_env: CROWDIN_DOCUSAURUS_API_KEY
base_path: "./"
preserve_hierarchy: true
files:
-
source: '/docs/en/*.md'
source: '/docs/*.md'
translation: '/website/translated_docs/%locale%/%original_file_name%'
languages_mapping: &anchor
locale:

View file

@ -25,14 +25,5 @@
"Guides": "Guides",
"API": "API"
},
"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."
}
"pages-strings": {}
}

View file

@ -14,7 +14,7 @@ const languages = [
tag: "en"
},
{
enabled: false,
enabled: true,
name: "日本語",
tag: "ja"
},

View file

@ -7,7 +7,7 @@
"write-translations": "docusaurus-write-translations",
"version": "docusaurus-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-download": "export CROWDIN_PROJECT_ID=docusaurus; export CROWDIN_API_KEY=d618a1663b548eca3fc7fc7c4294512e; crowdin-cli --config ../crowdin.yaml download -b master"
"crowdin-upload": "crowdin-cli --config ../crowdin.yaml upload sources --auto-update -b master",
"crowdin-download": "crowdin-cli --config ../crowdin.yaml download -b master"
}
}

1525
yarn.lock Normal file

File diff suppressed because it is too large Load diff