diff --git a/app/assets/javascripts/discourse/app/components/discourse-linked-text.js b/app/assets/javascripts/discourse/app/components/discourse-linked-text.js index 0c60dd1b6d6..acbb88021a2 100644 --- a/app/assets/javascripts/discourse/app/components/discourse-linked-text.js +++ b/app/assets/javascripts/discourse/app/components/discourse-linked-text.js @@ -5,10 +5,10 @@ import discourseComputed from "discourse-common/utils/decorators"; export default Component.extend({ tagName: "span", - @discourseComputed("text") + @discourseComputed("text", "textParams") translatedText(text) { if (text) { - return I18n.t(text); + return I18n.t(...arguments); } }, diff --git a/app/assets/javascripts/discourse/app/templates/components/pwa-install-banner.hbs b/app/assets/javascripts/discourse/app/templates/components/pwa-install-banner.hbs index 1235c03ad0e..a4ab37cc7ed 100644 --- a/app/assets/javascripts/discourse/app/templates/components/pwa-install-banner.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/pwa-install-banner.hbs @@ -4,7 +4,8 @@ {{discourse-linked-text action=(action "turnOn") - translatedText=(i18n "pwa.install_banner" title=siteSettings.title) + text="pwa.install_banner" + textParams=(hash title=siteSettings.title) }} {{d-button