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 {