We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a33919e commit 7bc8816Copy full SHA for 7bc8816
1 file changed
src/Dictionaries/Locales.php
@@ -20,6 +20,7 @@ protected function getItems(): array
20
$output = Process::run($this->buildLocalesCommand());
21
22
return collect(explode(PHP_EOL, $output))
23
+ ->filter(fn ($locale) => mb_check_encoding($locale, 'UTF-8'))
24
->map(fn ($locale) => Str::before($locale, '.'))
25
->reject(fn ($locale) => in_array($locale, ['C', 'POSIX']))
26
->filter()
0 commit comments