fix(core): allow `i18n.localeConfigs.translate` in validation (#11452)

Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
Alexander Trofimov 2025-10-09 11:47:53 +03:00 committed by GitHub
parent 8f32716def
commit 598af3b8e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -473,6 +473,12 @@ describe('i18n', () => {
baseUrl: '/myBase/Url/',
});
});
it('accepts translate true', () => {
expect(normalizeLocaleConfig({translate: true})).toEqual({
translate: true,
});
});
});
});
});

View File

@ -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,
});