fix(forge): locales with dash on non-mac

This commit is contained in:
Elian Doran 2025-06-15 21:27:53 +03:00
parent 8d868b77d0
commit 04794c38d8
No known key found for this signature in database

View File

@ -149,11 +149,11 @@ module.exports = {
.filter(locale => !locale.contentOnly) .filter(locale => !locale.contentOnly)
.map(locale => locale.electronLocale); .map(locale => locale.electronLocale);
if (!isMac) { if (!isMac) {
localesToKeep.map(locale => locale.replace("_", "-")) localesToKeep = localesToKeep.map(locale => locale.replace("_", "-"))
} }
const keptLocales = new Set(); const keptLocales = new Set();
const removedLocales = []; const removedLocales = [];
const extension = (isMac ? ".lproj" : ".pak"); const extension = (isMac ? ".lproj" : ".pak");
for (const outputPath of packageResult.outputPaths) { for (const outputPath of packageResult.outputPaths) {