From 7080868c8b1767ee484e6b3f0ca72ee88a1a76c6 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Thu, 16 May 2024 10:26:01 +0200 Subject: [PATCH] fix(pat modal): Translated close button label. --- src/pat/modal/modal.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pat/modal/modal.js b/src/pat/modal/modal.js index 693cee28e..b4edcde17 100644 --- a/src/pat/modal/modal.js +++ b/src/pat/modal/modal.js @@ -4,7 +4,7 @@ import _ from "underscore"; import Backdrop from "../backdrop/backdrop"; import registry from "@patternslib/patternslib/src/core/registry"; import utils from "../../core/utils"; -import _t from "../../core/i18n"; +import _t from "../../core/i18n-wrapper"; import "jquery-form"; @@ -58,7 +58,7 @@ export default Base.extend({ '
' + '
' + ' <% if (title) { %><% } %>' + - ' ' + + ' ' + "
" + '
' + '
<%= prepend %>
' + @@ -396,6 +396,7 @@ export default Base.extend({ modalSizeClass: options.modalSizeClass, buttons: '
', options: options.templateOptions, + closeButtonLabel: _t("Close"), }; // setup the Title