Added the --append parameter, only usable with the JSON type. This causes newfound translations to be put at the end of the JSON file, instead of just where it was found. It can be useful for automatisation purposes.
Also updated the regex in use to support parameters in translation strings, like the laravel docs example:
echo __('messages.welcome', ['name' => 'dayle']);
Added the --append parameter, only usable with the JSON type. This causes newfound translations to be put at the end of the JSON file, instead of just where it was found. It can be useful for automatisation purposes.
Also updated the regex in use to support parameters in translation strings, like the laravel docs example:
echo __('messages.welcome', ['name' => 'dayle']);