Tai Hi all, i want override function tagLabel in extension Tag, path flarum/tags/helpers/tagLabel, how to do it?
Toby Unfortunately I don't think it's possible to override simple functions like helpers using Flarum's module setup. Ultimately we should probably convert most helpers into actual Components to work around this. PRs welcome 🙂
Tai Because i want add other language for tag. I overrided tag language in tagPage,tagHero,tagModal but not override in addtagComponents and addTagLabel. Thanks for reply Toby . i will try find any provisional solution.
Tai BlackSheep I want add new language for tag name for when change language of forum the tag name will change. I create new extension work good but have issue not override tag name language in 2 files helper:addtagComponents and addTagLabels .
Tai I find solution remove old item 'tags' and re-add new item 'tags'. Thanks @Toby and BlackSheep . extend(DiscussionComposer.prototype, 'headerItems', items => { items.remove('tags'); });
babyken Hello, I am doing the same thing. Could you give me some more hint to do so? I tried many way, however not all the tags on the screen are translated. Thanks.