zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

Return full trans with args when translations missing. #48

Open HouCoder opened 4 years ago

HouCoder commented 4 years ago

With current approach _i('Hello %s', $userName) only returns Hello %s if no translation available.

philippe-bourdeau commented 3 years ago

@HouCoder Can you tell me what do you mean exactly but no translation available ? Does that mean that there is no entry in your .po file ? I'm asking because I cannot reproduce the issue you are having. The result I'm getting is the original message if there is no entry in the .po file.

Can you also confirm that you are using the symfony handler in your configuration ?