aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Mayer <[email protected]>2023-05-10 02:47:09 +0700
committerGitHub <[email protected]>2023-05-09 19:47:09 +0000
commitee8c97cf6e80025707d5cf458981a14be06406ed (patch)
treedb5ee85d923c05923cb6dd5e4cd8251307a0d596
parentaab69c92f05b1d3a08a00ee1adf51a4150a5529b (diff)
downloadfaker-ee8c97cf6e80025707d5cf458981a14be06406ed.tar.xz
faker-ee8c97cf6e80025707d5cf458981a14be06406ed.zip
fix(locales): add real cities for zu_ZA and af_ZA, update en_ZA city list (#2141)
-rw-r--r--src/locales/af_ZA/location/city_name.ts16
-rw-r--r--src/locales/af_ZA/location/city_pattern.ts7
-rw-r--r--src/locales/af_ZA/location/index.ts2
-rw-r--r--src/locales/en_ZA/location/city_name.ts4
-rw-r--r--src/locales/zu_ZA/location/city_name.ts16
-rw-r--r--src/locales/zu_ZA/location/city_pattern.ts7
-rw-r--r--src/locales/zu_ZA/location/index.ts2
7 files changed, 40 insertions, 14 deletions
diff --git a/src/locales/af_ZA/location/city_name.ts b/src/locales/af_ZA/location/city_name.ts
new file mode 100644
index 00000000..35db2085
--- /dev/null
+++ b/src/locales/af_ZA/location/city_name.ts
@@ -0,0 +1,16 @@
+export default [
+ 'Polokwane',
+ 'Johannesburg',
+ 'Pretoria',
+ 'Tshwane',
+ 'Durban',
+ 'Pietermaritzburg',
+ 'Nelspruit',
+ 'Kaapstad',
+ 'Stellenbosch',
+ 'Port Elizabeth',
+ 'Oos-Londen',
+ 'Kimberley',
+ 'Rustenburg',
+ 'Bloemfontein',
+];
diff --git a/src/locales/af_ZA/location/city_pattern.ts b/src/locales/af_ZA/location/city_pattern.ts
index 7375aa83..ad43b68f 100644
--- a/src/locales/af_ZA/location/city_pattern.ts
+++ b/src/locales/af_ZA/location/city_pattern.ts
@@ -1,6 +1 @@
-export default [
- '{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}',
- '{{location.city_prefix}} {{person.firstName}}',
- '{{person.firstName}}{{location.city_suffix}}',
- '{{person.lastName}}{{location.city_suffix}}',
-];
+export default ['{{location.city_name}}'];
diff --git a/src/locales/af_ZA/location/index.ts b/src/locales/af_ZA/location/index.ts
index e93ac7b4..4fd0e9be 100644
--- a/src/locales/af_ZA/location/index.ts
+++ b/src/locales/af_ZA/location/index.ts
@@ -3,6 +3,7 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinition } from '../../..';
+import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
@@ -10,6 +11,7 @@ import state from './state';
import street_pattern from './street_pattern';
const location: LocationDefinition = {
+ city_name,
city_pattern,
default_country,
postcode,
diff --git a/src/locales/en_ZA/location/city_name.ts b/src/locales/en_ZA/location/city_name.ts
index fe888a28..e5ea4903 100644
--- a/src/locales/en_ZA/location/city_name.ts
+++ b/src/locales/en_ZA/location/city_name.ts
@@ -5,12 +5,12 @@ export default [
'Tshwane',
'Durban',
'Pietermaritzburg',
- 'Nelspruit',
+ 'Mbombela',
'Cape Town',
'Stellenbosch',
'Port Elizabeth',
'East London',
'Kimberley',
'Rustenburg',
- 'Bloemfontein ',
+ 'Bloemfontein',
];
diff --git a/src/locales/zu_ZA/location/city_name.ts b/src/locales/zu_ZA/location/city_name.ts
new file mode 100644
index 00000000..f1789eea
--- /dev/null
+++ b/src/locales/zu_ZA/location/city_name.ts
@@ -0,0 +1,16 @@
+export default [
+ 'Polokwane',
+ 'eGoli',
+ 'Pretoria',
+ 'uTshwane',
+ 'eThekwini',
+ 'umGungundlovu',
+ 'Mbombela',
+ 'eKapa',
+ 'Stellenbosch',
+ 'iBhayi',
+ 'eMonti',
+ 'Kimberley',
+ 'Rustenburg',
+ 'Bloemfontein',
+];
diff --git a/src/locales/zu_ZA/location/city_pattern.ts b/src/locales/zu_ZA/location/city_pattern.ts
index 7375aa83..ad43b68f 100644
--- a/src/locales/zu_ZA/location/city_pattern.ts
+++ b/src/locales/zu_ZA/location/city_pattern.ts
@@ -1,6 +1 @@
-export default [
- '{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}',
- '{{location.city_prefix}} {{person.firstName}}',
- '{{person.firstName}}{{location.city_suffix}}',
- '{{person.lastName}}{{location.city_suffix}}',
-];
+export default ['{{location.city_name}}'];
diff --git a/src/locales/zu_ZA/location/index.ts b/src/locales/zu_ZA/location/index.ts
index e93ac7b4..4fd0e9be 100644
--- a/src/locales/zu_ZA/location/index.ts
+++ b/src/locales/zu_ZA/location/index.ts
@@ -3,6 +3,7 @@
* Run 'pnpm run generate:locales' to update.
*/
import type { LocationDefinition } from '../../..';
+import city_name from './city_name';
import city_pattern from './city_pattern';
import default_country from './default_country';
import postcode from './postcode';
@@ -10,6 +11,7 @@ import state from './state';
import street_pattern from './street_pattern';
const location: LocationDefinition = {
+ city_name,
city_pattern,
default_country,
postcode,