mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
0a06d87a1e
commit
a994d609b3
1 changed files with 7 additions and 7 deletions
|
@ -32,15 +32,15 @@ export default function astroInternationalization({
|
||||||
const i18nConfig: I18nInternalConfig = { base, format, site, trailingSlash, i18n };
|
const i18nConfig: I18nInternalConfig = { base, format, site, trailingSlash, i18n };
|
||||||
return {
|
return {
|
||||||
define: {
|
define: {
|
||||||
__ASTRO_INTERNAL_I18N_CONFIG__: JSON.stringify(i18nConfig)
|
__ASTRO_INTERNAL_I18N_CONFIG__: JSON.stringify(i18nConfig),
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
resolveId(id) {
|
resolveId(id) {
|
||||||
if (id === virtualModuleId) {
|
if (id === virtualModuleId) {
|
||||||
if (i18n === undefined) throw new AstroError(AstroErrorData.i18nNotEnabled);
|
if (i18n === undefined) throw new AstroError(AstroErrorData.i18nNotEnabled);
|
||||||
return this.resolve('astro/virtual-modules/i18n.js');
|
return this.resolve('astro/virtual-modules/i18n.js');
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue