@@ -105,7 +105,8 @@ export class Aleph implements IAleph {
105
105
Object . assign ( this . #importMap, getDefaultImportMap ( ) )
106
106
}
107
107
if ( configFile ) {
108
- Object . assign ( this . #config, await loadConfig ( configFile ) )
108
+ const config = await loadConfig ( configFile )
109
+ Object . assign ( this . #config, config , config . i18n )
109
110
this . #pageRouting = new Routing ( this . #config)
110
111
}
111
112
@@ -659,15 +660,15 @@ export class Aleph implements IAleph {
659
660
async createMainJS ( bundleMode = false ) : Promise < string > {
660
661
const alephPkgUri = getAlephPkgUri ( )
661
662
const alephPkgPath = alephPkgUri . replace ( 'https://' , '' ) . replace ( 'http://localhost:' , 'http_localhost_' )
662
- const { framework, basePath : basePath , i18n : { defaultLocale } } = this . #config
663
+ const { framework, basePath : basePath , i18n : { defaultLocale, locales } } = this . #config
663
664
const { routes } = this . #pageRouting
664
665
const config : Record < string , any > = {
665
666
basePath,
666
667
appModule : this . #appModule?. specifier ,
667
668
routes,
668
669
renderMode : this . #config. ssr ? 'ssr' : 'spa' ,
669
670
defaultLocale,
670
- locales : [ ] ,
671
+ locales,
671
672
rewrites : this . #config. server . rewrites ,
672
673
}
673
674
0 commit comments