Skip to content

Commit

Permalink
feat: add spain (and france) as supported countries to v3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmichaelwallace committed May 22, 2024
1 parent 96f8d36 commit e18f317
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CountryCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class CountryCode
const UNITED_KINGDOM = 'GB';
const IRELAND = 'IE';
const NORWAY = 'NO';
const SPAIN = 'ES';
const FRANCE = 'FR';

/**
* Retrieves all supported country codes.
Expand All @@ -22,6 +24,8 @@ public static function all(): array
self::UNITED_KINGDOM,
self::IRELAND,
self::NORWAY,
self::SPAIN,
self::FRANCE,
];
}
}
14 changes: 14 additions & 0 deletions src/config/countries-partial.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,18 @@
'tld' => 'no',
'timezone' => 'Europe/Oslo',
],
CountryCode::FRANCE => [
'locale' => 'fr',
'systemLocale' => 'fr_FR.UTF-8',
'language' => 'FRA',
'tld' => 'fr',
'timezone' => 'Europe/Paris',
],
CountryCode::SPAIN => [
'locale' => 'es',
'systemLocale' => 'es_ES.UTF-8',
'language' => 'SPA',
'tld' => 'es',
'timezone' => 'Europe/Madrid',
],
];

0 comments on commit e18f317

Please sign in to comment.