From 1328a127ee80a427d99e79f894d7bf988a7f7e62 Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Tue, 12 Feb 2019 19:04:56 -0800 Subject: [PATCH] FIX: translate bootbox confirmation dialog (#6981) --- .../javascripts/discourse/initializers/localization.js.es6 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/discourse/initializers/localization.js.es6 b/app/assets/javascripts/discourse/initializers/localization.js.es6 index a5f96b83a66..fc9eee1536e 100644 --- a/app/assets/javascripts/discourse/initializers/localization.js.es6 +++ b/app/assets/javascripts/discourse/initializers/localization.js.es6 @@ -51,5 +51,12 @@ export default { node[segs[segs.length - 1]] = v; } }); + + bootbox.addLocale(I18n.currentLocale(), { + OK: I18n.t("composer.modal_ok"), + CANCEL: I18n.t("composer.modal_cancel"), + CONFIRM: I18n.t("composer.modal_ok") + }); + bootbox.setLocale(I18n.currentLocale()); } };