mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(forge): locales with dash on non-mac
This commit is contained in:
parent
8d868b77d0
commit
04794c38d8
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user