From addccd5b345795e279b5d4e290a2f583f8f13db4 Mon Sep 17 00:00:00 2001 From: Kathleen Neumann Date: Fri, 14 Jun 2024 23:39:19 +0200 Subject: [PATCH] UBO-335 add lang parameter to translate resource url --- .../main/resources/META-INF/resources/js/ModsDisplayUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubo-common/src/main/resources/META-INF/resources/js/ModsDisplayUtils.js b/ubo-common/src/main/resources/META-INF/resources/js/ModsDisplayUtils.js index 245221b34..d4b6d6201 100644 --- a/ubo-common/src/main/resources/META-INF/resources/js/ModsDisplayUtils.js +++ b/ubo-common/src/main/resources/META-INF/resources/js/ModsDisplayUtils.js @@ -1,6 +1,6 @@ const ModsDisplayUtils = { updateLabel: async function (target, i18n) { - let response = await fetch(webApplicationBaseURL + "rsc/locale/translate/" + i18n); + let response = await fetch(webApplicationBaseURL + "rsc/locale/translate/" + $("html").attr("lang") + "/" + i18n); let text = await response.text(); $(target).text(text.replace("{0}", $(target).attr("data-hideable-count"))); },