Skip to content

Commit

Permalink
feat(locale): add Luxembourg (French) locale (#1693)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMoraisFerreira committed Jan 5, 2023
1 parent 2a06b6a commit c66f7bd
Show file tree
Hide file tree
Showing 16 changed files with 136 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
17 changes: 17 additions & 0 deletions src/locale/fr_LU.ts
Original file line number Diff line number Diff line change
@@ -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,
},
});
10 changes: 10 additions & 0 deletions src/locales/fr_LU/cell_phone/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default [
'621 ### ###',
'661 ### ###',
'671 ### ###',
'691 ### ###',
'+352 621 ### ###',
'+352 661 ### ###',
'+352 671 ### ###',
'+352 691 ### ###',
];
11 changes: 11 additions & 0 deletions src/locales/fr_LU/cell_phone/index.ts
Original file line number Diff line number Diff line change
@@ -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;
19 changes: 19 additions & 0 deletions src/locales/fr_LU/index.ts
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions src/locales/fr_LU/internet/domain_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['lu'];
12 changes: 12 additions & 0 deletions src/locales/fr_LU/internet/index.ts
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions src/locales/fr_LU/location/city.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{location.city_name}}'];
14 changes: 14 additions & 0 deletions src/locales/fr_LU/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default [
'Diekirch',
'Differdange',
'Dudelange',
'Echternach',
'Esch-sur-Alzette',
'Ettelbruck',
'Grevenmacher',
'Luxembourg',
'Remich',
'Rumelange',
'Vianden',
'Wiltz',
];
18 changes: 18 additions & 0 deletions src/locales/fr_LU/location/index.ts
Original file line number Diff line number Diff line change
@@ -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;
1 change: 1 addition & 0 deletions src/locales/fr_LU/location/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['####'];
14 changes: 14 additions & 0 deletions src/locales/fr_LU/location/state.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default [
'Capellen',
'Clervaux',
'Diekirch',
'Echternach',
'Esch-sur-Alzette',
'Grevenmacher',
'Luxembourg',
'Mersch',
'Redange',
'Remich',
'Vianden',
'Wiltz',
];
1 change: 1 addition & 0 deletions src/locales/fr_LU/phone_number/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['######', '########', '+352 ######', '+352 ########'];
12 changes: 12 additions & 0 deletions src/locales/fr_LU/phone_number/index.ts
Original file line number Diff line number Diff line change
@@ -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;
3 changes: 3 additions & 0 deletions src/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -93,6 +94,7 @@ export type KnownLocale =
| 'fr_BE'
| 'fr_CA'
| 'fr_CH'
| 'fr_LU'
| 'ge'
| 'he'
| 'hr'
Expand Down Expand Up @@ -155,6 +157,7 @@ const locales: KnownLocales = {
fr_BE,
fr_CA,
fr_CH,
fr_LU,
ge,
he,
hr,
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/random.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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"`;

Expand Down

0 comments on commit c66f7bd

Please sign in to comment.