From 5c61fda1112fb09940f94a2e44152c14d6fbf347 Mon Sep 17 00:00:00 2001 From: Ash Monty Date: Tue, 20 Sep 2022 19:06:43 +0200 Subject: [PATCH] fix cross request pollution in locale handler --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 87149b4..a5a9bbf 100644 --- a/src/util.js +++ b/src/util.js @@ -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; }