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
|
@ -13,7 +13,7 @@ export interface I18nInternalConfig
|
||||||
extends Pick<AstroConfig, 'base' | 'site' | 'trailingSlash'>,
|
extends Pick<AstroConfig, 'base' | 'site' | 'trailingSlash'>,
|
||||||
Pick<AstroConfig['build'], 'format'> {
|
Pick<AstroConfig['build'], 'format'> {
|
||||||
i18n: AstroConfig['i18n'];
|
i18n: AstroConfig['i18n'];
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function astroInternationalization({
|
export default function astroInternationalization({
|
||||||
settings,
|
settings,
|
||||||
|
@ -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