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:
parent
9cb13af7b0
commit
255d3e737d
@ -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];
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user