i18n: service init asap, avoid spamming the console as some warnings are inevitable due to async loading behavior

This commit is contained in:
ItsLemmy
2025-09-24 08:50:40 -04:00
parent 04f247905a
commit 1d98a657b2
2 changed files with 4 additions and 14 deletions
+4 -3
View File
@@ -86,8 +86,7 @@ Singleton {
}
}
// -------------------------------------------
function init() {
Component.onCompleted: {
Logger.log("I18n", "Service started")
scanAvailableLanguages()
}
@@ -266,7 +265,9 @@ Singleton {
interpolations = {}
if (!isLoaded) {
Logger.warn("I18n", "Translations not loaded yet")
// if (debug) {
// Logger.warn("I18n", "Translations not loaded yet")
// }
return key
}
-11
View File
@@ -494,24 +494,13 @@ Singleton {
// -----------------------------------------------------
// Kickoff essential services
function kickOffServices() {
I18n.init()
// Ensure our location singleton is created as soon as possible so we start fetching weather asap
LocationService.init()
NightLightService.apply()
ColorSchemeService.init()
MatugenService.init()
// Ensure wallpapers are restored after settings have been loaded
WallpaperService.init()
FontService.init()
HooksService.init()
BluetoothService.init()
}
}