mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
Add extra dogfood translation key conflict case
This commit is contained in:
parent
d9d29046ec
commit
a9fe866e43
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"label": "Category Index Doc conflict",
|
||||
"link": {
|
||||
"type": "generated-index",
|
||||
"title": "Category Index Doc conflict",
|
||||
"description": "Testing what happens when 2 categories with index docs"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Doc
|
||||
|
||||
This extra category doc is important, otherwise the category would be empty and the index would be converted to a regular doc.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
sidebar_label: 'Test'
|
||||
---
|
||||
|
||||
## Test
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# Doc
|
||||
|
||||
This extra category doc is important, otherwise the category would be empty and the index would be converted to a regular doc.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
sidebar_label: 'Test'
|
||||
---
|
||||
|
||||
## Test
|
||||
|
|
@ -204,6 +204,14 @@ export default async function createConfigAsync() {
|
|||
i18n: {
|
||||
defaultLocale,
|
||||
|
||||
localeConfigs: {
|
||||
[defaultLocale]: {
|
||||
// Forces the translation process to run for default locale
|
||||
// Permits to dogfood translation key conflicts detection
|
||||
translate: true,
|
||||
},
|
||||
},
|
||||
|
||||
locales:
|
||||
isDeployPreview || isBranchDeploy
|
||||
? // Deploy preview and branch deploys: keep them fast!
|
||||
|
|
|
|||
Loading…
Reference in New Issue