Skip to content

Commit

Permalink
scripted data transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Oct 29, 2024
1 parent 1ed32a4 commit f1d66e9
Show file tree
Hide file tree
Showing 183 changed files with 302 additions and 268 deletions.
4 changes: 2 additions & 2 deletions src/locales/af_ZA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import state from './state';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
postcode,
postcode_pattern,
state,
street_pattern,
};
Expand Down
1 change: 0 additions & 1 deletion src/locales/af_ZA/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/af_ZA/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{string.numeric(5)}}', '{{string.numeric(4)}}'];
4 changes: 2 additions & 2 deletions src/locales/ar/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import state from './state';
import street_address from './street_address';
Expand All @@ -19,7 +19,7 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
postcode,
postcode_pattern,
secondary_address,
state,
street_address,
Expand Down
1 change: 0 additions & 1 deletion src/locales/ar/location/postcode.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/locales/ar/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'{{string.numeric(5)}}',
'{{string.numeric(5)}}-{{string.numeric(4)}}',
];
4 changes: 2 additions & 2 deletions src/locales/az/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import state from './state';
import street_address from './street_address';
Expand All @@ -20,7 +20,7 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
postcode,
postcode_pattern,
secondary_address,
state,
street_address,
Expand Down
1 change: 0 additions & 1 deletion src/locales/az/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/az/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['AZ{{string.numeric(4)}}'];
4 changes: 2 additions & 2 deletions src/locales/cs_CZ/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -20,7 +20,7 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
postcode,
postcode_pattern,
secondary_address,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/cs_CZ/location/postcode.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/locales/cs_CZ/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'{{string.numeric(5)}}',
'{{string.numeric(3)}} {{string.numeric(2)}}',
];
4 changes: 2 additions & 2 deletions src/locales/da/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import direction from './direction';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import street_address from './street_address';
import street_name from './street_name';
Expand All @@ -20,7 +20,7 @@ const location: LocationDefinition = {
city_pattern,
country,
direction,
postcode,
postcode_pattern,
secondary_address,
street_address,
street_name,
Expand Down
1 change: 0 additions & 1 deletion src/locales/da/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/da/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{string.numeric(4)}}'];
4 changes: 2 additions & 2 deletions src/locales/de/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import country from './country';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -24,7 +24,7 @@ const location: LocationDefinition = {
city_prefix,
city_suffix,
country,
postcode,
postcode_pattern,
secondary_address,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/de/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/de/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{string.numeric(5)}}'];
4 changes: 2 additions & 2 deletions src/locales/de_AT/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country from './country';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -20,7 +20,7 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country,
postcode,
postcode_pattern,
secondary_address,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/de_AT/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/de_AT/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{string.numeric(4)}}'];
4 changes: 2 additions & 2 deletions src/locales/de_CH/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import country_code from './country_code';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import state from './state';
import state_abbr from './state_abbr';
import street_name from './street_name';
Expand All @@ -16,7 +16,7 @@ const location: LocationDefinition = {
city_name,
city_pattern,
country_code,
postcode,
postcode_pattern,
state,
state_abbr,
street_name,
Expand Down
11 changes: 0 additions & 11 deletions src/locales/de_CH/location/postcode.ts

This file was deleted.

11 changes: 11 additions & 0 deletions src/locales/de_CH/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default [
'1{{string.numeric(3)}}',
'2{{string.numeric(3)}}',
'3{{string.numeric(3)}}',
'4{{string.numeric(3)}}',
'5{{string.numeric(3)}}',
'6{{string.numeric(3)}}',
'7{{string.numeric(3)}}',
'8{{string.numeric(3)}}',
'9{{string.numeric(3)}}',
];
4 changes: 2 additions & 2 deletions src/locales/dv/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import city_name from './city_name';
import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

Expand All @@ -16,7 +16,7 @@ const location: LocationDefinition = {
city_pattern,
city_prefix,
city_suffix,
postcode,
postcode_pattern,
street_pattern,
street_suffix,
};
Expand Down
1 change: 0 additions & 1 deletion src/locales/dv/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/dv/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{string.numeric(5)}}'];
4 changes: 2 additions & 2 deletions src/locales/en/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import continent from './continent';
import country from './country';
import county from './county';
import direction from './direction';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import secondary_address from './secondary_address';
import state from './state';
import state_abbr from './state_abbr';
Expand All @@ -31,7 +31,7 @@ const location: LocationDefinition = {
country,
county,
direction,
postcode,
postcode_pattern,
secondary_address,
state,
state_abbr,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en/location/postcode.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/locales/en/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'{{string.numeric(5)}}',
'{{string.numeric(5)}}-{{string.numeric(4)}}',
];
4 changes: 2 additions & 2 deletions src/locales/en_AU/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_pattern from './city_pattern';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import state from './state';
import state_abbr from './state_abbr';
import street_pattern from './street_pattern';
Expand All @@ -14,7 +14,7 @@ import street_suffix from './street_suffix';
const location: LocationDefinition = {
building_number,
city_pattern,
postcode,
postcode_pattern,
state,
state_abbr,
street_pattern,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_AU/location/postcode.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/locales/en_AU/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{string.numeric(4)}}'];
4 changes: 2 additions & 2 deletions src/locales/en_AU_ocker/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { LocationDefinition } from '../../..';
import building_number from './building_number';
import city_name from './city_name';
import city_pattern from './city_pattern';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import state from './state';
import state_abbr from './state_abbr';
import street_name from './street_name';
Expand All @@ -17,7 +17,7 @@ const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
postcode,
postcode_pattern,
state,
state_abbr,
street_name,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_AU_ocker/location/postcode.ts

This file was deleted.

9 changes: 9 additions & 0 deletions src/locales/en_AU_ocker/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default [
'0{{string.numeric(3)}}',
'2{{string.numeric(3)}}',
'3{{string.numeric(3)}}',
'4{{string.numeric(3)}}',
'5{{string.numeric(3)}}',
'6{{string.numeric(3)}}',
'7{{string.numeric(3)}}',
];
4 changes: 2 additions & 2 deletions src/locales/en_CA/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
import type { LocationDefinition } from '../../..';
import city_name from './city_name';
import city_pattern from './city_pattern';
import postcode from './postcode';
import postcode_by_state from './postcode_by_state';
import postcode_pattern from './postcode_pattern';
import state from './state';
import state_abbr from './state_abbr';
import street_pattern from './street_pattern';

const location: LocationDefinition = {
city_name,
city_pattern,
postcode,
postcode_by_state,
postcode_pattern,
state,
state_abbr,
street_pattern,
Expand Down
20 changes: 0 additions & 20 deletions src/locales/en_CA/location/postcode.ts

This file was deleted.

20 changes: 20 additions & 0 deletions src/locales/en_CA/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export default [
'A{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'B{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'C{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'E{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'G{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'H{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'J{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'K{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'L{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'M{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'N{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'P{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'R{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'S{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'T{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'V{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'X{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
'Y{{string.numeric}}{{string.alpha({ "casing": "upper" })}} {{string.numeric}}{{string.alpha({ "casing": "upper" })}}{{string.numeric}}',
];
4 changes: 2 additions & 2 deletions src/locales/en_GB/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import city_pattern from './city_pattern';
import city_prefix from './city_prefix';
import city_suffix from './city_suffix';
import county from './county';
import postcode from './postcode';
import postcode_pattern from './postcode_pattern';
import state from './state';
import state_abbr from './state_abbr';
import street_name from './street_name';
Expand All @@ -23,7 +23,7 @@ const location: LocationDefinition = {
city_prefix,
city_suffix,
county,
postcode,
postcode_pattern,
state,
state_abbr,
street_name,
Expand Down
1 change: 0 additions & 1 deletion src/locales/en_GB/location/postcode.ts

This file was deleted.

4 changes: 4 additions & 0 deletions src/locales/en_GB/location/postcode_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'{{string.alpha({ "casing": "upper" , "length": 2})}}{{string.numeric}} {{string.numeric}}{{string.alpha({ "casing": "upper" , "length": 2})}}',
'{{string.alpha({ "casing": "upper" , "length": 2})}}{{string.numeric(2)}} {{string.numeric}}{{string.alpha({ "casing": "upper" , "length": 2})}}',
];
Loading

0 comments on commit f1d66e9

Please sign in to comment.