Skip to content

Commit

Permalink
Merge pull request #239 from Laravel-Lang/12.x
Browse files Browse the repository at this point in the history
Fixed `lang:update` command
  • Loading branch information
Andrey Helldar authored Mar 6, 2022
2 parents d557956 + 37edca9 commit 200a9ac
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Console/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ class Update extends Base

protected function targetLocales(): array
{
$locales = parent::targetLocales();
$locales = parent::targetLocales();
$protected = $this->getProtected();

return Arrayable::of($locales)
->addUnique($this->getProtected())
->push($protected)
->flatten()
->unique()
->sort()
->values()
->get();
Expand Down

0 comments on commit 200a9ac

Please sign in to comment.