From 85cf69b27a477aca8401c6aa912230f059151c5e Mon Sep 17 00:00:00 2001 From: devansh bawari Date: Wed, 9 Jun 2021 12:19:11 +0530 Subject: [PATCH] Comments Updated --- packages/Webkul/Core/src/Core.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/Webkul/Core/src/Core.php b/packages/Webkul/Core/src/Core.php index 841d73f68..7f37f5913 100755 --- a/packages/Webkul/Core/src/Core.php +++ b/packages/Webkul/Core/src/Core.php @@ -314,13 +314,15 @@ class Core } /** - * Get locale code from request. + * Get locale code from request. Here if you want to use admin locale, + * you can pass it as an argument. * + * @param string $localeKey optional * @return string */ - public function getRequestedLocaleCode($localeCode = 'locale'): string + public function getRequestedLocaleCode($localeKey = 'locale'): string { - return request()->get($localeCode) ?: app()->getLocale(); + return request()->get($localeKey) ?: app()->getLocale(); } /**