Skip to content

Commit

Permalink
chore: migrate en_GB to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
doughlass committed Jan 19, 2022
1 parent ec4efba commit c647f50
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module['exports'] = [
export const county: string[] = [
'Avon',
'Bedfordshire',
'Berkshire',
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_GB/address/default_country.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/en_GB/address/default_country.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const default_country: string[] = ['England', 'Scotland', 'Wales', 'Northern Ireland'];
6 changes: 0 additions & 6 deletions src/locales/en_GB/address/index.js

This file was deleted.

11 changes: 11 additions & 0 deletions src/locales/en_GB/address/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { default_country } from "./default_country";
import { county } from "./county";
import { postcode } from "./postcode";
import { uk_country } from "./uk_country";

export const address = {
county: county,
uk_country: uk_country,
default_country: default_country,
postcode: postcode,
};
1 change: 0 additions & 1 deletion src/locales/en_GB/address/postcode.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/en_GB/address/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const postcode: string[] = ['??# #??', '??## #??'];
1 change: 0 additions & 1 deletion src/locales/en_GB/address/uk_country.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/en_GB/address/uk_country.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const uk_country: string[] = ['England', 'Scotland', 'Wales', 'Northern Ireland'];
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module['exports'] = [
export const formats: string[] = [
'074## ######',
'075## ######',
'076## ######',
Expand Down
3 changes: 0 additions & 3 deletions src/locales/en_GB/cell_phone/index.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/locales/en_GB/cell_phone/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { formats } from "./formats";

export const cell_phone = {
formats: formats,
};
12 changes: 8 additions & 4 deletions src/locales/en_GB/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import type { LocaleDefinition } from '../..';
import { address } from './address';
import { cell_phone } from './cell_phone';
import { internet } from './internet';
import { phone_number } from './phone_number';

const en_GB: LocaleDefinition = {
title: 'English (Great Britain)',
address: require('./address'),
internet: require('./internet'),
phone_number: require('./phone_number'),
cell_phone: require('./cell_phone'),
address: address,
internet: internet,
phone_number: phone_number,
cell_phone: cell_phone,
};

export default en_GB;
1 change: 0 additions & 1 deletion src/locales/en_GB/internet/domain_suffix.js

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/en_GB/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const domain_suffix: string[] = ['co.uk', 'co', 'com', 'biz', 'info', 'name', 'uk'];
3 changes: 0 additions & 3 deletions src/locales/en_GB/internet/index.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/locales/en_GB/internet/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { domain_suffix } from "./domain_suffix";

export const internet = {
domain_suffix: domain_suffix
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module['exports'] = [
export const formats: string[] = [
'01#### #####',
'01### ######',
'01#1 ### ####',
Expand Down
3 changes: 0 additions & 3 deletions src/locales/en_GB/phone_number/index.js

This file was deleted.

5 changes: 5 additions & 0 deletions src/locales/en_GB/phone_number/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { formats } from "./formats";

export const phone_number = {
formats: formats,
};

0 comments on commit c647f50

Please sign in to comment.