Skip to content

Commit 493da73

Browse files
authored
Renamed helper (#31)
1 parent 1abca06 commit 493da73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php declare(strict_types=1);
22

3-
namespace Plugin\MonduPayment\PaymentMethod;
3+
namespace Plugin\MonduPayment\Src\Helpers;
44

5-
final class Helper
5+
final class TranslationHelper
66
{
77
public static function getLocaleFromISO(string $isoCode): string
88
{

frontend/hooks/CheckoutPaymentMethod.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Plugin\MonduPayment\Src\Services\ConfigService;
1111
use Plugin\MonduPayment\Src\Support\HttpClients\MonduClient;
1212
use Plugin\MonduPayment\Src\Support\Debug\Debugger;
13-
use Plugin\MonduPayment\PaymentMethod\Helper as MonduHelper;
13+
use Plugin\MonduPayment\Src\Helpers\TranslationHelper;
1414

1515
class CheckoutPaymentMethod
1616
{
@@ -81,7 +81,7 @@ private function isPaymentGroupingEnabled()
8181
private function __translate($original) {
8282
$getText = Shop::Container()->getGetText();
8383
$oldLocale = $getText->getLanguage();
84-
$locale = MonduHelper::getLocaleFromISO(Shop::Lang()->getIso());
84+
$locale = TranslationHelper::getLocaleFromISO(Shop::Lang()->getIso());
8585

8686
$getText->setLanguage($locale);
8787
$translation = \__($original);

0 commit comments

Comments
 (0)