You can use any of the Luigi lifecycle hooks by adding additional setup to the root of the Luigi configuration object. Here is an example:
{
...
lifecycleHooks: {
luigiAfterInit: () => {
// initializing with a different language
myGeoLocationService.getLanguage().then(lang => {
Luigi.i18n().setCurrentLocale(lang);
})
}
}
...
}
This method will be called after Luigi.setConfig({}) is executed.