Skip to content

Commit 137e8cb

Browse files
authored
New Verify V2 Locales (#445)
* new locale list * fix race condition, force php time
1 parent ffef809 commit 137e8cb

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

src/Verify2/VerifyObjects/VerificationLocale.php

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,43 @@
55
class VerificationLocale
66
{
77
private array $allowedCodes = [
8-
'en-us',
8+
'fr-fr',
99
'en-gb',
10+
'en-us',
1011
'es-es',
11-
'es-mx',
1212
'es-us',
1313
'it-it',
14-
'fr-fr',
1514
'de-de',
16-
'ru-ru',
17-
'hi-in',
1815
'pt-br',
1916
'pt-pt',
17+
'ru-ru',
18+
'hi-in',
2019
'id-id',
20+
'he-il',
21+
'yue-cn',
22+
'ja-jp',
23+
'ar-xa',
24+
'cs-cz',
25+
'cy-gb',
26+
'el-gr',
27+
'en-au',
28+
'en-in',
29+
'es-mx',
30+
'fi-fi',
31+
'fil-ph',
32+
'fr-ca',
33+
'hu-hu',
34+
'is-is',
35+
'nb-no',
36+
'nl-nl',
37+
'pl-pl',
38+
'ro-ro',
39+
'sv-se',
40+
'th-th',
41+
'tr-tr',
42+
'vi-vn',
43+
'zh-cn',
44+
'zh-tw'
2145
];
2246

2347
public function __construct(protected string $code = 'en-us')

test/Client/Credentials/KeypairTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public function setUp(): void
2929
$this->key = file_get_contents(__DIR__ . '/test.key');
3030
}
3131

32+
public function time(): int
33+
{
34+
return 1697209080;
35+
}
36+
3237
public function testAsArray(): void
3338
{
3439
$credentials = new Keypair($this->key, $this->application);

0 commit comments

Comments
 (0)