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:
parent
4ee27293ae
commit
9f0d89fa7e
2 changed files with 6 additions and 1 deletions
5
.changeset/mean-pugs-nail.md
Normal file
5
.changeset/mean-pugs-nail.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Fixes a case where a warning was logged even when the feature `i18nDomains` wasn't enabled
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue