diff --git a/packages/Webkul/Admin/src/Listeners/Order.php b/packages/Webkul/Admin/src/Listeners/Order.php index 887c0a4c2..52887d8e7 100755 --- a/packages/Webkul/Admin/src/Listeners/Order.php +++ b/packages/Webkul/Admin/src/Listeners/Order.php @@ -35,7 +35,7 @@ class Order /* email to admin */ $configKey = 'emails.general.notifications.emails.general.notifications.new-admin'; if (core()->getConfigData($configKey)) { - $this->prepareMail(env('APP_LOCALE'), new NewAdminNotification($order)); + $this->prepareMail(config('app.locale'), new NewAdminNotification($order)); } } catch (\Exception $e) { report($e); @@ -112,7 +112,7 @@ class Order /* email to admin */ $configKey = 'emails.general.notifications.emails.general.notifications.new-inventory-source'; if (core()->getConfigData($configKey)) { - $this->prepareMail(env('APP_LOCALE'), new NewInventorySourceNotification($shipment)); + $this->prepareMail(config('app.locale'), new NewInventorySourceNotification($shipment)); } } catch (\Exception $e) { report($e); @@ -137,7 +137,7 @@ class Order /* email to admin */ $configKey = 'emails.general.notifications.emails.general.notifications.new-admin'; if (core()->getConfigData($configKey)) { - $this->prepareMail(env('APP_LOCALE'), new CancelOrderAdminNotification($order)); + $this->prepareMail(config('app.locale'), new CancelOrderAdminNotification($order)); } } catch (\Exception $e) { report($e); @@ -189,4 +189,4 @@ class Order app()->setLocale($locale); Mail::queue($notification); } -} \ No newline at end of file +}