clarkwinkelmann / flarum-ext-translation-inspector
Enable forum users to find details about translations
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:TypeScript
Type:flarum-extension
Requires
- ext-json: *
- flarum/core: ^1.0
This package is auto-updated.
Last update: 2024-11-05 03:05:38 UTC
README
Enable forum users to find details about translations.
Features:
- A link in the session dropdown enables "inspect" mode
- When "inspect" mode is active, all translatable texts are highlighted
- Clicking on a text brings up a modal with details about the translation key, which extension provides it, and a link to the source file if it's on GitHub
- If you are in a context where you cannot click the inspect button (for example as guest or inside a modal), you can run
startTranslationInspection()
from the browser console
Caution: if you have private extensions or local extenders installed, this extension could expose their repository URLs, names, icons or relative paths to some of their yaml files to users with the Inspect permission!
With the current feature set it probably doesn't make much sense to install this extension on a production forum. It is more meant as a developer tool.
Installation
composer require clarkwinkelmann/flarum-ext-translation-inspector
Support
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.
You can contact me to sponsor additional features or updates.
Support is offered on a "best effort" basis through the Flarum community thread.