evilfreelancer / translation-key-helper
Laravel plugin for displaying translation key inside HTML comments nearby text strings.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/evilfreelancer/translation-key-helper
Requires
- php: ^7.0
Requires (Dev)
- orchestra/testbench: ^4.0
This package is auto-updated.
Last update: 2025-10-13 04:34:27 UTC
README
Laravel plugin for displaying translation key inside HTML comments nearby text strings.
composer require evilfreelancer/translation-key-helper --dev
Please use this plugin only on development environment.
Example of usage
After installation of this plugin you can find lines like this in HTML source code on your site:
<ul id="navbar-main" class="navbar-nav"> <li class="nav-item"> <a class="nav-link active" href="http://localhost/posts"><!-- navbar.posts -->Posts</a> </li> <li class="nav-item"> <a class="nav-link " href="http://localhost/news"><!-- navbar.news -->News</a> </li> </ul>
Note
If you use VueJs, then you need to allow comments inside the div#app block
const app = new Vue({ el: '#app', comments: true, // When set to true, HTML comments found in templates will be saved and rendered. Default: false });