Remove env vars

This commit is contained in:
Josh Perez 2022-01-24 15:37:24 -05:00 committed by GitHub
parent 44bfb77635
commit 7a502ea776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -1387,13 +1387,6 @@ ipc.on('database-error', (_event: Electron.Event, error: string) => {
});
function getAppLocale(): string {
const { env } = process;
const envLocale = env.LC_ALL || env.LC_MESSAGES || env.LANG || env.LANGUAGE;
if (envLocale) {
return envLocale.replace(/_/g, '-');
}
return getEnvironment() === Environment.Test ? 'en' : app.getLocale();
}