Skip to content

Commit 76ca213

Browse files
authored
Merge pull request #2 from xefi/fix/get-locale
Add getLocale to Address & Company Extension
2 parents a8a1ce0 + c73efef commit 76ca213

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Extensions/AddressExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
class AddressExtension extends Extension
88
{
9+
public function getLocale(): string|null
10+
{
11+
return 'en_GB';
12+
}
13+
914
protected $counties = [
1015
['ENG' => 'Bedfordshire'], ['ENG' => 'Berkshire'], ['ENG' => 'Bristol'], ['ENG' => 'Buckinghamshire'],
1116
['ENG' => 'Cambridgeshire'], ['ENG' => 'Cheshire'], ['ENG' => 'Cornwall'], ['ENG' => 'Cumbria'],

src/Extensions/CompanyExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
class CompanyExtension extends Extension
99
{
10+
public function getLocale(): string|null
11+
{
12+
return 'en_GB';
13+
}
14+
1015
private array $companies = [
1116
"TechWave Innovations", "CloudSphere Solutions", "Quantum Nexus Labs",
1217
"FutureSync Systems", "DigitalFoundry Inc.", "PrimeCore Investments",

0 commit comments

Comments
 (0)