mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-25 17:22:50 +00:00
fix(core): allow `i18n.localeConfigs.translate` in validation (#11452)
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
8f32716def
commit
598af3b8e8
|
|
@ -473,6 +473,12 @@ describe('i18n', () => {
|
|||
baseUrl: '/myBase/Url/',
|
||||
});
|
||||
});
|
||||
|
||||
it('accepts translate true', () => {
|
||||
expect(normalizeLocaleConfig({translate: true})).toEqual({
|
||||
translate: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -252,6 +252,7 @@ const LocaleConfigSchema = Joi.object<I18nLocaleConfig>({
|
|||
direction: Joi.string().equal('ltr', 'rtl'),
|
||||
calendar: Joi.string(),
|
||||
path: Joi.string(),
|
||||
translate: Joi.boolean(),
|
||||
url: SiteUrlSchema,
|
||||
baseUrl: BaseUrlSchema,
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue