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;