Skip to content

Commit

Permalink
Removing strlen(0). Sometime we need to keep an empty translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nbourguig committed Jan 16, 2019
1 parent 01751ed commit 3bd23b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translation/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function buildTranslationsForFile($fileTranslations)
// For instance, we have `app.title` that is the same for each locale,
// We dont want to translate it to every locale, and prefer letting
// Laravel default back to the default locale.
if (!isset($translation[$locale]) || strlen($translation[$locale]) == 0) {
if (!isset($translation[$locale])) {
continue;
}

Expand Down

0 comments on commit 3bd23b6

Please sign in to comment.