Fix tests failures caused by trying to load electron settings in l10n without app running
@@ -12,7 +12,7 @@ export const locales = glob
.map(path => Path.basename(path, ".json"));
const app = electron.app || (electron.remote && electron.remote.app);
-const settingsLocale = settings.get("locale");
+const settingsLocale = app && settings.get("locale");
const systemLocale = app ? app.getLocale() : "en";
const appLocale = settingsLocale || systemLocale;
