Skip to content

Commit ee8c97c

Browse files
authored
fix(locales): add real cities for zu_ZA and af_ZA, update en_ZA city list (#2141)
1 parent aab69c9 commit ee8c97c

File tree

7 files changed

+40
-14
lines changed

7 files changed

+40
-14
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default [
2+
'Polokwane',
3+
'Johannesburg',
4+
'Pretoria',
5+
'Tshwane',
6+
'Durban',
7+
'Pietermaritzburg',
8+
'Nelspruit',
9+
'Kaapstad',
10+
'Stellenbosch',
11+
'Port Elizabeth',
12+
'Oos-Londen',
13+
'Kimberley',
14+
'Rustenburg',
15+
'Bloemfontein',
16+
];
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
export default [
2-
'{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}',
3-
'{{location.city_prefix}} {{person.firstName}}',
4-
'{{person.firstName}}{{location.city_suffix}}',
5-
'{{person.lastName}}{{location.city_suffix}}',
6-
];
1+
export default ['{{location.city_name}}'];

src/locales/af_ZA/location/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LocationDefinition } from '../../..';
6+
import city_name from './city_name';
67
import city_pattern from './city_pattern';
78
import default_country from './default_country';
89
import postcode from './postcode';
910
import state from './state';
1011
import street_pattern from './street_pattern';
1112

1213
const location: LocationDefinition = {
14+
city_name,
1315
city_pattern,
1416
default_country,
1517
postcode,

src/locales/en_ZA/location/city_name.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ export default [
55
'Tshwane',
66
'Durban',
77
'Pietermaritzburg',
8-
'Nelspruit',
8+
'Mbombela',
99
'Cape Town',
1010
'Stellenbosch',
1111
'Port Elizabeth',
1212
'East London',
1313
'Kimberley',
1414
'Rustenburg',
15-
'Bloemfontein ',
15+
'Bloemfontein',
1616
];
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default [
2+
'Polokwane',
3+
'eGoli',
4+
'Pretoria',
5+
'uTshwane',
6+
'eThekwini',
7+
'umGungundlovu',
8+
'Mbombela',
9+
'eKapa',
10+
'Stellenbosch',
11+
'iBhayi',
12+
'eMonti',
13+
'Kimberley',
14+
'Rustenburg',
15+
'Bloemfontein',
16+
];
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
export default [
2-
'{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}',
3-
'{{location.city_prefix}} {{person.firstName}}',
4-
'{{person.firstName}}{{location.city_suffix}}',
5-
'{{person.lastName}}{{location.city_suffix}}',
6-
];
1+
export default ['{{location.city_name}}'];

src/locales/zu_ZA/location/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
* Run 'pnpm run generate:locales' to update.
44
*/
55
import type { LocationDefinition } from '../../..';
6+
import city_name from './city_name';
67
import city_pattern from './city_pattern';
78
import default_country from './default_country';
89
import postcode from './postcode';
910
import state from './state';
1011
import street_pattern from './street_pattern';
1112

1213
const location: LocationDefinition = {
14+
city_name,
1315
city_pattern,
1416
default_country,
1517
postcode,

0 commit comments

Comments
 (0)