Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locale): add dv locale #1506

Merged
merged 5 commits into from
Nov 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/guide/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ All locales together are around 5 MB in size.
| de | German |
| de_AT | German (Austria) |
| de_CH | German (Switzerland) |
| dv | Dhivehi |
| el | Greek |
| en | English |
| en_AU | English (Australia) |
Expand Down
17 changes: 17 additions & 0 deletions src/locale/dv.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 dv from '../locales/dv';
import en from '../locales/en';

export const faker = new Faker({
locale: 'dv',
localeFallback: 'en',
locales: {
dv,
en,
},
});
8 changes: 8 additions & 0 deletions src/locales/dv/cell_phone/formats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
'7######',
'9######',
'+9607######',
'+9609######',
'+960 7######',
'+960 9######',
];
11 changes: 11 additions & 0 deletions src/locales/dv/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;
17 changes: 17 additions & 0 deletions src/locales/dv/color/human.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export default [
'ރަތް',
'ފެހިކުލަ',
'ނޫ',
'ރީނދޫކުލަ',
'ނާރިނގުކުލަ',
'ދަނބުކުލަ',
'މަޑުފެހި',
'ވިލުނޫ',
'ހުދު',
'ކަޅު',
'އަޅިކުލަ',
'ފިޔާތޮށިކުލަ',
'މުށިކުލަ',
'ރަންކުލަ',
'ރިހިކުލަ',
];
12 changes: 12 additions & 0 deletions src/locales/dv/color/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 { ColorDefinitions } from '../../..';
import human from './human';

const color: ColorDefinitions = {
human,
};

export default color;
26 changes: 26 additions & 0 deletions src/locales/dv/company/adjective.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default [
'ބޮޑު',
'ކުޑަ',
'ހަޑި',
'ރީތި',
'ހޫނު',
'ފިނި',
'މަޖާ',
'ފޫހި',
'ހުތުރު',
'އަލި',
'އަނދިރި',
'ހިރަފުސް',
'ސާފު',
'މޮޅު',
'ދަށް',
'ހުށިޔާރު',
'ނުރައްކާ',
'ސަމާލު',
'ގޮތްކުޑަ',
'ފުރިހަމަ',
'އެއްވަނަ',
'ދެވަނަ',
'ތިންވަނަ',
'ނުފެންނަ',
];
18 changes: 18 additions & 0 deletions src/locales/dv/company/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 { CompanyDefinitions } from '../../..';
import adjective from './adjective';
import name_patterns from './name_patterns';
import noun from './noun';
import suffix from './suffix';

const company: CompanyDefinitions = {
adjective,
name_patterns,
noun,
suffix,
};

export default company;
7 changes: 7 additions & 0 deletions src/locales/dv/company/name_patterns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default [
'{{person.first_name}} {{company.suffix}}',
'{{person.last_name}} {{company.suffix}}',
'{{person.last_name}} & {{person.last_name}} {{company.noun}} {{company.suffix}}',
'{{company.adjective}} {{company.noun}} {{company.suffix}}',
'{{company.adjective}} {{person.last_name}} {{person.last_name}} {{company.suffix}}',
];
60 changes: 60 additions & 0 deletions src/locales/dv/company/noun.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
export default [
'ވަޑައިންގެ',
'ހަރުގެ',
'ގުދަން',
'ގަރާޖު',
'ކޮންޓެއިނަރު',
'ބޮއްކުރާ',
'ދޯނި',
'ބައްރެލި',
'މަނަވަރު',
'މަތިންދާބޯޓު',
'ހެލިކޮޕްޓަރު',
'ރޮކެޓު',
'ކަރުދާސް',
'ފުޅި',
'ބިއްލޫރި',
'ހޮޅުއަށި',
'ޕުލާސްޓިކު',
'ފޮތި',
'ދަގަނޑު',
'ލަކުޑި',
'ގޮނޑު',
'ގޮނޑުދޮށް',
'ރުއް',
'ގަސް',
'މޫ',
'ބުޅާ',
'ކަނބިލި',
'މާކަނާ',
'އިރުވާހުދު',
'ރަތަފަ',
'މާރަނގަ',
'ހަރުފަ',
'މަކުނު',
'ކާޅު',
'ކުކުޅު',
'މަސް',
'ގެރި',
'ބަކަރި',
'ފަރުމަސް',
'ކަނޑުމަސް',
'ބޮޑުމަސް',
'ކުޑަމަސް',
'ގޯތި',
'މޫދު',
'ކަނޑު',
'ވިލު',
'ފަޅު',
'ގިރި',
'ފެން',
'ގަނޑުފެން',
'މުރަނގަ',
'ހިރުނދު',
'ދިއްގާ',
'ނިކަ',
'މަގޫ',
'އަތަ',
'މޭވާ',
'ތަރުކާރި',
];
8 changes: 8 additions & 0 deletions src/locales/dv/company/suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
'ޕުރައިވެޓް ލިމިޓެޑް',
'.ޕވޓ. ލޓޑ',
'ޕަބްލިކް ލިމިޓެޑް',
'.ޕބލކ. ލޓޑ',
'ގުރޫޕް',
'އޮފީސް',
];
14 changes: 14 additions & 0 deletions src/locales/dv/date/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { DateDefinitions } from '../../..';
import month from './month';
import weekday from './weekday';

const date: DateDefinitions = {
month,
weekday,
};

export default date;
54 changes: 54 additions & 0 deletions src/locales/dv/date/month.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
export default {
wide: [
'ޖަނަވަރީ',
'ފެބުރުވަރީ',
'މާރިޗު',
'އެޕްރީލް',
'މޭ',
'ޖޫން',
'ޖުލައި',
'އޮގަސްޓު',
'ސެޕްޓެންބަރު',
'އޮކްޓޫބަރު',
'ނޮވެންބަރެ',
'ޑިސެންބަރު',
'މުޙައްރަމް',
'ޞަފަރު',
'ރަބީޢުލްއައްވަލް',
'ރަބީޢުލްއާޚިރު',
'ޖުމާދަލްއޫލާ',
'ޖުމާދަލްއާޚިރު',
'ރަޖަބު',
'ޝަޢުބާން',
'ރަމަޞާން',
'ޝައްވާލް',
'ޛުލްޤައިދާ',
'ޛުލްޙިއްޖާ',
],
abbr: [
'ޖަނަވަރީ',
'ފެބުރުވަރީ',
'މާރިޗު',
'އެޕްރީލް',
'މޭ',
'ޖޫން',
'ޖުލައި',
'އޮގަސްޓު',
'ސެޕްޓެންބަރު',
'އޮކްޓޫބަރު',
'ނޮވެންބަރެ',
'ޑިސެންބަރު',
'މުޙައްރަމް',
'ޞަފަރު',
'ރަބީޢުލްއައްވަލް',
'ރަބީޢުލްއާޚިރު',
'ޖުމާދަލްއޫލާ',
'ޖުމާދަލްއާޚިރު',
'ރަޖަބު',
'ޝަޢުބާން',
'ރަމަޞާން',
'ޝައްވާލް',
'ޛުލްޤައިދާ',
'ޛުލްޙިއްޖާ',
],
};
ST-DDT marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 20 additions & 0 deletions src/locales/dv/date/weekday.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export default {
wide: [
'އާދީއްތަ',
'ހޯމަ',
'އަންގާރަ',
'ބުދަ',
'ބުރާސްފަތި',
'ހުކުރު',
ST-DDT marked this conversation as resolved.
Show resolved Hide resolved
'ހޮނިހިރު',
],
abbr: [
'އާދީއްތަ',
'ހޯމަ',
'އަންގާރަ',
'ބުދަ',
'ބުރާސްފަތި',
'ހުކުރު',
'ހޮނިހިރު',
],
};
27 changes: 27 additions & 0 deletions src/locales/dv/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* This file is automatically generated.
* Run 'pnpm run generate:locales' to update.
*/
import type { LocaleDefinition } from '../..';
import cell_phone from './cell_phone';
import color from './color';
import company from './company';
import date from './date';
import location from './location';
import lorem from './lorem';
import person from './person';
import phone_number from './phone_number';

const dv: LocaleDefinition = {
title: 'Dhivehi',
cell_phone,
color,
company,
date,
location,
lorem,
person,
phone_number,
};

export default dv;
8 changes: 8 additions & 0 deletions src/locales/dv/location/city.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default [
'{{location.city_prefix}} {{company.noun}}{{location.city_suffix}}',
'{{company.adjective}}{{company.noun}}{{location.city_suffix}}',
'{{location.city_prefix}} {{person.first_name}}',
'{{person.first_name}}{{location.city_suffix}}',
'{{person.last_name}}{{location.city_suffix}}',
'{{location.city_name}}',
];
21 changes: 21 additions & 0 deletions src/locales/dv/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export default [
'ރަސްގެ',
'ބުޅާ',
'ކާށި',
'ކުރުނބާ',
'މަޑި',
'ކޯވަިމަސް',
'ބޮޑުމަސް',
'ކަނު',
'ބޮޑު',
'ވައި',
'އަލަނާސި',
'އަނބު',
'ކަރާ',
'ބަށި',
'ޗިޗަންޑާ',
'ބޯށި',
'ތޮޅި',
'ދޫނި',
'ކެކުރި',
];
1 change: 1 addition & 0 deletions src/locales/dv/location/city_prefix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['އިރުމަތި', 'ހުޅަނގު', 'ދެކުނު', 'އުތުރު', 'ދެ'];
1 change: 1 addition & 0 deletions src/locales/dv/location/city_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['ފުށި', 'ދޫ', 'ފަރު', 'ރަށް', 'ކޮޑި'];
1 change: 1 addition & 0 deletions src/locales/dv/location/default_country.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['ދިވެހިރާއްޖެ'];
ST-DDT marked this conversation as resolved.
Show resolved Hide resolved
26 changes: 26 additions & 0 deletions src/locales/dv/location/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* 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 city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import default_country from './default_country';
import postcode from './postcode';
import street from './street';
import street_suffix from './street_suffix';

const location: LocationDefinitions = {
city,
city_name,
city_prefix,
city_suffix,
default_country,
postcode,
street,
street_suffix,
};

export default location;
1 change: 1 addition & 0 deletions src/locales/dv/location/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['#####'];
5 changes: 5 additions & 0 deletions src/locales/dv/location/street.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default [
'{{person.first_name}} {{location.street_suffix}}',
'{{person.last_name}} {{location.street_suffix}}',
'{{company.adjective}} {{company.noun}} {{location.street_suffix}}',
];
1 change: 1 addition & 0 deletions src/locales/dv/location/street_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['ހިނގުން', 'މަގު', 'ގޯޅި'];
Loading