Finding strings in PHP files that used Laravel's "Using Translation Strings As Keys" locale format and make a JSON output file.
- Copy the Python file into your Laravel's
resources
folder - Run:
laravel_locale_finder.py views
Use this if your JSON locale file already has some data.
- Copy your JSON locale file into the
resources
folder - Copy the Python file into your Laravel's resources folder
- Run:
laravel_locale_finder.py views YOUR_JSON_LOCALE_FILE.json
- The output file will be
YOUR_JSON_LOCALE_FILE.json.output
- Now you can beautify the result with online services
- Copy the result to your original JSON locale file
- Delete unused files