aboutsummaryrefslogtreecommitdiff
path: root/src/locales/ur
diff options
context:
space:
mode:
authorUmair Jibran <[email protected]>2024-12-14 16:00:59 +0500
committerGitHub <[email protected]>2024-12-14 11:00:59 +0000
commitff6dda94ddd312ebcff816cbb63e74df9857d091 (patch)
tree6c4e9541d330dabdf739d4c1e6d3757a2dc42f78 /src/locales/ur
parent3c7abb55e68fcbcf41560539a15845e7c8882765 (diff)
downloadfaker-ff6dda94ddd312ebcff816cbb63e74df9857d091.tar.xz
faker-ff6dda94ddd312ebcff816cbb63e74df9857d091.zip
feat(location): add list of spoken languages (#3333)
* add list of spoken languages * remove dupes * add language definition * add language module * add test case for `language()` * autogenerated supporting code * add languages for urdu * add test to make sure the values are truthy * update seed to match new format * update language list slim them down to a few languages as the long list was not easy to build up * update documentation * update returns * language: convert alpha2 to lowercase * update seed flies * covert alpha3 to lowercase * update seeders * update example * update version * use interface for language * Update index.ts * Revert "Update index.ts" This reverts commit 72a18e99cfee1f4c09d151b27bda1f2c8d1137d8. * Update src/modules/location/index.ts Co-authored-by: ST-DDT <[email protected]> * Update src/modules/location/index.ts Co-authored-by: ST-DDT <[email protected]> * Update src/definitions/location.ts Co-authored-by: ST-DDT <[email protected]> * language semantic Co-authored-by: ST-DDT <[email protected]> * add additional test cases * add examples for each property * add languages for the supported locales * update seeds * use example of german instead of english * Update src/definitions/location.ts Co-authored-by: ST-DDT <[email protected]> --------- Co-authored-by: ST-DDT <[email protected]>
Diffstat (limited to 'src/locales/ur')
-rw-r--r--src/locales/ur/location/index.ts2
-rw-r--r--src/locales/ur/location/language.ts33
2 files changed, 35 insertions, 0 deletions
diff --git a/src/locales/ur/location/index.ts b/src/locales/ur/location/index.ts
index ea213fca..d278b2d5 100644
--- a/src/locales/ur/location/index.ts
+++ b/src/locales/ur/location/index.ts
@@ -10,6 +10,7 @@ import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import country from './country';
import direction from './direction';
+import language from './language';
import postcode from './postcode';
import secondary_address from './secondary_address';
import state from './state';
@@ -26,6 +27,7 @@ const location: LocationDefinition = {
city_suffix,
country,
direction,
+ language,
postcode,
secondary_address,
state,
diff --git a/src/locales/ur/location/language.ts b/src/locales/ur/location/language.ts
new file mode 100644
index 00000000..b6df7657
--- /dev/null
+++ b/src/locales/ur/location/language.ts
@@ -0,0 +1,33 @@
+export default [
+ { name: 'پشتو', alpha2: 'ps', alpha3: 'pus' },
+ { name: 'اردو', alpha2: 'ur', alpha3: 'urd' },
+ { name: 'انگریزی', alpha2: 'en', alpha3: 'eng' },
+ { name: 'جرمن', alpha2: 'de', alpha3: 'deu' },
+ { name: 'فرانسیسی', alpha2: 'fr', alpha3: 'fra' },
+ { name: 'اسپینش', alpha2: 'es', alpha3: 'spa' },
+ { name: 'دچ', alpha2: 'nl', alpha3: 'nld' },
+ { name: 'روسی', alpha2: 'ru', alpha3: 'rus' },
+ { name: 'پرتگالی', alpha2: 'pt', alpha3: 'por' },
+ { name: 'پولش', alpha2: 'pl', alpha3: 'pol' },
+ { name: 'عربی', alpha2: 'ar', alpha3: 'ara' },
+ { name: 'جاپانی', alpha2: 'ja', alpha3: 'jpn' },
+ { name: 'چینی', alpha2: 'zh', alpha3: 'zho' },
+ { name: 'ہندی', alpha2: 'hi', alpha3: 'hin' },
+ { name: 'بنگالی', alpha2: 'bn', alpha3: 'ben' },
+ { name: 'تمل', alpha2: 'ta', alpha3: 'tam' },
+ { name: 'تلگو', alpha2: 'te', alpha3: 'tel' },
+ { name: 'پنجابی', alpha2: 'pa', alpha3: 'pan' },
+ { name: 'ترکی', alpha2: 'tr', alpha3: 'tur' },
+ { name: 'سویڈش', alpha2: 'sv', alpha3: 'swe' },
+ { name: 'یونانی', alpha2: 'el', alpha3: 'ell' },
+ { name: 'چیک', alpha2: 'cs', alpha3: 'ces' },
+ { name: 'ہنگرین', alpha2: 'hu', alpha3: 'hun' },
+ { name: 'نارویجن', alpha2: 'no', alpha3: 'nor' },
+ { name: 'کروشیائی', alpha2: 'hr', alpha3: 'hrv' },
+ { name: 'سلوواک', alpha2: 'sk', alpha3: 'slk' },
+ { name: 'سلووینیائی', alpha2: 'sl', alpha3: 'slv' },
+ { name: 'فنش', alpha2: 'fi', alpha3: 'fin' },
+ { name: 'دنش', alpha2: 'da', alpha3: 'dan' },
+ { name: 'مالٹی', alpha2: 'mt', alpha3: 'mlt' },
+ { name: 'تاجک', alpha2: 'tg', alpha3: 'tgk' },
+];