diff --git a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js index 6d8d758c60e..c9b7e084c17 100644 --- a/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js +++ b/app/assets/javascripts/discourse/app/services/deprecation-warning-handler.js @@ -82,7 +82,9 @@ export default class DeprecationWarningHandler extends Service { notifyAdmin(id, source) { this.#adminWarned = true; - let notice = I18n.t("critical_deprecation.notice"); + let notice = I18n.t("critical_deprecation.notice", { + id: escapeExpression(id), + }); if (this.siteSettings.warn_critical_js_deprecations_message) { notice += " " + this.siteSettings.warn_critical_js_deprecations_message; diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 2a37c872f8a..9db0f75dd4b 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -226,7 +226,7 @@ en: broken_plugin_alert: "Caused by plugin '%{name}'" critical_deprecation: - notice: "[Admin Notice] One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes (more info)." + notice: "[Admin Notice] One of your themes or plugins needs updating for compatibility with upcoming Discourse core changes (id:%{id})." theme_source: "Identified theme: '%{name}'." plugin_source: "Identified plugin: '%{name}'"