Skip to content

Commit

Permalink
Fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
chinleung committed Sep 3, 2019
1 parent f064e6f commit c0cf61d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function locales(array $locales = null) : array
]);
}

return config('app.locales') ?? config('locales.supported');
$locales = config('app.locales') ?? config('locales.supported');

return isset($locales[0]) ? $locales : array_keys($locales);
}
}

Expand Down

0 comments on commit c0cf61d

Please sign in to comment.