mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-23 22:17:00 +02:00
fix(theme-classic): fix translation when footer has no links (#6144)
This commit is contained in:
parent
287292497d
commit
0384a7919e
2 changed files with 23 additions and 23 deletions
|
@ -312,18 +312,18 @@ const ThemeConfigSchema = Joi.object({
|
|||
}),
|
||||
copyright: Joi.string(),
|
||||
links: Joi.alternatives(
|
||||
Joi.array()
|
||||
.items(
|
||||
Joi.object({
|
||||
title: Joi.string().allow(null).default(null),
|
||||
items: Joi.array().items(FooterLinkItemSchema).default([]),
|
||||
}),
|
||||
)
|
||||
.default([]),
|
||||
Joi.array().items(FooterLinkItemSchema).default([]),
|
||||
).messages({
|
||||
'alternatives.match': `The footer must be either simple or multi-column, and not a mix of the two. See: https://docusaurus.io/docs/api/themes/configuration#footer-links`,
|
||||
}),
|
||||
Joi.array().items(
|
||||
Joi.object({
|
||||
title: Joi.string().allow(null).default(null),
|
||||
items: Joi.array().items(FooterLinkItemSchema).default([]),
|
||||
}),
|
||||
),
|
||||
Joi.array().items(FooterLinkItemSchema),
|
||||
)
|
||||
.messages({
|
||||
'alternatives.match': `The footer must be either simple or multi-column, and not a mix of the two. See: https://docusaurus.io/docs/api/themes/configuration#footer-links`,
|
||||
})
|
||||
.default([]),
|
||||
}).optional(),
|
||||
prism: Joi.object({
|
||||
theme: Joi.object({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue