Skip to content

Commit

Permalink
Release 1.2.4 - update Iso filters for lowercase Locale
Browse files Browse the repository at this point in the history
  • Loading branch information
vanengers committed Jan 3, 2024
1 parent 642d065 commit 5a3622a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translate/IsoFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function getIsoByLocaleDeepL(string $locale): ?string

self::loadLanguages();
foreach(self::$languages as $lang) {
if (strtolower($lang->getLocale()) == $locale) {
if (strtolower($lang->getLocale()) == strtolower($locale)) {
if (array_key_exists($lang->getIso(), $deeplTrans)) {
return $deeplTrans[$lang->getIso()];
}
Expand Down

0 comments on commit 5a3622a

Please sign in to comment.