Skip to content

Commit

Permalink
UBO-335 add lang parameter to translate resource url
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Jun 15, 2024
1 parent 94c6627 commit addccd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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")));
},
Expand Down

0 comments on commit addccd5

Please sign in to comment.