Open q-- opened 5 months ago
Decode PHP strings, so in the final JSON e.g. __('Don\'t') becomes "Don't" instead of "Don\\'t"
__('Don\'t')
"Don't"
"Don\\'t"
({{ __('This is a text with an apostrophe in it; let\'s add it to my translations file!') }})
php artisan translation:sync-missing-translation-keys
<language>.json
"This is a text with an apostrophe in it; let\\'s add it to my translations file!": "",
"This is a text with an apostrophe in it; let's add it to my translations file!": "",
Decode PHP strings, so in the final JSON e.g.
__('Don\'t')
becomes"Don't"
instead of"Don\\'t"
Steps to reproduce:
Blade file
Run
php artisan translation:sync-missing-translation-keys
How laravel-translation stores it in
<language>.json
after running that:What it should be storing: