File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff line change 1010use Plugin \MonduPayment \Src \Services \ConfigService ;
1111use Plugin \MonduPayment \Src \Support \HttpClients \MonduClient ;
1212use Plugin \MonduPayment \Src \Support \Debug \Debugger ;
13- use Plugin \MonduPayment \PaymentMethod \ Helper as MonduHelper ;
13+ use Plugin \MonduPayment \Src \ Helpers \ TranslationHelper ;
1414
1515class 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 );
You can’t perform that action at this time.
0 commit comments