fix cross request pollution in locale handler

This commit is contained in:
Ash Monty
2022-09-20 19:06:43 +02:00
parent e1cc91a60b
commit 5c61fda111

View File

@@ -27,7 +27,7 @@ function getLocale(language, region) {
if (fs.pathExistsSync(path)) {
const selectedLocale = require(path);
const finalLocale = merge(baseLocale, selectedLocale);
const finalLocale = merge({}, baseLocale, selectedLocale);
return finalLocale;
}