FIX: Add translation string for clear all watched words (#12336)

This commit is contained in:
Bianca Nenciu
2021-03-10 14:48:13 +02:00
committed by GitHub
parent cbef2ba151
commit 990a26d14b
2 changed files with 4 additions and 5 deletions

View File

@@ -90,7 +90,9 @@ export default Controller.extend({
clearAll() {
const actionKey = this.actionNameKey;
bootbox.confirm(
I18n.t(`admin.watched_words.clear_all_confirm_${actionKey}`),
I18n.t("admin.watched_words.clear_all_confirm", {
action: I18n.t("admin.watched_words.actions." + actionKey),
}),
I18n.t("no_value"),
I18n.t("yes_value"),
(result) => {