You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Desktop: TinyMCE: Added localisation support
This commit is contained in:
12
ElectronClient/tools/copyTinyMceLangs.js
Normal file
12
ElectronClient/tools/copyTinyMceLangs.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const fs = require('fs-extra');
|
||||
|
||||
async function main() {
|
||||
const sourceDir = `${__dirname}/../../Modules/TinyMCE/langs`;
|
||||
const destDir = `${__dirname}/../node_modules/tinymce/langs`;
|
||||
console.info(`Copying ${sourceDir} => ${destDir}`);
|
||||
await fs.remove(destDir);
|
||||
await fs.mkdirp(destDir);
|
||||
await fs.copy(sourceDir, destDir);
|
||||
}
|
||||
|
||||
module.exports = main;
|
||||
Reference in New Issue
Block a user