Keys with escaped single or double quote (', ") do not work
yya opened this issue · 3 comments
yya commented
When having single or double quotes in the keys the scanner does not work properly even if the quotes are escaped with ''.
Using the regex using in $stringPattern from this package can help:
https://github.com/barryvdh/laravel-translation-manager/blob/master/src/Manager.php#L172
pedroshift commented
bensinjin commented
Work around (blade template):
{{ __('You :cant choose :other. ', ['cant' => 'can\'t', 'other' => '"Other"']) }}
leetdev commented
Work around (blade template):
{{ __('You :cant choose :other. ', ['cant' => 'can\'t', 'other' => '"Other"']) }}
This will still have the issue with the strings can't
and "Other"
(or anything else you might use with this workaround) not being translated though.