Fix: Plugin locales should overwrite core's locales

pull/5721/head
webzwo0i 2022-10-21 20:40:53 +02:00 committed by John McLear
parent 0f557909ba
commit ed5e8997d7
1 changed files with 2 additions and 0 deletions

View File

@ -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'));
}