diff --git a/docs/guide/localization.md b/docs/guide/localization.md index 1412ec000b3..b0bfbad8000 100644 --- a/docs/guide/localization.md +++ b/docs/guide/localization.md @@ -70,6 +70,7 @@ However, in most cases, using a specific locale will be beneficial in the long t | fr_BE | Français (Belgique) | | fr_CA | French (Canada) | | fr_CH | French (Switzerland) | +| fr_LU | French (Luxembourg) | | ge | Georgian | | he | Hebrew | | hr | Hrvatski | diff --git a/src/locale/fr_LU.ts b/src/locale/fr_LU.ts new file mode 100644 index 00000000000..8e63bfdbf4a --- /dev/null +++ b/src/locale/fr_LU.ts @@ -0,0 +1,17 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ + +import { Faker } from '../faker'; +import en from '../locales/en'; +import fr_LU from '../locales/fr_LU'; + +export const faker = new Faker({ + locale: 'fr_LU', + localeFallback: 'en', + locales: { + fr_LU, + en, + }, +}); diff --git a/src/locales/fr_LU/cell_phone/formats.ts b/src/locales/fr_LU/cell_phone/formats.ts new file mode 100644 index 00000000000..5e06f343414 --- /dev/null +++ b/src/locales/fr_LU/cell_phone/formats.ts @@ -0,0 +1,10 @@ +export default [ + '621 ### ###', + '661 ### ###', + '671 ### ###', + '691 ### ###', + '+352 621 ### ###', + '+352 661 ### ###', + '+352 671 ### ###', + '+352 691 ### ###', +]; diff --git a/src/locales/fr_LU/cell_phone/index.ts b/src/locales/fr_LU/cell_phone/index.ts new file mode 100644 index 00000000000..337d77f0bbb --- /dev/null +++ b/src/locales/fr_LU/cell_phone/index.ts @@ -0,0 +1,11 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import formats from './formats'; + +const cell_phone = { + formats, +}; + +export default cell_phone; diff --git a/src/locales/fr_LU/index.ts b/src/locales/fr_LU/index.ts new file mode 100644 index 00000000000..916c21d57bf --- /dev/null +++ b/src/locales/fr_LU/index.ts @@ -0,0 +1,19 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocaleDefinition } from '../..'; +import cell_phone from './cell_phone'; +import internet from './internet'; +import location from './location'; +import phone_number from './phone_number'; + +const fr_LU: LocaleDefinition = { + title: 'French (Luxembourg)', + cell_phone, + internet, + location, + phone_number, +}; + +export default fr_LU; diff --git a/src/locales/fr_LU/internet/domain_suffix.ts b/src/locales/fr_LU/internet/domain_suffix.ts new file mode 100644 index 00000000000..14d85ea56c0 --- /dev/null +++ b/src/locales/fr_LU/internet/domain_suffix.ts @@ -0,0 +1 @@ +export default ['lu']; diff --git a/src/locales/fr_LU/internet/index.ts b/src/locales/fr_LU/internet/index.ts new file mode 100644 index 00000000000..5726872bcb7 --- /dev/null +++ b/src/locales/fr_LU/internet/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { InternetDefinitions } from '../../..'; +import domain_suffix from './domain_suffix'; + +const internet: InternetDefinitions = { + domain_suffix, +}; + +export default internet; diff --git a/src/locales/fr_LU/location/city.ts b/src/locales/fr_LU/location/city.ts new file mode 100644 index 00000000000..ad43b68fc5c --- /dev/null +++ b/src/locales/fr_LU/location/city.ts @@ -0,0 +1 @@ +export default ['{{location.city_name}}']; diff --git a/src/locales/fr_LU/location/city_name.ts b/src/locales/fr_LU/location/city_name.ts new file mode 100644 index 00000000000..6c1ee8e66e7 --- /dev/null +++ b/src/locales/fr_LU/location/city_name.ts @@ -0,0 +1,14 @@ +export default [ + 'Diekirch', + 'Differdange', + 'Dudelange', + 'Echternach', + 'Esch-sur-Alzette', + 'Ettelbruck', + 'Grevenmacher', + 'Luxembourg', + 'Remich', + 'Rumelange', + 'Vianden', + 'Wiltz', +]; diff --git a/src/locales/fr_LU/location/index.ts b/src/locales/fr_LU/location/index.ts new file mode 100644 index 00000000000..1db98544078 --- /dev/null +++ b/src/locales/fr_LU/location/index.ts @@ -0,0 +1,18 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { LocationDefinitions } from '../../..'; +import city from './city'; +import city_name from './city_name'; +import postcode from './postcode'; +import state from './state'; + +const location: LocationDefinitions = { + city, + city_name, + postcode, + state, +}; + +export default location; diff --git a/src/locales/fr_LU/location/postcode.ts b/src/locales/fr_LU/location/postcode.ts new file mode 100644 index 00000000000..a8235678f7b --- /dev/null +++ b/src/locales/fr_LU/location/postcode.ts @@ -0,0 +1 @@ +export default ['####']; diff --git a/src/locales/fr_LU/location/state.ts b/src/locales/fr_LU/location/state.ts new file mode 100644 index 00000000000..e653413acec --- /dev/null +++ b/src/locales/fr_LU/location/state.ts @@ -0,0 +1,14 @@ +export default [ + 'Capellen', + 'Clervaux', + 'Diekirch', + 'Echternach', + 'Esch-sur-Alzette', + 'Grevenmacher', + 'Luxembourg', + 'Mersch', + 'Redange', + 'Remich', + 'Vianden', + 'Wiltz', +]; diff --git a/src/locales/fr_LU/phone_number/formats.ts b/src/locales/fr_LU/phone_number/formats.ts new file mode 100644 index 00000000000..f1f92d74129 --- /dev/null +++ b/src/locales/fr_LU/phone_number/formats.ts @@ -0,0 +1 @@ +export default ['######', '########', '+352 ######', '+352 ########']; diff --git a/src/locales/fr_LU/phone_number/index.ts b/src/locales/fr_LU/phone_number/index.ts new file mode 100644 index 00000000000..bf48a8b5d05 --- /dev/null +++ b/src/locales/fr_LU/phone_number/index.ts @@ -0,0 +1,12 @@ +/* + * This file is automatically generated. + * Run 'pnpm run generate:locales' to update. + */ +import type { PhoneNumberDefinitions } from '../../..'; +import formats from './formats'; + +const phone_number: PhoneNumberDefinitions = { + formats, +}; + +export default phone_number; diff --git a/src/locales/index.ts b/src/locales/index.ts index 85cb540d7f6..213442d34c5 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -33,6 +33,7 @@ import fr from './fr'; import fr_BE from './fr_BE'; import fr_CA from './fr_CA'; import fr_CH from './fr_CH'; +import fr_LU from './fr_LU'; import ge from './ge'; import he from './he'; import hr from './hr'; @@ -93,6 +94,7 @@ export type KnownLocale = | 'fr_BE' | 'fr_CA' | 'fr_CH' + | 'fr_LU' | 'ge' | 'he' | 'hr' @@ -155,6 +157,7 @@ const locales: KnownLocales = { fr_BE, fr_CA, fr_CH, + fr_LU, ge, he, hr, diff --git a/test/__snapshots__/random.spec.ts.snap b/test/__snapshots__/random.spec.ts.snap index 7f01d87ec99..5fe3e02c23c 100644 --- a/test/__snapshots__/random.spec.ts.snap +++ b/test/__snapshots__/random.spec.ts.snap @@ -8,7 +8,7 @@ exports[`random > 42 > alphaNumeric > noArgs 1`] = `"n"`; exports[`random > 42 > alphaNumeric > with length 1`] = `"nNWbJ"`; -exports[`random > 42 > locale 1`] = `"es"`; +exports[`random > 42 > locale 1`] = `"es_MX"`; exports[`random > 42 > numeric > noArgs 1`] = `"3"`;