mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
chore: fix website version deployment
This commit is contained in:
parent
96d7295e55
commit
07488a9ddb
19
crowdin.yaml
19
crowdin.yaml
@ -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
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user