-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into hotfix/moneiProjects
* upstream/main: chore: release v1.3.12 ignore pnp files Fix validation card name Add language and json style in config Validate cardholder name on the frontend with a new reg exp chore: release v1.3.11 update yarn Fix error order status chore: release v1.3.10 Remove unnecessary depends Fix error save credentials from the admin
- Loading branch information
Showing
21 changed files
with
218 additions
and
13,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
/** | ||
* @author Monei Team | ||
* @copyright Copyright © Monei (https://monei.com) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Monei\MoneiPayment\Model\Config\Source; | ||
|
||
use Magento\Framework\Data\OptionSourceInterface; | ||
|
||
/** | ||
* Monei type of payment source model. | ||
*/ | ||
class Language implements OptionSourceInterface | ||
{ | ||
public const LANGUAGES = [ | ||
'en' => 'English', | ||
'es' => 'Spanish', | ||
'ca' => 'Catalan', | ||
'pt' => 'Portuguese', | ||
'de' => 'German', | ||
'it' => 'Italian', | ||
'fr' => 'French', | ||
'nl' => 'Dutch', | ||
'et' => 'Estonian', | ||
'fi' => 'Finnish', | ||
'lv' => 'Latvian', | ||
'no' => 'Norwegian', | ||
'pl' => 'Polish', | ||
'ru' => 'Russian', | ||
]; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function toOptionArray(): array | ||
{ | ||
$options = []; | ||
foreach (self::LANGUAGES as $key => $value) { | ||
$options[] = ['label' => __($value), 'value' => $key]; | ||
} | ||
|
||
return $options; | ||
} | ||
} |
Oops, something went wrong.