Laravel Easy Localizer is a Visual Studio Code extension that simplifies the process of extracting and managing localization strings in Laravel projects.
Features
Automatically scans PHP files in your Laravel project for localization strings
Extracts strings in the format {{ __("string") }}
Generates JSON language files in the lang/ directory
Supports multiple languages simultaneously
Merges new strings with existing language files
Creates a master language file (default: 'en.json') with all extracted strings
Installation
Open Visual Studio Code
Go to the Extensions view (Ctrl+Shift+X)
Search for "Laravel Easy Localizer"
Click Install
Usage
Open your Laravel project in VSCode
Press Ctrl+Shift+P (Cmd+Shift+P on macOS) to open the Command Palette
Type "Extract Laravel Localization Strings" and select the command
Enter the desired language codes when prompted (e.g., "en,fr,es")
The extension will scan your project and generate/update language files in the lang/ directory
Configuration
Currently, there are no configurable settings for this extension. Future versions may include customization options.
If you encounter any problems or have suggestions, please write me by email at loicdaigle31@gmail.com . Please note that this extension might not have updates.
Changelog
1.0.0
Initial release of Laravel Easy Localizer
Basic functionality for extracting and managing localization strings
Acknowledgements
This extension was inspired by the need for easier localization management in Laravel projects and the supportive Laravel community.