Added message notifying which language pack json to create if current language not supported.
@@ -2,7 +2,7 @@ import electron from "electron";
import en from "../../lang/en";
const app = electron.app || electron.remote.app;
-const locale = app.getLocale()
+const locale = app.getLocale();
let languageOverrides = {};
@@ -11,6 +11,9 @@ if (locale && locale !== "en") {
languageOverrides = require(`../../lang/${locale}.json`);
} catch (e) {
console.warn("No language pack for user setting, falling back to en");
+ console.warn(
+ `Add a language pack by making the file src/lang/${locale}.json`
+ );
}
}
