Add extra dogfood translation key conflict case

This commit is contained in:
sebastien 2025-10-17 11:01:33 +02:00
parent d9d29046ec
commit a9fe866e43
6 changed files with 32 additions and 0 deletions

View File

@ -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"
}
}

View File

@ -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.

View File

@ -0,0 +1,5 @@
---
sidebar_label: 'Test'
---
## Test

View File

@ -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.

View File

@ -0,0 +1,5 @@
---
sidebar_label: 'Test'
---
## Test

View File

@ -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!