mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 04:04:59 -05:00
On mobile we remove the create topic button label:  and we don't have a great way to add it back (https://meta.discourse.org/t/new-topic-button-hidden-text/364902) this will allow the translation to be set for both mobile and desktop like this: ```js import { apiInitializer } from "discourse/lib/api"; export default apiInitializer((api) => { api.registerValueTransformer("create-topic-label", ({ value, context }) => { return context.defaultKey; }); }); ```  and also grants the flexibility to have a custom labels for mobile and desktop