Skip to content

Commit

Permalink
fix(locales): add real cities for zu_ZA and af_ZA, update en_ZA city …
Browse files Browse the repository at this point in the history
…list (#2141)
  • Loading branch information
matthewmayer committed May 9, 2023
1 parent aab69c9 commit ee8c97c
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 14 deletions.
16 changes: 16 additions & 0 deletions 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',
];
7 changes: 1 addition & 6 deletions 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}}'];
2 changes: 2 additions & 0 deletions src/locales/af_ZA/location/index.ts
Expand Up @@ -3,13 +3,15 @@
* 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';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en_ZA/location/city_name.ts
Expand Up @@ -5,12 +5,12 @@ export default [
'Tshwane',
'Durban',
'Pietermaritzburg',
'Nelspruit',
'Mbombela',
'Cape Town',
'Stellenbosch',
'Port Elizabeth',
'East London',
'Kimberley',
'Rustenburg',
'Bloemfontein ',
'Bloemfontein',
];
16 changes: 16 additions & 0 deletions 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',
];
7 changes: 1 addition & 6 deletions 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}}'];
2 changes: 2 additions & 0 deletions src/locales/zu_ZA/location/index.ts
Expand Up @@ -3,13 +3,15 @@
* 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';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
default_country,
postcode,
Expand Down

0 comments on commit ee8c97c

Please sign in to comment.