Skip to content

fix: translate the Manage button on article pages - #201

Open
ernestdefoe wants to merge 1 commit into
2.xfrom
ed/translate-manage-button
Open

ernestdefoe wants to merge 1 commit into
2.xfrom
ed/translate-manage-button

Conversation

@ernestdefoe

Copy link
Copy Markdown

Fixes #196.

The article-tools dropdown on an article page had label="Manage" hard-coded in BlogPostController.tsx, so language packs couldn't translate it. It now uses fof-blog.forum.tools.manage, which sits next to the other article tools strings in locale/en.yml.

I scanned the rest of js/src for hard-coded labels, placeholders, titles and aria-labels. This was the only one. The ghost Category placeholder in BlogItem is skeleton filler while loading, so I left it alone.

Tested on stock Flarum 2.0.2 with an article in a blog tag, viewed as admin. The button reads "Manage". Setting the key to "Gérer" and redrawing changes the label. check-typings and format-check are clean. js/dist is left for the build bot.

🤖 Generated with Claude Code

Fixes #196

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Manage" label of FoFBlog-Article-Content-Edit-Button not localizable

1 participant