0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Prevent errors from adapters when i18n domains is not used (#11129)

This commit is contained in:
Matthew Phillips 2024-05-23 11:38:07 -04:00 committed by GitHub
parent 50775925f9
commit 4bb926908d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"astro": patch
---
Prevent errors from adapters when i18n domains is not used

View file

@ -70,7 +70,7 @@ export function validateSupportedFeatures(
);
validationResult.assets = validateAssetsFeature(assets, adapterName, config, logger);
if (!config.i18n?.domains) {
if (config.i18n?.domains) {
validationResult.i18nDomains = validateSupportKind(
i18nDomains,
adapterName,