// @flow
import { app } from 'electron';
import { Logger } from './logging';
import { LOCALES } from '../../common/types/locales.types.js';

export const detectSystemLocale = (): string => {
  const systemLocale = app.getLocale();
  const systemLang = process.env.LANG || 'unknown';
  Logger.info('Detected system locale', { systemLocale, systemLang });
  if (systemLocale === 'ja') {
    return LOCALES.japanese;
  }
  return LOCALES.english;
};

@@ -228,60 +228,8 @@
 ();%0A
-  const systemLang = process.env.LANG %7C%7C 'unknown';%0A
   Lo
@@ -282,20 +282,8 @@
 cale
-, systemLang
  %7D);

Remove debug code