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

[ci] format

This commit is contained in:
Arsh 2024-01-29 15:44:12 +00:00 committed by astrobot-houston
parent 0a06d87a1e
commit a994d609b3

View file

@ -11,9 +11,9 @@ type AstroInternationalization = {
export interface I18nInternalConfig
extends Pick<AstroConfig, 'base' | 'site' | 'trailingSlash'>,
Pick<AstroConfig['build'], 'format'> {
i18n: AstroConfig['i18n'];
}
Pick<AstroConfig['build'], 'format'> {
i18n: AstroConfig['i18n'];
}
export default function astroInternationalization({
settings,
@ -32,15 +32,15 @@ export default function astroInternationalization({
const i18nConfig: I18nInternalConfig = { base, format, site, trailingSlash, i18n };
return {
define: {
__ASTRO_INTERNAL_I18N_CONFIG__: JSON.stringify(i18nConfig)
}
}
__ASTRO_INTERNAL_I18N_CONFIG__: JSON.stringify(i18nConfig),
},
};
},
resolveId(id) {
if (id === virtualModuleId) {
if (i18n === undefined) throw new AstroError(AstroErrorData.i18nNotEnabled);
return this.resolve('astro/virtual-modules/i18n.js');
}
}
},
};
}