Skip to content

Commit

Permalink
fix: error in language detection
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
fabianpimminger committed Apr 27, 2022
1 parent 17d716d commit 9600bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static function get_language() {
}

$locale = get_locale();
$locale_parts = explode( '_', $lang );
$locale_parts = explode( '_', $locale );
if(count($locale_parts) > 1){
return $locale_parts[0];
} else {
Expand Down

0 comments on commit 9600bac

Please sign in to comment.