mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 04:42:40 +02:00
docs(v2): i18n site: enable ko + zh-CN locales (#4599)
* enable locales * do not deploy multiple locales in netlify deploy preview: keep it fast
This commit is contained in:
parent
aa392a9907
commit
41af0c9f90
1 changed files with 6 additions and 3 deletions
|
@ -57,11 +57,14 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
|
|||
url: 'https://docusaurus.io',
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: isI18nStaging
|
||||
locales: isDeployPreview
|
||||
? // Deploy preview: keep it fast!
|
||||
['en']
|
||||
: isI18nStaging
|
||||
? // Staging locales: https://docusaurus-i18n-staging.netlify.app/
|
||||
['en', 'zh-CN', 'ko', 'ja']
|
||||
['en', 'ja']
|
||||
: // Production locales
|
||||
['en', 'fr'],
|
||||
['en', 'fr', 'ko', 'zh-CN'],
|
||||
},
|
||||
onBrokenLinks: 'throw',
|
||||
onBrokenMarkdownLinks: 'warn',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue