diff --git a/src/components/trk/TrkViewer.tsx b/src/components/trk/TrkViewer.tsx index ee5d963..fe37f4c 100644 --- a/src/components/trk/TrkViewer.tsx +++ b/src/components/trk/TrkViewer.tsx @@ -8,6 +8,7 @@ import DeleteIcon from '@suid/icons-material/Delete'; import QuestionMarkIcon from '@suid/icons-material/QuestionMark'; import dispatch from '../../workers/dispatcher-main'; import Alert from '../alert'; +import { useI18n } from '@solid-primitives/i18n'; interface Props { trkId: string; @@ -20,6 +21,8 @@ const TrkViewer: Component = ({ trkId, restrictToHierarchy }) => { const [confirmDelete, setConfirmDelete] = createSignal(false); + const [t] = useI18n(); + const title = () => { return trk().name; }; @@ -96,7 +99,7 @@ const TrkViewer: Component = ({ trkId, restrictToHierarchy }) => { size='small' onClick={deleteHandler} > - YES + {t('yes')} } > - Delete this track ? + {t('deleteTrack')} ); diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 1ade80e..7ae5fca 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -65,6 +65,11 @@ const dict = { from: 'from ', to: 'to ', + + yes: 'yes', + no: 'no', + + deleteTrack: 'Delete this track', }; export default dict; diff --git a/src/i18n/fr.ts b/src/i18n/fr.ts index 62a3346..7fce833 100644 --- a/src/i18n/fr.ts +++ b/src/i18n/fr.ts @@ -71,6 +71,11 @@ const dict = { from: 'de ', to: 'à ', + + yes: 'oui', + no: 'non', + + deleteTrack: 'Supprimer cette trace', }; export default dict;