Skip to content

Commit c5759f0

Browse files
committed
feat(locale): add Welsh (cy) postcode definitions
Based on the `en_GB` postcode definitions with prefix as recommened by @matthewmayer.
1 parent e72fd7c commit c5759f0

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/locales/cy/location/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ import type { LocationDefinition } from '../../..';
66
import county from './county';
77
import direction from './direction';
88
import postal_address from './postal_address';
9+
import postcode from './postcode';
10+
import postcode_prefix from './postcode_prefix';
911

1012
const location: LocationDefinition = {
1113
county,
1214
direction,
1315
postal_address,
16+
postcode,
17+
postcode_prefix,
1418
};
1519

1620
export default location;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default [
2+
'{{location.postcode_prefix}}# #??',
3+
'{{location.postcode_prefix}}## #??',
4+
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['CF', 'CH', 'HR', 'LD', 'LL', 'NP', 'SA', 'SY'];

test/__snapshots__/locale-data.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports[`locale-data > should only have known characters 1`] = `
88
"base": " ()+,-./:;ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",
99
"bn_BD": " (),-ঁংঅআইঈউএওকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ািীুূৃেৈোৌ্ড়য়",
1010
"cs_CZ": " #()+-.ABCDEFGHIJKLMNOPRSTUVWXZabcdefghijklmnopqrstuvwxyzÁÍÚáéíóöúüýČčĎďěňŘřŠšťůűŽž",
11-
"cy": " ,-ABCDEFGHILMNOPRSTWYabcdefghijklmnoprstuwyôŵ",
11+
"cy": " #,-?ABCDEFGHILMNOPRSTWYabcdefghijklmnoprstuwyôŵ",
1212
"da": " !"#()+,-./ABCDEFGHIJKLMNOPQRSTUVWYZabcdefghijklmnopqrstuvwxyzÅÆØãåæçéíø",
1313
"de": " #&'()+,-.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄÖÜßàãäéíöúü",
1414
"de_AT": " #&()+,-.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzÄÖÜßãäéíöúü",

0 commit comments

Comments
 (0)