Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 04794c3

Browse files
committed
fix(forge): locales with dash on non-mac
1 parent 8d868b7 commit 04794c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/desktop/electron-forge/forge.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,11 @@ module.exports = {
149149
.filter(locale => !locale.contentOnly)
150150
.map(locale => locale.electronLocale);
151151
if (!isMac) {
152-
localesToKeep.map(locale => locale.replace("_", "-"))
152+
localesToKeep = localesToKeep.map(locale => locale.replace("_", "-"))
153153
}
154154

155155
const keptLocales = new Set();
156-
const removedLocales = [];
156+
const removedLocales = [];
157157
const extension = (isMac ? ".lproj" : ".pak");
158158

159159
for (const outputPath of packageResult.outputPaths) {

0 commit comments

Comments
 (0)