Skip to content

Commit

Permalink
New Verify V2 Locales (#445)
Browse files Browse the repository at this point in the history
* new locale list

* fix race condition, force php time
  • Loading branch information
SecondeJK authored Oct 16, 2023
1 parent ffef809 commit 137e8cb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
34 changes: 29 additions & 5 deletions src/Verify2/VerifyObjects/VerificationLocale.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,43 @@
class VerificationLocale
{
private array $allowedCodes = [
'en-us',
'fr-fr',
'en-gb',
'en-us',
'es-es',
'es-mx',
'es-us',
'it-it',
'fr-fr',
'de-de',
'ru-ru',
'hi-in',
'pt-br',
'pt-pt',
'ru-ru',
'hi-in',
'id-id',
'he-il',
'yue-cn',
'ja-jp',
'ar-xa',
'cs-cz',
'cy-gb',
'el-gr',
'en-au',
'en-in',
'es-mx',
'fi-fi',
'fil-ph',
'fr-ca',
'hu-hu',
'is-is',
'nb-no',
'nl-nl',
'pl-pl',
'ro-ro',
'sv-se',
'th-th',
'tr-tr',
'vi-vn',
'zh-cn',
'zh-tw'
];

public function __construct(protected string $code = 'en-us')
Expand Down
5 changes: 5 additions & 0 deletions test/Client/Credentials/KeypairTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public function setUp(): void
$this->key = file_get_contents(__DIR__ . '/test.key');
}

public function time(): int
{
return 1697209080;
}

public function testAsArray(): void
{
$credentials = new Keypair($this->key, $this->application);
Expand Down

0 comments on commit 137e8cb

Please sign in to comment.