From b5cd2cd58b926b15ec9c68ebedf4070cde1e40a4 Mon Sep 17 00:00:00 2001 From: evlist Date: Wed, 30 Nov 2022 14:46:05 +0100 Subject: [PATCH] GPX labels. --- src/components/infos/Infos.tsx | 2 +- src/i18n/en.ts | 8 +++++++- src/i18n/fr.ts | 9 ++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/components/infos/Infos.tsx b/src/components/infos/Infos.tsx index e1fdb81..b0424ca 100644 --- a/src/components/infos/Infos.tsx +++ b/src/components/infos/Infos.tsx @@ -72,7 +72,7 @@ const Infos: Component<{}> = (props) => { - {(feature) => {feature.get('type')}} + {(feature) => {t(feature.get('type'))}} diff --git a/src/i18n/en.ts b/src/i18n/en.ts index c8c0761..a933aa3 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -1,9 +1,15 @@ const dict = { - close: 'Close', + close: 'close', chooseYourMap: 'Choose your map', nearby: 'Nearby', + + wpt: 'place', + trk: 'track', + trkseg: 'track segment', + 'trkseg-start': 'start', + 'trkseg-finish': 'end', }; export default dict; diff --git a/src/i18n/fr.ts b/src/i18n/fr.ts index 8a1004c..c3ebd13 100644 --- a/src/i18n/fr.ts +++ b/src/i18n/fr.ts @@ -1,11 +1,18 @@ // cSpell:includeRegExp string const dict = { - close: 'Quitter', + + close: 'quitter', chooseYourMap: 'Choisissez votre carte', nearby: 'À proximité', + + wpt: 'lieu', + trk: 'trace', + trkseg: 'segment de trace', + 'trkseg-start': 'début', + 'trkseg-finish': 'fin', }; export default dict;