Remove env vars
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
This commit is contained in:
parent
1f407beb6b
commit
7cb8d89cda
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue