Skip to content

Commit 242cc79

Browse files
authored
feat(locale): add country code for en_CA & fr_CA (#3476)
1 parent 81c9fba commit 242cc79

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)
2+
export default [{ alpha2: 'CA', alpha3: 'CAN', numeric: '124' }];

src/locales/en_CA/location/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import type { LocationDefinition } from '../../..';
66
import city_name from './city_name';
77
import city_pattern from './city_pattern';
8+
import country_code from './country_code';
89
import postcode from './postcode';
910
import postcode_by_state from './postcode_by_state';
1011
import state from './state';
@@ -14,6 +15,7 @@ import street_pattern from './street_pattern';
1415
const location: LocationDefinition = {
1516
city_name,
1617
city_pattern,
18+
country_code,
1719
postcode,
1820
postcode_by_state,
1921
state,
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1)
2+
export default [{ alpha2: 'CA', alpha3: 'CAN', numeric: '124' }];

src/locales/fr_CA/location/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
*/
55
import type { LocationDefinition } from '../../..';
66
import city_pattern from './city_pattern';
7+
import country_code from './country_code';
78
import postcode from './postcode';
89
import state from './state';
910
import state_abbr from './state_abbr';
1011
import street_pattern from './street_pattern';
1112

1213
const location: LocationDefinition = {
1314
city_pattern,
15+
country_code,
1416
postcode,
1517
state,
1618
state_abbr,

0 commit comments

Comments
 (0)