diff --git a/src/locales/en_GB/address/county.js b/src/locales/en_GB/address/county.ts similarity index 97% rename from src/locales/en_GB/address/county.js rename to src/locales/en_GB/address/county.ts index 3c39804401a..c1745b589db 100644 --- a/src/locales/en_GB/address/county.js +++ b/src/locales/en_GB/address/county.ts @@ -1,4 +1,4 @@ -module['exports'] = [ +export const county: string[] = [ 'Avon', 'Bedfordshire', 'Berkshire', diff --git a/src/locales/en_GB/address/default_country.js b/src/locales/en_GB/address/default_country.js deleted file mode 100644 index 0459121defc..00000000000 --- a/src/locales/en_GB/address/default_country.js +++ /dev/null @@ -1 +0,0 @@ -module['exports'] = ['England', 'Scotland', 'Wales', 'Northern Ireland']; diff --git a/src/locales/en_GB/address/default_country.ts b/src/locales/en_GB/address/default_country.ts new file mode 100644 index 00000000000..1f7b6b1b643 --- /dev/null +++ b/src/locales/en_GB/address/default_country.ts @@ -0,0 +1 @@ +export const default_country: string[] = ['England', 'Scotland', 'Wales', 'Northern Ireland']; diff --git a/src/locales/en_GB/address/index.js b/src/locales/en_GB/address/index.js deleted file mode 100644 index d22de0adbc7..00000000000 --- a/src/locales/en_GB/address/index.js +++ /dev/null @@ -1,6 +0,0 @@ -var address = {}; -module['exports'] = address; -address.county = require('./county'); -address.uk_country = require('./uk_country'); -address.default_country = require('./default_country'); -address.postcode = require('./postcode'); diff --git a/src/locales/en_GB/address/index.ts b/src/locales/en_GB/address/index.ts new file mode 100644 index 00000000000..f0967b5fafd --- /dev/null +++ b/src/locales/en_GB/address/index.ts @@ -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, +}; diff --git a/src/locales/en_GB/address/postcode.js b/src/locales/en_GB/address/postcode.js deleted file mode 100644 index e38ff8addff..00000000000 --- a/src/locales/en_GB/address/postcode.js +++ /dev/null @@ -1 +0,0 @@ -module['exports'] = ['??# #??', '??## #??']; diff --git a/src/locales/en_GB/address/postcode.ts b/src/locales/en_GB/address/postcode.ts new file mode 100644 index 00000000000..2e2e06d6729 --- /dev/null +++ b/src/locales/en_GB/address/postcode.ts @@ -0,0 +1 @@ +export const postcode: string[] = ['??# #??', '??## #??']; diff --git a/src/locales/en_GB/address/uk_country.js b/src/locales/en_GB/address/uk_country.js deleted file mode 100644 index 0459121defc..00000000000 --- a/src/locales/en_GB/address/uk_country.js +++ /dev/null @@ -1 +0,0 @@ -module['exports'] = ['England', 'Scotland', 'Wales', 'Northern Ireland']; diff --git a/src/locales/en_GB/address/uk_country.ts b/src/locales/en_GB/address/uk_country.ts new file mode 100644 index 00000000000..6a26c66b46f --- /dev/null +++ b/src/locales/en_GB/address/uk_country.ts @@ -0,0 +1 @@ +export const uk_country: string[] = ['England', 'Scotland', 'Wales', 'Northern Ireland']; diff --git a/src/locales/en_GB/cell_phone/formats.js b/src/locales/en_GB/cell_phone/formats.ts similarity index 76% rename from src/locales/en_GB/cell_phone/formats.js rename to src/locales/en_GB/cell_phone/formats.ts index 432a645efb8..4b94c32a3e0 100644 --- a/src/locales/en_GB/cell_phone/formats.js +++ b/src/locales/en_GB/cell_phone/formats.ts @@ -1,4 +1,4 @@ -module['exports'] = [ +export const formats: string[] = [ '074## ######', '075## ######', '076## ######', diff --git a/src/locales/en_GB/cell_phone/index.js b/src/locales/en_GB/cell_phone/index.js deleted file mode 100644 index c3ee77a16e6..00000000000 --- a/src/locales/en_GB/cell_phone/index.js +++ /dev/null @@ -1,3 +0,0 @@ -var cell_phone = {}; -module['exports'] = cell_phone; -cell_phone.formats = require('./formats'); diff --git a/src/locales/en_GB/cell_phone/index.ts b/src/locales/en_GB/cell_phone/index.ts new file mode 100644 index 00000000000..a15bb706582 --- /dev/null +++ b/src/locales/en_GB/cell_phone/index.ts @@ -0,0 +1,5 @@ +import { formats } from "./formats"; + +export const cell_phone = { + formats: formats, +}; diff --git a/src/locales/en_GB/index.ts b/src/locales/en_GB/index.ts index fad75e03144..90da48bddf1 100644 --- a/src/locales/en_GB/index.ts +++ b/src/locales/en_GB/index.ts @@ -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; diff --git a/src/locales/en_GB/internet/domain_suffix.js b/src/locales/en_GB/internet/domain_suffix.js deleted file mode 100644 index 02bdbc768f4..00000000000 --- a/src/locales/en_GB/internet/domain_suffix.js +++ /dev/null @@ -1 +0,0 @@ -module['exports'] = ['co.uk', 'com', 'biz', 'info', 'name']; diff --git a/src/locales/en_GB/internet/domain_suffix.ts b/src/locales/en_GB/internet/domain_suffix.ts new file mode 100644 index 00000000000..6379eb1e13a --- /dev/null +++ b/src/locales/en_GB/internet/domain_suffix.ts @@ -0,0 +1 @@ +export const domain_suffix: string[] = ['co.uk', 'co', 'com', 'biz', 'info', 'name', 'uk']; diff --git a/src/locales/en_GB/internet/index.js b/src/locales/en_GB/internet/index.js deleted file mode 100644 index 6ec1236ce1e..00000000000 --- a/src/locales/en_GB/internet/index.js +++ /dev/null @@ -1,3 +0,0 @@ -var internet = {}; -module['exports'] = internet; -internet.domain_suffix = require('./domain_suffix'); diff --git a/src/locales/en_GB/internet/index.ts b/src/locales/en_GB/internet/index.ts new file mode 100644 index 00000000000..da165750986 --- /dev/null +++ b/src/locales/en_GB/internet/index.ts @@ -0,0 +1,5 @@ +import { domain_suffix } from "./domain_suffix"; + +export const internet = { + domain_suffix: domain_suffix +}; diff --git a/src/locales/en_GB/phone_number/formats.js b/src/locales/en_GB/phone_number/formats.ts similarity index 88% rename from src/locales/en_GB/phone_number/formats.js rename to src/locales/en_GB/phone_number/formats.ts index 7e00d545e38..17e3d7f5c35 100644 --- a/src/locales/en_GB/phone_number/formats.js +++ b/src/locales/en_GB/phone_number/formats.ts @@ -1,4 +1,4 @@ -module['exports'] = [ +export const formats: string[] = [ '01#### #####', '01### ######', '01#1 ### ####', diff --git a/src/locales/en_GB/phone_number/index.js b/src/locales/en_GB/phone_number/index.js deleted file mode 100644 index f5e173fe978..00000000000 --- a/src/locales/en_GB/phone_number/index.js +++ /dev/null @@ -1,3 +0,0 @@ -var phone_number = {}; -module['exports'] = phone_number; -phone_number.formats = require('./formats'); diff --git a/src/locales/en_GB/phone_number/index.ts b/src/locales/en_GB/phone_number/index.ts new file mode 100644 index 00000000000..1658ff67270 --- /dev/null +++ b/src/locales/en_GB/phone_number/index.ts @@ -0,0 +1,5 @@ +import { formats } from "./formats"; + +export const phone_number = { + formats: formats, +};