From 9600bac5680438c54eefce6790fa8de2947ced1c Mon Sep 17 00:00:00 2001 From: fabianpimminger Date: Wed, 27 Apr 2022 09:48:52 +0200 Subject: [PATCH] fix: error in language detection Fixes #2 --- includes/class-helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-helper.php b/includes/class-helper.php index 22e8399..6dde13b 100644 --- a/includes/class-helper.php +++ b/includes/class-helper.php @@ -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 {