-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: