Skip to content

Commit

Permalink
feat(location): fi addresses (#2146)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer committed Jun 17, 2023
1 parent fd8cfe5 commit 1da6785
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/locales/fi/location/building_number.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['###', '##', '#'];
22 changes: 22 additions & 0 deletions src/locales/fi/location/city_name.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
export default [
'Espoo',
'Helsinki',
'Hyvinkää',
'Iisalmi',
'Joensuu',
'Jyväskylä',
'Kokkola',
'Kuopio',
'Lahti',
'Oulu',
'Pori',
'Porvoo',
'Raisio',
'Rovaniemi',
'Sastamala',
'Tampere',
'Turku',
'Vaasa',
'Valkeakoski',
'Vantaa',
];
1 change: 1 addition & 0 deletions src/locales/fi/location/city_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['{{location.city_name}}'];
16 changes: 16 additions & 0 deletions src/locales/fi/location/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,26 @@
* Run 'pnpm run generate:locales' to update.
*/
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 secondary_address from './secondary_address';
import state from './state';
import street_address from './street_address';
import street_pattern from './street_pattern';
import street_suffix from './street_suffix';

const location: LocationDefinition = {
building_number,
city_name,
city_pattern,
postcode,
secondary_address,
state,
street_address,
street_pattern,
street_suffix,
};

export default location;
1 change: 1 addition & 0 deletions src/locales/fi/location/postcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['#####'];
1 change: 1 addition & 0 deletions src/locales/fi/location/secondary_address.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default ['A', 'B', 'C', 'A #', 'A ##', 'B #', 'B ##', 'C #', 'C ##'];
4 changes: 4 additions & 0 deletions src/locales/fi/location/street_address.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
normal: '{{location.street}} {{location.buildingNumber}}',
full: '{{location.street}} {{location.buildingNumber}} {{location.secondaryAddress}}',
};
4 changes: 4 additions & 0 deletions src/locales/fi/location/street_pattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default [
'{{person.first_name}}{{location.street_suffix}}',
'{{person.last_name}}{{location.street_suffix}}',
];
13 changes: 13 additions & 0 deletions src/locales/fi/location/street_suffix.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default [
'katu',
'tie',
'kuja',
'polku',
'kaari',
'linja',
'raitti',
'rinne',
'penger',
'ranta',
'väylä',
];

0 comments on commit 1da6785

Please sign in to comment.