chore: fix website version deployment

This commit is contained in:
Juan Picado 2022-10-02 08:25:13 +02:00
parent 96d7295e55
commit 07488a9ddb
2 changed files with 22 additions and 16 deletions

View File

@ -6,16 +6,15 @@ api_token_env: CROWDIN_VERDACCIO_API_KEY
preserve_hierarchy: true
files:
-
source: 'packages/plugins/ui-theme/src/i18n/crowdin/**/*'
translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/**/%original_file_name%'
-
source: '/website/i18n/en/**/*'
- source: /packages/plugins/ui-theme/src/i18n/crowdin/*.json
translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/%original_file_name%'
# languages_mapping: *languages_mapping
- source: /website/i18n/en/**/*
translation: '/website/i18n/%locale%/**/%original_file_name%'
-
source: '/website/docs/**/*'
translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%'
-
source: '/website/versioned_docs/**/*'
- source: /website/docs/**/*
translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%'
# languages_mapping: *languages_mapping
- source: /website/versioned_docs/**/*
translation: /website/i18n/%locale%/docusaurus-plugin-content-docs/**/%original_file_name%
# languages_mapping: *languages_mapping

View File

@ -9,12 +9,19 @@ const isProductionDeployment = process.env.CONTEXT === "production";
const i18nConfig = {
defaultLocale: 'en',
locales: isDeployPreview ? ['en'] : [
"en", "cs-CZ", "de-DE",
"es-ES", "fr-FR",
"it-IT", "pl-PL",
"pt-BR", "ru-RU",
"sr-CS", "vi-VN",
"yo-NG", "zh-TW",
"en",
"cs-CZ",
"de-DE",
"es-ES",
"fr-FR",
"it-IT",
"pl-PL",
"pt-BR",
"ru-RU",
"sr-CS",
"vi-VN",
"yo-NG",
"zh-TW",
"zh-CN"
],
localeConfigs: {