I'm working on a new extension and I figured some might be interested.
While the extension is safe to install, it's not very useful right now so I'm not putting this under Extensions for now.
The extension adds a button to the left side navigation on the homepage. When clicked, all translations on the page are highlighted, and you can click on one to get additional details.
The modal that opens will tell you what the translation key is, which extension provides the text, which files defines it and a link to GitHub if the extension is hosted there.
I'll add a few more features in the coming weeks. My main use case is a community I'm working on which will have many pages of content whose text are defined in a custom extension, and I want to provide an easy way for users to locate the text on the GitHub repository to contribute pull requests.
I also want to couple this with another extension I'm working on which will allow reporting various things on the website, and will include a way to "report" a translation to the moderators as a way for less techy people to contribute fixes.
Do you have other use case ideas?
You can find the extension here https://github.com/clarkwinkelmann/flarum-ext-translation-inspector
There's no version tagged yet, but you should be able to install it with As of June, the extension is now properly tagged. Use
composer require clarkwinkelmann/flarum-ext-translation-inspector:dev-master
composer require clarkwinkelmann/flarum-ext-translation-inspector to install.
At this time the extension cannot locate the origin of translations that come from a workbench folder or a local extension. I also haven't tested what happens with Linguist yet, but I suspect it will incorrectly link to the original translation and not know it has been customized by Linguist.