0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

fix: don't log warning if i18nDomains isn't enabled (#9932)

* fix: don't log warning if  isn't enabled

* fix regression

---------

Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
This commit is contained in:
Emanuele Stoppa 2024-02-02 13:40:00 +00:00 committed by GitHub
parent 4ee27293ae
commit 9f0d89fa7e
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
---
Fixes a case where a warning was logged even when the feature `i18nDomains` wasn't enabled

View file

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