Remove env vars

Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-01-24 16:19:16 -08:00 committed by GitHub
parent 1f407beb6b
commit 7cb8d89cda
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();
}