Skip to content

Commit

Permalink
Merge pull request #5 from ibrammelad/master
Browse files Browse the repository at this point in the history
update in language controller
  • Loading branch information
mohamedary authored Jul 13, 2023
2 parents 3d7336f + eb71db9 commit 7c37205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/LanguageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function editTranslationEditorFile($values)
$configuration = include($path);

$values = array_filter($values, fn($val) =>
strlen($val) <= 2
strlen($val) >= 2 && strlen($val) <= 5
, ARRAY_FILTER_USE_KEY);

$configuration['languages'] = array_keys($values);
Expand All @@ -51,7 +51,7 @@ private function editTranslatableFile($values)
$configuration = include($path);

$values = array_filter($values, fn($val) =>
strlen($val) <= 2
strlen($val) >= 2 && strlen($val) <= 5
, ARRAY_FILTER_USE_KEY);

$configuration['locales'] = $this->array_column_ext($values, "name", -1);
Expand Down

0 comments on commit 7c37205

Please sign in to comment.