We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fcdf86 commit caf16acCopy full SHA for caf16ac
desktop/packages/mullvad-vpn/src/main/load-translations.ts
@@ -6,7 +6,8 @@ import path from 'path';
6
import log from '../shared/logging';
7
8
const SOURCE_LANGUAGE = 'en';
9
-const LOCALES_DIR = path.resolve(__dirname, '../locales');
+const PATH_PREFIX = process.env.NODE_ENV === 'development' ? '../' : '';
10
+const LOCALES_DIR = path.resolve(__dirname, `${PATH_PREFIX}locales`);
11
12
export function loadTranslations(
13
currentLocale: string,
0 commit comments