1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Windows: Fix building the desktop app clears the list of supported Rich Text Editor locales (#10885)

This commit is contained in:
Henry Heino 2024-08-17 04:22:52 -07:00 committed by GitHub
parent 9cb13af7b0
commit 255d3e737d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
const { writeFile, copy, mkdirp, remove } = require('fs-extra');
const glob = require('glob');
const { resolve } = require('path');
const { resolve, basename } = require('path');
const { dirname } = require('@joplin/tools/gulp/utils');
const rootDir = resolve(__dirname, '../../..');
@ -146,9 +146,7 @@ async function main() {
}
const supportedLocales = glob.sync(`${langSourceDir}/*.js`).map(s => {
s = s.split('/');
s = s[s.length - 1];
s = s.split('.');
s = basename(s).split('.');
return s[0];
});