From 9ba7ee54a71d00c951035513a10d66976f48921f Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 4 Jul 2021 21:54:41 +0200 Subject: [PATCH] Invalidate browser cache on language change --- public/js/grocy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/grocy.js b/public/js/grocy.js index 9c1a4c7c..e4eab9ef 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -232,7 +232,7 @@ U = function(relativePath) } Grocy.Translator = new Translator(); // Dummy, real instance is loaded async below -Grocy.Api.Get("system/localization-strings?v=" + Grocy.Version, +Grocy.Api.Get("system/localization-strings?v=" + Grocy.Version + "&language=" + Grocy.Culture, function(response) { Grocy.Translator = new Translator(response);