wazzac/laravel-translate

@transl8() argument issues with comma inside the phrase

Closed this issue · 1 comments

There is currently a bug in the @transl8() blade directive (backend method) that incorrectly separates the 3 supplied arguments.

Example:

@transl8("We need to test it in the staging environment.","de") {{-- works --}}
@transl8("We need to test it in the staging environment, and inform the team.","de") {{-- fails because of the comma --}}

Suggestion, don't use explode().

Fixed in tag v0.4