aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlix Lahuec <[email protected]>2025-04-16 17:42:17 -0400
committerGitHub <[email protected]>2025-04-16 23:42:17 +0200
commit242cc79607b3c5a66e84d3d8c451d4ec353651ac (patch)
tree72264e423433af6412fdaaf0d91b520d8e7d0986
parent81c9fbabdb0c5a4a8c7b2558013c933a5d356d25 (diff)
downloadfaker-242cc79607b3c5a66e84d3d8c451d4ec353651ac.tar.xz
faker-242cc79607b3c5a66e84d3d8c451d4ec353651ac.zip
feat(locale): add country code for en_CA & fr_CA (#3476)
-rw-r--r--src/locales/en_CA/location/country_code.ts2
-rw-r--r--src/locales/en_CA/location/index.ts2
-rw-r--r--src/locales/fr_CA/location/country_code.ts2
-rw-r--r--src/locales/fr_CA/location/index.ts2
4 files changed, 8 insertions, 0 deletions
diff --git a/src/locales/en_CA/location/country_code.ts b/src/locales/en_CA/location/country_code.ts
new file mode 100644
index 00000000..75683672
--- /dev/null
+++ b/src/locales/en_CA/location/country_code.ts
@@ -0,0 +1,2 @@
+// [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)
+export default [{ alpha2: 'CA', alpha3: 'CAN', numeric: '124' }];
diff --git a/src/locales/en_CA/location/index.ts b/src/locales/en_CA/location/index.ts
index 8103ffb4..04ccff07 100644
--- a/src/locales/en_CA/location/index.ts
+++ b/src/locales/en_CA/location/index.ts
@@ -5,6 +5,7 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
+import country_code from './country_code';
import postcode from './postcode';
import postcode_by_state from './postcode_by_state';
import state from './state';
@@ -14,6 +15,7 @@ import street_pattern from './street_pattern';
const location: LocationDefinition = {
city_name,
city_pattern,
+ country_code,
postcode,
postcode_by_state,
state,
diff --git a/src/locales/fr_CA/location/country_code.ts b/src/locales/fr_CA/location/country_code.ts
new file mode 100644
index 00000000..75683672
--- /dev/null
+++ b/src/locales/fr_CA/location/country_code.ts
@@ -0,0 +1,2 @@
+// [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)
+export default [{ alpha2: 'CA', alpha3: 'CAN', numeric: '124' }];
diff --git a/src/locales/fr_CA/location/index.ts b/src/locales/fr_CA/location/index.ts
index 4567ecde..eec8374f 100644
--- a/src/locales/fr_CA/location/index.ts
+++ b/src/locales/fr_CA/location/index.ts
@@ -4,6 +4,7 @@
*/
import type { LocationDefinition } from '../../..';
import city_pattern from './city_pattern';
+import country_code from './country_code';
import postcode from './postcode';
import state from './state';
import state_abbr from './state_abbr';
@@ -11,6 +12,7 @@ import street_pattern from './street_pattern';
const location: LocationDefinition = {
city_pattern,
+ country_code,
postcode,
state,
state_abbr,