Skip to content

Commit

Permalink
Prevent nulling out validation translations with empty keys. Closes s…
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored and tomhelmer committed Oct 1, 2020
1 parent 0a0b71b commit 87e993c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Translator/Commands/Generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ protected function generateManualKeyFiles()
foreach ($this->manualFiles as $file) {
$source = 'resources/lang/en/'.$file.'.php';
$fullSourcePath = __DIR__.'/../../../'.$source;
$strings = collect(require $fullSourcePath);
$strings = require $fullSourcePath;
$strings = collect(Arr::dot($strings));

foreach ($this->languages() as $lang) {
if ($lang === 'en') {
Expand Down

0 comments on commit 87e993c

Please sign in to comment.