Skip to content

Commit 70994db

Browse files
authored
feat(locale): add Welsh (cy) phone number definitions (#3878)
1 parent 5bd8709 commit 70994db

8 files changed

Lines changed: 80 additions & 1 deletion

File tree

src/locales/cy/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import internet from './internet';
1111
import location from './location';
1212
import metadata from './metadata';
1313
import person from './person';
14+
import phone_number from './phone_number';
1415
import vehicle from './vehicle';
1516

1617
/**
@@ -28,6 +29,7 @@ const cy: LocaleDefinition = {
2829
location,
2930
metadata,
3031
person,
32+
phone_number,
3133
vehicle,
3234
};
3335

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default [
2+
'01#### #####',
3+
'01### ######',
4+
'01#1 ### ####',
5+
'011# ### ####',
6+
'02# #### ####',
7+
'03## ### ####',
8+
'055 #### ####',
9+
'056 #### ####',
10+
'0800 ### ####',
11+
'08## ### ####',
12+
'09## ### ####',
13+
'01### #####',
14+
'0500 ######',
15+
'0800 ######',
16+
];
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { PhoneNumberDefinition } from '../../../..';
6+
import human from './human';
7+
import international from './international';
8+
import mobile from './mobile';
9+
import national from './national';
10+
11+
const format: PhoneNumberDefinition['format'] = {
12+
human,
13+
international,
14+
mobile,
15+
national,
16+
};
17+
18+
export default format;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default [
2+
'+441#########',
3+
'+441#1#######',
4+
'+4411########',
5+
'+442#########',
6+
'+443#########',
7+
'+4455########',
8+
'+4456########',
9+
'+44800#######',
10+
'+448#########',
11+
'+449#########',
12+
'+441########',
13+
'+44500######',
14+
'+44800######',
15+
];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default ['07#########'];
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default [
2+
'01### ######',
3+
'01#1 ### ####',
4+
'011# ### ####',
5+
'02# #### ####',
6+
'03## ### ####',
7+
'055 #### ####',
8+
'056 #### ####',
9+
'0800 ### ####',
10+
'08## ### ####',
11+
'09## ### ####',
12+
'01### #####',
13+
'500######',
14+
'0800 ######',
15+
];
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* This file is automatically generated.
3+
* Run 'pnpm run generate:locales' to update.
4+
*/
5+
import type { PhoneNumberDefinition } from '../../..';
6+
import format from './format';
7+
8+
const phone_number: PhoneNumberDefinition = {
9+
format,
10+
};
11+
12+
export default phone_number;

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)