0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

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 preserve_hierarchy: true
files: files:
- - source: /packages/plugins/ui-theme/src/i18n/crowdin/*.json
source: 'packages/plugins/ui-theme/src/i18n/crowdin/**/*' translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/%original_file_name%'
translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/**/%original_file_name%' # languages_mapping: *languages_mapping
- - source: /website/i18n/en/**/*
source: '/website/i18n/en/**/*'
translation: '/website/i18n/%locale%/**/%original_file_name%' translation: '/website/i18n/%locale%/**/%original_file_name%'
- - source: /website/docs/**/*
source: '/website/docs/**/*'
translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%'
-
source: '/website/versioned_docs/**/*'
translation: '/website/i18n/%locale%/docusaurus-plugin-content-docs/current/**/%original_file_name%' 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 = { const i18nConfig = {
defaultLocale: 'en', defaultLocale: 'en',
locales: isDeployPreview ? ['en'] : [ locales: isDeployPreview ? ['en'] : [
"en", "cs-CZ", "de-DE", "en",
"es-ES", "fr-FR", "cs-CZ",
"it-IT", "pl-PL", "de-DE",
"pt-BR", "ru-RU", "es-ES",
"sr-CS", "vi-VN", "fr-FR",
"yo-NG", "zh-TW", "it-IT",
"pl-PL",
"pt-BR",
"ru-RU",
"sr-CS",
"vi-VN",
"yo-NG",
"zh-TW",
"zh-CN" "zh-CN"
], ],
localeConfigs: { localeConfigs: {