diff --git a/app/assets/javascripts/admin/addon/components/admin-config-area-card.gjs b/app/assets/javascripts/admin/addon/components/admin-config-area-card.gjs index 78ad09b7af8..d2b5e0af90d 100644 --- a/app/assets/javascripts/admin/addon/components/admin-config-area-card.gjs +++ b/app/assets/javascripts/admin/addon/components/admin-config-area-card.gjs @@ -1,13 +1,20 @@ import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; -import i18n from "discourse-common/helpers/i18n"; +import I18n from "discourse-i18n"; export default class AdminConfigAreaCard extends Component { @tracked collapsed = false; + get computedHeading() { + if (this.args.heading) { + return I18n.t(this.args.heading); + } + return this.args.translatedHeading; + } +