A platform for community discussion. Free, open, simple.
DEV: add create-topic-label value transformer (#32621)
Kris930eeb1890c7
diff --git a/app/assets/javascripts/discourse/app/components/d-navigation.gjs b/app/assets/javascripts/discourse/app/components/d-navigation.gjsindex f3250d4203c..8010bf4c008 100644--- a/app/assets/javascripts/discourse/app/components/d-navigation.gjs+++ b/app/assets/javascripts/discourse/app/components/d-navigation.gjs@@ -35,7 +35,13 @@ export default class DNavigation extends Component {@setting("fixed_category_positions") fixedCategoryPositions;get createTopicLabel() {- return this.site.desktopView ? "topic.create" : "";+ const defaultKey = "topic.create";++ return applyValueTransformer(+ "create-topic-label",+ this.site.desktopView ? defaultKey : "",+ { site: this.site, defaultKey }+ );}get showBulkSelectInNavControls() {diff --git a/app/assets/javascripts/discourse/app/lib/transformer/registry.js b/app/assets/javascripts/discourse/app/lib/transformer/registry.jsindex e7e4ff3f878..177769e8553 100644--- a/app/assets/javascripts/discourse/app/lib/transformer/registry.js+++ b/app/assets/javascripts/discourse/app/lib/transformer/registry.js@@ -18,6 +18,7 @@ export const VALUE_TRANSFORMERS = Object.freeze(["category-text-color","composer-save-button-label","composer-service-cannot-submit-post",+ "create-topic-label","flag-description","flag-custom-placeholder","flag-formatted-name",