-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Empty translation strings return the key #34218
Comments
brendt
referenced
this issue
Sep 9, 2020
I may need to note this as a breaking change. |
This seems to be expected behavior given current state of code just needs to be documented. |
@taylorotwell This also affects Laravel 6 and 7 causing a breaking change there. |
driesvints
referenced
this issue
in illuminate/translation
Sep 9, 2020
Awesome, thanks |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Description:
I believe that due to a recent change in
\Illuminate\Translation\Translator
, empty translation keys now also result in the translation key being show, instead of just the empty string.This commit added an
empty
check: 02e983eempty
return true when a string is empty, but an empty translation is a valid one. I believeisset
should be used.Steps To Reproduce:
Here's a simple test case taken from https://github.com/spatie/laravel-translation-loader/blob/master/tests/DummyManagerTest.php
The text was updated successfully, but these errors were encountered: