From dfbe62894472eb0a4771cabc490a00b98965ae1d Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 2 Jul 2023 17:48:29 +0100 Subject: [PATCH] Chore: Fixed asset order --- .../NoteBody/TinyMCE/supportedLocales.js | 14 +++++++------- .../app-desktop/tools/copyApplicationAssets.js | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/supportedLocales.js b/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/supportedLocales.js index c543d3899..6858c0b40 100644 --- a/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/supportedLocales.js +++ b/packages/app-desktop/gui/NoteEditor/NoteBody/TinyMCE/supportedLocales.js @@ -8,12 +8,12 @@ module.exports = [ "de", "el", "eo", + "es", "es_ES", "es_MX", - "es", "eu", - "fa_IR", "fa", + "fa_IR", "fi", "fr_FR", "gl", @@ -21,8 +21,8 @@ module.exports = [ "hr", "hu_HU", "id", - "it_IT", "it", + "it_IT", "ja", "kk", "ko_KR", @@ -32,18 +32,18 @@ module.exports = [ "pl", "pt_BR", "pt_PT", - "ro_RO", "ro", + "ro_RO", "ru", "sk", - "sl_SI", "sl", + "sl_SI", "sv_SE", - "ta_IN", "ta", + "ta_IN", "th_TH", - "tr_TR", "tr", + "tr_TR", "uk", "vi", "zh_CN", diff --git a/packages/app-desktop/tools/copyApplicationAssets.js b/packages/app-desktop/tools/copyApplicationAssets.js index 0336282fd..7ae67df4b 100644 --- a/packages/app-desktop/tools/copyApplicationAssets.js +++ b/packages/app-desktop/tools/copyApplicationAssets.js @@ -147,6 +147,8 @@ async function main() { return s[0]; }); + supportedLocales.sort(); + const content = `module.exports = ${JSON.stringify(supportedLocales, null, 2)}`; await writeFile(`${__dirname}/../gui/NoteEditor/NoteBody/TinyMCE/supportedLocales.js`, content, 'utf8');