Restarting from scratch

This commit is contained in:
vdv committed 2022-10-17 10:08:00 +02:00
1 parent ed951208e8
commit a4bd11aab0
88 files changed
+1714 -17027

No files matched your search

-147
View File
@@ -1,147 +0,0 @@
import LocalizedStrings from 'react-localization';
const strings = new LocalizedStrings({
en: {
colonize: (input: string): any => strings.formatString('{0}:', input),
save: 'Save',
cancel: 'Cancel',
close: 'Close',
settings: 'Settings',
language: 'Language',
user: 'User',
pseudo: 'Pseudo',
geolocation: 'Geolocation',
minTimeInt: 'Minimal time interval (ms)',
minDist: 'Minimal distance (m)',
trackRecording: 'Track recording',
resumeRecording: 'Resume recording',
startRecording: 'Start recording',
pauseRecording: 'Pause',
// stopRecording: 'stop',
// cancelRecording: 'cancel',
stopRecording: (
<>
Stop recording
<br />
(and save track)
</>
),
cancelRecording: (
<>
Cancel recording
<br />
(and clear track)
</>
),
chooseYourMap: 'Choose your map',
languageSelect: {
placeHolder: 'Select your language',
choices: [
{ value: 'auto', label: 'Automatic' },
{ value: 'en', label: 'English' },
{ value: 'fr', label: 'Français' },
],
},
tracks: 'Tracks',
locationInfo: {
title: 'Here',
location: 'Location',
lat: 'Latitude: ',
lon: 'Longitude: ',
elevation: 'Elevation:',
address: 'Address',
display_name: 'Full address:',
notes: 'Notes',
at: (distance: number) => `At ${Math.round(distance)}m...`,
created: 'Created on ',
status: {
opened: 'opened',
closed: 'closed',
},
},
},
fr: {
colonize: (input: string): any => strings.formatString('{0} :', input),
save: 'Sauvegarder',
cancel: 'Annuler',
close: 'Fermer',
settings: 'Paramètres',
language: 'Langue',
user: 'Utilisateur',
pseudo: 'Pseudo',
geolocation: 'Géolocalisation',
minTimeInt: 'Interval minimal (ms)',
minDist: 'Distance minimale (m)',
trackRecording: 'Enregistrement de trace',
resumeRecording: (
<>
Reprendre
<br />
l'enregistrement
</>
),
startRecording: (
<>
Démarre
<br />
l'enregistrement
</>
),
pauseRecording: 'Pause',
stopRecording: (
<>
Arrêter
<br />
(et sauvegarder)
</>
),
cancelRecording: (
<>
Annuler
<br />
(et effacer)
</>
),
chooseYourMap: 'Choisissez votre carte',
languageSelect: {
placeHolder: 'Selectionner votre langue',
choices: [
{ value: 'auto', label: 'Automatique' },
{ value: 'fr', label: 'Français' },
{ value: 'en', label: 'English' },
],
},
tracks: 'Traces',
locationInfo: {
title: 'Ici',
location: 'Position',
lat: 'Latitude : ',
lon: 'Longitude : ',
elevation: 'Altitude :',
address: 'Addresse',
display_name: 'Adresse complète :',
},
},
});
export default strings;
export const setI18nLanguage = (language: string) => {
if (language === undefined || language === 'auto') {
strings.setLanguage(strings.getInterfaceLanguage());
} else {
strings.setLanguage(language);
}
};
-50
View File
@@ -1,50 +0,0 @@
import LocalizedStrings from 'react-localization';
import { stopRecursion } from 'localized-strings/lib/StopRecursion';
const strings = new LocalizedStrings({
en: {
internationalTileProviders: {
osm: {
name: 'Open Street Map',
},
otm: {
name: 'Open Topo Map',
},
CyclOSM: {
name: 'CyclOSM',
title: 'CyclOSM: OpenStreetMap-based bicycle map',
description: (
<>
<p>
<a href='https://github.com/cyclosm/cyclosm-cartocss-style/'>
CyclOSM
</a>{' '}
is a bicycle-oriented map built on top of{' '}
<a href='https://www.openstreetmap.org/'>OpenStreetMap</a> data.
It aims at providing a beautiful and practical map for cyclists,
no matter their cycling habits or abilities.
</p>
<p>
In urban areas, it renders the main different types of cycle
tracks and lanes, on each side of the road, for helping you draw
your bike to work route. It also features essential POIs as well
as bicycle parking spots or spots shared with motorbikes, specific
infrastructure (elevators / ramps), road speeds or surfaces to
avoid streets with pavings, bumpers and bike boxes, etc.
</p>
<p>
The same map also lets you visualize main bicycle touring routes
as well as essential POIs when touring (emergency services,
shelters, tourism, shops).
</p>
</>
),
},
},
localizedTileProviders: stopRecursion({}),
},
fr: {},
});
export default strings;