mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-28 17:57:48 +02:00
chore: download only enabled languages translation files
This commit is contained in:
parent
7ce6edc1b1
commit
b5ee72a26a
2 changed files with 36 additions and 3 deletions
|
@ -92,7 +92,11 @@ jobs:
|
|||
sleep 5
|
||||
# upload translation strings and download translations
|
||||
yarn run crowdin-upload
|
||||
yarn run crowdin-download
|
||||
# download only enabled languages
|
||||
for lang in fr ko ru ro pt-BR zh-CN
|
||||
do
|
||||
yarn crowdin-download -l $lang
|
||||
done
|
||||
# publish
|
||||
GIT_USER=docusaurus-bot USE_SSH=false yarn run publish-gh-pages
|
||||
else
|
||||
|
|
33
crowdin.yaml
33
crowdin.yaml
|
@ -9,11 +9,40 @@ files:
|
|||
translation: '/website-1.x/translated_docs/%locale%/**/%original_file_name%'
|
||||
languages_mapping: &anchor
|
||||
locale:
|
||||
'zh-CN': 'zh-CN'
|
||||
'af': 'af'
|
||||
'ar': 'ar'
|
||||
'bs-BA': 'bs-BA'
|
||||
'ca': 'ca'
|
||||
'cs': 'cs'
|
||||
'da': 'da'
|
||||
'de': 'de'
|
||||
'el': 'el'
|
||||
'es-ES': 'es-ES'
|
||||
'fa': 'fa-IR'
|
||||
'fi': 'fi'
|
||||
'fr': 'fr'
|
||||
'he': 'he'
|
||||
'hu': 'hu'
|
||||
'id': 'id-ID'
|
||||
'it': 'it'
|
||||
'ja': 'ja'
|
||||
'ko': 'ko'
|
||||
'ru': 'ru'
|
||||
'mr': 'mr-IN'
|
||||
'nl': 'nl'
|
||||
'no': 'no-NO'
|
||||
'pl': 'pl'
|
||||
'pt-BR': 'pt-BR'
|
||||
'pt-PT': 'pt-PT'
|
||||
'ro': 'ro'
|
||||
'ru': 'ru'
|
||||
'sk': 'sk-SK'
|
||||
'sr': 'sr'
|
||||
'sv-SE': 'sv-SE'
|
||||
'tr': 'tr'
|
||||
'uk': 'uk'
|
||||
'vi': 'vi'
|
||||
'zh-CN': 'zh-CN'
|
||||
'zh-TW': 'zh-TW'
|
||||
-
|
||||
source: '/website-1.x/versioned_docs/**/*.md'
|
||||
translation: '/website-1.x/translated_docs/%locale%/**/%original_file_name%'
|
||||
|
|
Loading…
Add table
Reference in a new issue