From ed5e8997d748324ebfb3245e728ff469ec0839fc Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Fri, 21 Oct 2022 20:40:53 +0200 Subject: [PATCH] Fix: Plugin locales should overwrite core's locales --- src/node/hooks/i18n.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js index 76487fc59..c54348867 100644 --- a/src/node/hooks/i18n.js +++ b/src/node/hooks/i18n.js @@ -41,6 +41,8 @@ const getAllLocales = () => { // add plugins languages (if any) for (const {package: {path: pluginPath}} of Object.values(pluginDefs.plugins)) { + // plugin locales should overwrite etherpad's core locales + if (pluginPath.endsWith('/ep_etherpad-lite') === true) continue; extractLangs(path.join(pluginPath, 'locales')); }