-
Notifications
You must be signed in to change notification settings - Fork 17
/
en.tsx
1600 lines (1560 loc) · 46.7 KB
/
en.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { Attribution } from 'fm3/components/Attribution';
import { ChangesetDetails } from 'fm3/components/ChangesetDetails';
import { CookieConsent } from 'fm3/components/CookieConsent';
import { ElevationInfo } from 'fm3/components/ElevationInfo';
import { MaptilerAttribution } from 'fm3/components/MaptilerAttribution';
import {
ObjectDetailBasicProps,
ObjectDetails,
} from 'fm3/components/ObjectDetails';
import { TrackViewerDetails } from 'fm3/components/TrackViewerDetails';
import { Fragment } from 'react';
import Alert from 'react-bootstrap/Alert';
import { FaKey } from 'react-icons/fa';
import shared from './en-shared.json';
import { Messages, addError } from './messagesInterface';
const nf33 = new Intl.NumberFormat('en', {
minimumFractionDigits: 3,
maximumFractionDigits: 3,
});
const masl = 'm\xa0a.s.l.';
const getErrorMarkup = (ticketId?: string) => `
<h1>Application error!</h1>
<p>
${
ticketId
? `The error has been automatically reported under Ticket ID <b>${ticketId}</b>.`
: ''
}
You can report the problem at <a href="https://github.com/FreemapSlovakia/freemap-v3-react/issues/new" target="_blank" rel="noopener noreferrer">GitHub</a>,
or eventually email us the details at <a href="mailto:[email protected]?subject=Nahlásenie%20chyby%20na%20www.freemap.sk">[email protected]</a>.
</p>
<p>
Thank you.
</p>`;
const outdoorMap = 'Hiking, Bicycle, Ski, Riding';
const en: Messages = {
general: {
iso: 'en_US',
elevationProfile: 'Elevation profile',
save: 'Save',
cancel: 'Cancel',
modify: 'Modify',
delete: 'Delete',
remove: 'Remove',
close: 'Close',
apply: 'Apply',
exitFullscreen: 'Exit fullscreen mode',
fullscreen: 'Fullscreen',
yes: 'Yes',
no: 'No',
masl,
copyCode: 'Copy code',
loading: 'Loading…',
ok: 'OK',
preventShowingAgain: "Don't show next time",
closeWithoutSaving: 'Close the window with unsaved changes?',
back: 'Back',
internalError: ({ ticketId }) => `!HTML!${getErrorMarkup(ticketId)}`,
processorError: ({ err }) => addError(en, 'Application error', err),
seconds: 'seconds',
minutes: 'minutes',
meters: 'meters',
createdAt: 'Created At',
modifiedAt: 'Modified At',
actions: 'Actions',
add: 'Add new',
clear: 'Clear',
convertToDrawing: 'Convert to drawing',
simplifyPrompt:
'Please enter simplification factor. Set to zero for no simplification.',
copyUrl: 'Copy URL',
copyPageUrl: 'Copy page URL',
savingError: ({ err }) => addError(en, 'Save error', err),
loadError: ({ err }) => addError(en, 'Loading error', err),
deleteError: ({ err }) => addError(en, 'Deleting error', err),
operationError: ({ err }) => addError(en, 'Operation error', err),
deleted: 'Deleted.',
saved: 'Saved.',
visual: 'Display',
copyOk: 'Copied to clipboard.',
noCookies: 'This functionality requires accepting the cookies consent.',
name: 'Name',
load: 'Load',
unnamed: 'No name',
enablePopup: 'Please enable pop-up windows for this site in you browser.',
componentLoadingError:
'Component loading error. Please check your internet connection.',
offline: 'You are not connected to the internet.',
connectionError: 'Error connecting the server.',
experimentalFunction: 'Experimental function',
attribution: () => <Attribution unknown="Map licence is not specified" />,
unauthenticatedError: 'Please log-in to access this feature.',
areYouSure: 'Are you sure?',
export: 'Export',
success: 'Success!',
},
selections: {
objects: 'Object (POI)',
drawPoints: 'Point',
drawLines: 'Line',
drawPolygons: 'Polygon',
tracking: 'Tracking',
linePoint: 'Line point',
polygonPoint: 'Polygon point',
},
tools: {
none: 'Close tool',
tools: 'Tools',
routePlanner: 'Route finder',
objects: 'Objects (POIs)',
photos: 'Photos',
measurement: 'Drawing and measurement',
drawPoints: 'Point drawing',
drawLines: 'Line drawing',
drawPolygons: 'Polygon drawing',
trackViewer: 'Track viewer (GPX)',
changesets: 'Map changes',
mapDetails: 'Map details',
tracking: 'Live tracking',
maps: 'My maps',
},
routePlanner: {
ghParams: {
tripParameters: 'Trip parameters',
seed: 'Random seed',
distance: 'Approximate distance',
isochroneParameters: 'Isochrone parameters',
buckets: 'Buckets',
timeLimit: 'Time limit',
distanceLimit: 'Distance limit',
},
milestones: 'Milestones',
start: 'Start',
finish: 'Finish',
swap: 'Swap start and finish',
point: {
pick: 'Select on the map',
current: 'Your position',
home: 'Home position',
},
transportType: {
car: 'Car',
// 'car-free': 'Car (toll free)',
// bikesharing: 'Bike sharing',
// imhd: 'Public transport in Bratislava',
bike: 'Bicycle',
bicycle_touring: 'Bicycle touring',
'foot-stroller': 'Stroller / Wheelchair',
nordic: 'Nordic skiing',
// ski: 'Downhill skiing',
foot: 'Walking',
hiking: 'Hiking',
mtb: 'Mountain bike',
racingbike: 'Racing bike',
motorcycle: 'Motorcycle',
},
weighting: {
fastest: 'Fastest',
short_fastest: 'Fast, short',
shortest: 'Shortest',
},
development: 'in development',
mode: {
route: 'Ordered',
trip: 'Visiting places',
roundtrip: 'Visiting places (roundtrip)',
'routndtrip-gh': 'Roundtrip',
isochrone: 'Isochrones',
},
alternative: 'Alternative',
distance: ({ value, diff }) => (
<>
Distance:{' '}
<b>
{value} km{diff ? ` (+ ${diff} km)` : ''}
</b>
</>
),
duration: ({ h, m, diff }) => (
<>
Duration:{' '}
<b>
{h} h {m} m{diff && ` (+ ${diff.h} h ${diff.m} m)`}
</b>
</>
),
summary: ({ distance, h, m }) => (
<>
Distance: <b>{distance} km</b> | Duration:{' '}
<b>
{h} h {m} m
</b>
</>
),
noHomeAlert: {
msg: 'You need to set your home position in settings first.',
setHome: 'Set',
},
showMidpointHint: 'To add a midpoint, drag a route segment.',
gpsError: 'Error getting your current location.',
routeNotFound:
'No route found. Try to change parameters or move the route points.',
fetchingError: ({ err }) => addError(en, 'Error finding the route', err),
maneuverWithName: ({ type, modifier, name }) =>
`${type} ${modifier} on ${name}`,
maneuverWithoutName: ({ type, modifier }) => `${type} ${modifier}`,
maneuver: {
types: {
turn: 'turn',
'new name': 'go',
depart: 'depart',
arrive: 'arrive',
merge: 'continue',
// 'ramp':
'on ramp': 'enter driveway',
'off ramp': 'exit driveway',
fork: 'choose way',
'end of road': 'continue',
// 'use lane':
continue: 'continue',
roundabout: 'enter a roundabout',
rotary: 'enter a circle',
'roundabout turn': 'at a roundabout, turn',
// 'notification':
'exit rotary': 'exit the circle', // undocumented
'exit roundabout': 'exit the roundabout', // undocumented
notification: 'notification',
'use lane': 'use lane',
},
modifiers: {
uturn: 'take a U-turn',
'sharp right': 'sharply right',
'slight right': 'slightly right',
right: 'right',
'sharp left': 'sharply left',
'slight left': 'slightly left',
left: 'left',
straight: 'straight',
},
},
imhd: {
total: {
short: ({ arrival, price, numbers }) => (
<>
Arrival: <b>{arrival}</b> | Price: <b>{price} €</b> | Lines:{' '}
{numbers?.map((n, i) => (
<Fragment key={n}>
{i > 0 ? ', ' : ''}
<b>{n}</b>
</Fragment>
))}
</>
),
full: ({ arrival, price, numbers, total, home, foot, bus, wait }) => (
<>
Arrival: <b>{arrival}</b> | Price: <b>{price} €</b> | Lines:{' '}
{numbers?.map((n, i) => (
<Fragment key={n}>
{i > 0 ? ', ' : ''}
<b>{n}</b>
</Fragment>
))}{' '}
| Duration{' '}
<b>
{total} {numberize(total, ['minutes', 'minute'])}
</b>
<br />
To leave: <b>{home}</b>, walking: <b>{foot}</b>, pub. trans.:{' '}
<b>{bus}</b>, waiting:{' '}
<b>
{wait} {numberize(wait, ['minutes', 'minute'])}
</b>
</>
),
},
step: {
foot: ({ departure, duration, destination }) => (
<>
at <b>{departure}</b> walk{' '}
{duration !== undefined && (
<b>
{duration} {numberize(duration, ['minutes', 'minute'])}
</b>
)}{' '}
{destination === 'TARGET' ? (
<b>to destination</b>
) : (
<>
to <b>{destination}</b>
</>
)}
</>
),
bus: ({ departure, type, number, destination }) => (
<>
at <b>{departure}</b> {type} <b>{number}</b> to <b>{destination}</b>
</>
),
},
type: {
bus: 'take bus',
tram: 'take tram',
trolleybus: 'take trolleybus',
foot: 'walk',
},
},
bikesharing: {
step: {
foot: ({ duration, destination }) => (
<>
walk{' '}
{duration !== undefined && (
<b>
{duration} {numberize(duration, ['minutes', 'minute'])}
</b>
)}{' '}
{destination === 'TARGET' ? (
<b>to destination</b>
) : (
<>
to <b>{destination}</b>
</>
)}
</>
),
bicycle: ({ duration, destination }) => (
<>
bicycle{' '}
{duration !== undefined && (
<b>
{duration} {numberize(duration, ['minutes', 'minute'])}
</b>
)}{' '}
to <b>{destination}</b>
</>
),
},
},
imhdAttribution: 'public transport routes',
},
mainMenu: {
title: 'Main menu',
logOut: 'Log out',
logIn: 'Log in',
account: 'Account',
mapFeaturesExport: 'Export map features',
mapExports: 'Map for GPS devices',
embedMap: 'Embed map',
supportUs: 'Support Freemap',
help: 'Help',
back: 'Back',
mapLegend: 'Map legend',
contacts: 'Contacts',
facebook: 'Freemap on Facebook',
twitter: 'Freemap on Twitter',
youtube: 'Freemap on YouTube',
github: 'Freemap on GitHub',
automaticLanguage: 'Automatic',
mapExport: 'Export map',
osmWiki: 'OpenStreetMap documentation',
wikiLink: 'https://wiki.openstreetmap.org/wiki/Main_Page',
},
main: {
title: shared.title,
description: shared.description,
clearMap: 'Clear map elements',
close: 'Close',
closeTool: 'Close tool',
locateMe: 'Locate me',
locationError: 'Error getting location.',
zoomIn: 'Zoom in',
zoomOut: 'Zoom out',
devInfo: () => (
<div>
This is a testing version of Freemap Slovakia. For production version
navigate to <a href="https://www.freemap.sk/">www.freemap.sk</a>.
</div>
),
copyright: 'Copyright',
cookieConsent: () => (
<CookieConsent
prompt="Some features may require cookies. Accept:"
local="Cookies of local settings and login via social networks"
analytics="Analytics cookies"
/>
),
infoBars: {
ua: () => (
<>
🇺🇦 We stand with Ukraine.{' '}
<a
href="https://bank.gov.ua/en/about/support-the-armed-forces"
target="_blank"
rel="noopener"
>
Donate to the Ukrainian Army ›
</a>{' '}
🇺🇦
</>
),
},
},
gallery: {
recentTags: 'Recent tags to assign:',
filter: 'Filter',
showPhotosFrom: 'View photos',
showLayer: 'Show the layer',
upload: 'Upload',
f: {
firstUploaded: 'from first uploaded',
lastUploaded: 'from last uploaded',
firstCaptured: 'from oldest',
lastCaptured: 'from newest',
leastRated: 'from least rated',
mostRated: 'from most rated',
lastComment: 'from last comment',
},
colorizeBy: 'Colorize by',
c: {
disable: "don't colorize",
mine: 'differ mine',
author: 'author',
rating: 'rating',
takenAt: 'taken date',
createdAt: 'upload date',
season: 'season',
},
viewer: {
title: 'Photo',
comments: 'Comments',
newComment: 'New comment',
addComment: 'Add',
yourRating: 'Your rating:',
showOnTheMap: 'Show on the map',
openInNewWindow: 'Open in…',
uploaded: ({ username, createdAt }) => (
<>
Uploaded by {username} on {createdAt}
</>
),
captured: (takenAt) => <>Captured on {takenAt}</>,
deletePrompt: 'Delete this picture?',
modify: 'Modify',
},
editForm: {
name: 'Name',
description: 'Description',
takenAt: {
datetime: 'Capture date and time',
date: 'Capture date',
time: 'Capture time',
},
location: 'Location',
tags: 'Tags',
setLocation: 'Set the location',
},
uploadModal: {
title: 'Upload photos',
uploading: (n) => `Uploading (${n})`,
upload: 'Upload',
rules: `
<p>Drop your photos here or click here to select them.</p>
<ul>
<li>Do not upload too small photos (thumbnails). Maximum dimensions are not limited. The maximum file size is limited to 10MB. Bigger files will be rejected.</li>
<li>Upload only photos of landscapes or documentation pictures. Portraits and macro photos are undesirable and will be deleted without warning.</li>
<li>Please upload only your own photos.</li>
<li>Captions or comments that do not directly relate to the content of the uploaded photos, or contradict generally accepted principles of civilized coexistence will be removed. Violators of this rule will be warned, and in case of repeated violations, their account in the application may be canceled.</li>
<li>By uploading the photos, you agree they will be distributed under the terms of CC-BY-SA 4.0 license.</li>
<li>The operator (Freemap.sk) hereby disclaims all liability and is not liable for direct or indirect damages resulting from publication of a photo in the gallery. The person who has uploaded the picture on the server is fully responsible for the photo.</li>
<li>The operator reserves the right to edit the description, name, position and tags of photo, or to delete the photo if the content is inappropriate (violate these rules).</li>
<li>The operator reserves the right to delete the account in case that the user repeatedly violates the gallery policy by publishing inappropriate content.</li>
</ul>
`,
success: 'Pictures have been successfully uploaded.',
showPreview: 'Show previews (uses more CPU load and memory)',
},
locationPicking: {
title: 'Select photo location',
},
deletingError: ({ err }) => addError(en, 'Error deleting photo', err),
tagsFetchingError: ({ err }) => addError(en, 'Error fetching tags', err),
pictureFetchingError: ({ err }) =>
addError(en, 'Error fetching photo', err),
picturesFetchingError: ({ err }) =>
addError(en, 'Error fetching photos', err),
savingError: ({ err }) => addError(en, 'Error saving photo', err),
commentAddingError: ({ err }) => addError(en, 'Error adding comment', err),
ratingError: ({ err }) => addError(en, 'Error rating photo', err),
missingPositionError: 'Missing location.',
invalidPositionError: 'Invalid location coordinates format.',
invalidTakenAt: 'Invalid capture date and time.',
filterModal: {
title: 'Photo filtering',
tag: 'Tag',
createdAt: 'Upload date',
takenAt: 'Capture date',
author: 'Author',
rating: 'Rating',
noTags: 'no tags',
pano: 'Panorama',
},
noPicturesFound: 'There were no photos found on this place.',
linkToWww: 'photo at www.freemap.sk',
linkToImage: 'photo image file',
},
measurement: {
distance: 'Line',
elevation: 'Point',
area: 'Polygon',
elevationFetchError: ({ err }) =>
addError(en, 'Error fetching point elevation', err),
elevationInfo: (params) => (
<ElevationInfo
{...params}
lang="cs"
tileMessage="Tile"
maslMessage="Elevation"
/>
),
areaInfo: ({ area }) => (
<>
Area:
<div>
{nf33.format(area)} m<sup>2</sup>
</div>
<div>{nf33.format(area / 100)} a</div>
<div>{nf33.format(area / 10000)} ha</div>
<div>
{nf33.format(area / 1000000)} km<sup>2</sup>
</div>
</>
),
distanceInfo: ({ length }) => (
<>
Length:
<div>{nf33.format(length * 1000)} m</div>
<div>{nf33.format(length)} km</div>
</>
),
},
trackViewer: {
upload: 'Upload',
moreInfo: 'More info',
share: 'Save on server',
colorizingMode: {
none: 'Inactive',
elevation: 'Elevation',
steepness: 'Steepness',
},
details: {
startTime: 'Start time',
finishTime: 'Finish time',
duration: 'Duration',
distance: 'Distance',
avgSpeed: 'Average speed',
minEle: 'Min. elevation',
maxEle: 'Max. elevation',
uphill: 'Total climb',
downhill: 'Total descend',
durationValue: ({ h, m }) => `${h} hours ${m} minutes`,
},
uploadModal: {
title: 'Upload the track',
drop: 'Drop your .gpx file here or click here to select it.',
},
shareToast:
'The track has been saved to the server and can be shared by copying page URL.',
fetchingError: ({ err }) => addError(en, 'Error fetching track data', err),
savingError: ({ err }) => addError(en, 'Error saving the track', err),
loadingError: 'Error loading file.',
onlyOne: 'Only single GPX file expected.',
wrongFormat: 'The file must have .gpx extension.',
info: () => <TrackViewerDetails />,
tooBigError: 'The file is too big.',
},
drawing: {
modify: 'Properties',
edit: {
title: 'Properties',
color: 'Color:',
label: 'Label:',
width: 'Width:',
hint: 'To remove label leave its field empty.',
type: 'Geometry type',
},
continue: 'Continue',
join: 'Join',
split: 'Split',
stopDrawing: 'Stop drawing',
selectPointToJoin: 'Select point to join lines',
defProps: {
menuItem: 'Style settings',
title: 'Default drawing style settings',
applyToAll: 'Save and apply to all',
},
},
settings: {
map: {
overlayPaneOpacity: 'Map line features opacity:',
homeLocation: {
label: 'Home location:',
select: 'Select on the map',
undefined: 'undefined',
},
},
account: {
name: 'Name',
email: 'Email',
sendGalleryEmails: 'Notify photo comments via email',
delete: 'Delete account',
deleteWarning:
'Are you sure to delete your account? It will remove all your photos, photo comments and ratings, your maps, and tracked devices.',
},
general: {
tips: 'Show tips on page opening (only if Slovak or Czech language is selected)',
},
layer: 'Map',
overlayOpacity: 'Opacity',
showInMenu: 'Show in menu',
showInToolbar: 'Show in toolbar',
saveSuccess: 'Settings have been saved.',
savingError: ({ err }) => addError(en, 'Error saving settings', err),
customLayersDef: 'Custom map layers definition',
customLayersDefError: 'Invalid definition of custom map layers.',
},
changesets: {
allAuthors: 'All authors',
tooBig:
'Changesets request may return too many items. Please try zoom in, choose fewer days or enter the specific author.',
olderThan: ({ days }) => `${days} days`,
olderThanFull: ({ days }) => `Changesets from last ${days} days`,
notFound: 'No changesets found.',
fetchError: ({ err }) => addError(en, 'Error fetching changesets', err),
detail: ({ changeset }) => <ChangesetDetails changeset={changeset} />,
details: {
author: 'Author:',
description: 'Description:',
noDescription: 'without description',
closedAt: 'Time:',
moreDetailsOn: ({ osmLink, achaviLink }) => (
<p>
More details on {osmLink} or {achaviLink}.
</p>
),
},
},
mapDetails: {
notFound: 'Nothing found here.',
fetchingError: ({ err }) => addError(en, 'Error fetching details', err),
detail: (props: ObjectDetailBasicProps) => (
<ObjectDetails
{...props}
openText="Open at OpenStreetMap.org"
historyText="history"
editInJosmText="Edit in JOSM"
/>
),
},
objects: {
type: 'Type',
lowZoomAlert: {
message: ({ minZoom }) =>
`To see objects by their type, you need to zoom in to at least level ${minZoom}.`,
zoom: 'Zoom-in',
},
tooManyPoints: ({ limit }) => `Result was limited to ${limit} objects.`,
fetchingError: ({ err }) =>
addError(en, 'Error fetching objects (POIs)', err),
icon: {
pin: 'Pin',
ring: 'Ring',
square: 'Square',
},
// categories: {
// 1: 'Nature',
// 2: 'Services',
// 3: 'Transportation',
// 4: 'Monuments',
// 5: 'Health service',
// 6: 'Shops',
// 7: 'Energetics',
// 8: 'Accommodation and food',
// 9: 'Tourism',
// 10: 'Administrative division',
// 11: 'Others',
// 12: 'Free time',
// 13: 'Sport',
// 14: 'Education',
// 15: 'Cycling',
// },
// subcategories: {
// 1: 'Cave',
// 2: 'Peak',
// 3: 'Gas station',
// 4: 'Restaurant',
// 5: 'Hotel',
// 6: 'Parking',
// 7: 'Airport',
// 8: 'Train station',
// 9: 'Bus station',
// 10: 'Bus stop',
// 11: 'Castle',
// 12: 'Mansion',
// 13: 'Ruin',
// 14: 'Museum',
// 15: 'Monument',
// 16: 'Memorial',
// 17: 'Pharmacy',
// 18: 'Hospital',
// 19: 'Surgery',
// 20: 'Police',
// 21: 'Clinic',
// 22: 'Border crossing',
// 23: 'Hospital with emergency',
// 24: 'Supermarket',
// 26: 'Nuclear power plant',
// 27: 'Coal power plant',
// 28: 'Hydroelectric power plant',
// 29: 'Wind power plant',
// 30: 'Grocery',
// 31: 'Fire station',
// 32: 'Church',
// 33: 'Pub',
// 34: 'Bank',
// 35: 'ATM',
// 36: 'Fast food',
// 39: 'Bank',
// 40: 'Viewpoint',
// 41: 'Camping',
// 42: 'Protected trees',
// 43: 'Spring',
// 44: 'Guidepost',
// 45: 'Orientation map',
// 46: 'Alpine hut',
// 47: 'Shelter',
// 48: 'Post office',
// 49: 'Memorial, battlefield',
// 50: 'Hunting stand',
// 51: 'Communication tower',
// 52: 'Observation tower',
// 53: 'Motel',
// 54: 'Guest house',
// 55: 'Family pension',
// 56: 'Regional city',
// 57: 'District city',
// 58: 'City',
// 59: 'Town',
// 60: 'Village',
// 61: 'Hamlet',
// 62: 'Town district',
// 63: 'Gamekeepers house',
// 64: 'Dentist',
// 65: 'Bicycle shop',
// 66: 'Bicycle rack',
// 67: 'Bicycle rental',
// 68: 'Liquor store',
// 69: 'Art',
// 70: 'Bakery',
// 71: 'Beauty care',
// 72: 'Beds',
// 73: 'Drinks',
// 74: 'Book store',
// 75: 'Boutique',
// 76: 'Butcher',
// 77: 'Car sales',
// 78: 'Car service',
// 79: 'Charity',
// 80: 'Drug store',
// 81: 'Clothes',
// 82: 'Computers',
// 83: 'Confectionery',
// 84: 'Copy shop',
// 85: 'Courtains',
// 86: 'Delicatessen',
// 87: 'Department store',
// 89: 'Dry cleaners',
// 90: 'Domestics',
// 91: 'Electronics',
// 92: 'Erotics',
// 93: 'Factory outlet',
// 94: 'Farm products',
// 95: 'Flower shop',
// 96: 'Paintings',
// 98: 'Funeral directors',
// 99: 'Furniture',
// 100: 'Garden centre',
// 101: 'Convenience',
// 102: 'Gift shop',
// 103: 'Glaziery',
// 104: 'Fruits and vegetables',
// 105: 'Hairdressers',
// 106: 'Hardware',
// 107: 'Hearing aids',
// 108: 'HI-FI',
// 109: 'Ice cream',
// 110: 'Interior decoration',
// 111: 'Goldsmith',
// 112: 'Kiosk',
// 113: 'Houseware',
// 114: 'Laundry',
// 115: 'Shopping center',
// 116: 'Massage',
// 117: 'Mobile phones',
// 118: 'Money lender',
// 119: 'Motorcycle',
// 120: 'Music store',
// 121: 'Newspaper',
// 122: 'Optics',
// 124: 'Outdoor',
// 125: 'Paint',
// 126: 'Pawnbroker',
// 127: 'Animals',
// 128: 'Seafood',
// 129: 'Second hand',
// 130: 'Shoes',
// 131: 'Sporting goods',
// 132: 'Stationery',
// 133: 'Tattoo',
// 134: 'Toy store',
// 135: 'Trade',
// 136: 'Vacant',
// 137: 'Vacuum cleaner',
// 138: 'Variety store',
// 139: 'Video/DVD',
// 140: 'ZOO',
// 141: 'Alpine hut',
// 142: 'Attraction',
// 143: 'Toilettes',
// 144: 'Telephone',
// 145: 'Civic authorities',
// 146: 'Prison',
// 147: 'Marketplace',
// 148: 'Bar',
// 149: 'Cafe',
// 150: 'Public grill',
// 151: 'Drinking water',
// 152: 'Taxi',
// 153: 'Library',
// 154: 'Car wash',
// 155: 'Vet',
// 156: 'Traffic light',
// 157: 'Railway station',
// 158: 'Rail crossing',
// 159: 'Tram station',
// 160: 'Heliport',
// 161: 'Water tower',
// 162: 'Windmill',
// 163: 'Sauna',
// 164: 'LPG station',
// 166: 'Park for dogs',
// 167: 'Sports center',
// 168: 'Golf courser',
// 169: 'Stadium',
// 170: 'Leisure',
// 171: 'Water park',
// 172: 'Boating',
// 173: 'Fishing',
// 174: 'Park',
// 175: 'Playground',
// 176: 'Garden',
// 177: 'Public area',
// 178: 'Ice rink',
// 179: 'Mini-golf',
// 180: 'Dance',
// 181: 'Elementary school',
// 182: '9pin',
// 183: 'Bowling',
// 184: 'American football',
// 185: 'Archery',
// 186: 'Athletics',
// 187: 'Australian football',
// 188: 'Baseball',
// 189: 'Basketball',
// 190: 'Beach volleyball',
// 191: 'Bmx',
// 192: 'Boules',
// 193: 'Bowls',
// 194: 'Canadian football',
// 195: 'Kanoe',
// 196: 'Chess',
// 197: 'Climbing',
// 198: 'Cricket',
// 199: 'Cricket nets',
// 200: 'Croquet',
// 201: 'Cycling',
// 202: 'Scuba diving',
// 203: 'Dog racing',
// 204: 'Horse riding',
// 205: 'Soccer',
// 206: 'Gaelic football',
// 207: 'Golf',
// 208: 'Gymnastics',
// 209: 'Hockey',
// 210: 'Horseshoes',
// 211: 'Horserace',
// 212: 'Ice stock',
// 213: 'Korfball',
// 214: 'Motorcycles',
// 215: 'Multi',
// 216: 'Orienteering',
// 217: 'Paddle tennis',
// 218: 'Paragliding',
// 219: 'Pelota',
// 220: 'Racquet',
// 221: 'Rowing',
// 222: 'Rugby league',
// 223: 'Rugby union',
// 224: 'Shooting',
// 225: 'Ice skating',
// 226: 'Skateboard',
// 227: 'Skiing',
// 228: 'Football',
// 229: 'Swimming',
// 230: 'Table tennis',
// 231: 'Handball',
// 232: 'Tennis',
// 233: 'Water slide',
// 234: 'Volleyball',
// 235: 'Water skiing',
// 236: 'University',
// 237: 'Kindergarden',
// 238: 'High school',
// 239: 'Driving school',
// 240: 'Chapel',
// 241: 'Picnic site',
// 242: 'Firepit',
// 243: 'Locality',
// 244: 'Waterfall',
// 245: 'Lake',
// 246: 'Dam',
// 248: 'Natural reservation',
// 249: 'Natural monument',
// 250: 'Protected area',
// 251: 'Protected landscape area',
// 252: 'National park',
// 253: 'Milk vending machine',
// 254: 'Important wetland (RAMSAR)',
// 255: 'Address points',
// 256: 'Mineshaft',
// 257: 'Adit',
// 258: 'Well',
// 259: 'Cross',
// 260: 'Sanctuary',
// 261: 'Fitness',
// 262: 'Steam power plant',
// 263: 'Manor house',
// 264: 'Geomorphological classification',
// 265: 'Military bunker',
// 266: 'Highway exit',
// 267: 'Statue',
// 268: 'Chimney',
// 269: 'Paragliding',
// 270: 'Hang gliding',
// 271: 'Feeding place',
// 272: 'Fireplace',
// 273: 'Bedminton/Squash',
// 274: 'Guidepost',
// 275: 'Bicycle charging station',
// },
},
external: {
openInExternal: 'Share / Open in external app.',
osm: 'OpenStreetMap',
oma: 'OMA',
googleMaps: 'Google Maps',
hiking_sk: 'Hiking.sk',
zbgis: 'ZBGIS',
mapy_cz: 'Mapy.cz',
josm: 'Edit in JOSM',
id: 'Edit in iD',
window: 'New window',
url: 'Share URL',
image: 'Share photo',
},
search: {
inProgress: 'Searching…',
noResults: 'No results found',
prompt: 'Enter the place',