i18n
This commit is contained in:
parent
1f1b57e4b4
commit
d6317ca8a4
|
@ -8,6 +8,7 @@ import DeleteIcon from '@suid/icons-material/Delete';
|
||||||
import QuestionMarkIcon from '@suid/icons-material/QuestionMark';
|
import QuestionMarkIcon from '@suid/icons-material/QuestionMark';
|
||||||
import dispatch from '../../workers/dispatcher-main';
|
import dispatch from '../../workers/dispatcher-main';
|
||||||
import Alert from '../alert';
|
import Alert from '../alert';
|
||||||
|
import { useI18n } from '@solid-primitives/i18n';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
trkId: string;
|
trkId: string;
|
||||||
|
@ -20,6 +21,8 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
|
||||||
|
|
||||||
const [confirmDelete, setConfirmDelete] = createSignal(false);
|
const [confirmDelete, setConfirmDelete] = createSignal(false);
|
||||||
|
|
||||||
|
const [t] = useI18n();
|
||||||
|
|
||||||
const title = () => {
|
const title = () => {
|
||||||
return trk().name;
|
return trk().name;
|
||||||
};
|
};
|
||||||
|
@ -96,7 +99,7 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
|
||||||
size='small'
|
size='small'
|
||||||
onClick={deleteHandler}
|
onClick={deleteHandler}
|
||||||
>
|
>
|
||||||
YES
|
{t('yes')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
color='primary'
|
color='primary'
|
||||||
|
@ -104,12 +107,12 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
|
||||||
size='small'
|
size='small'
|
||||||
onclick={cancelDeleteHandler}
|
onclick={cancelDeleteHandler}
|
||||||
>
|
>
|
||||||
NO
|
{t('no')}
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Delete this track ?
|
{t('deleteTrack')}
|
||||||
</Alert>
|
</Alert>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -65,6 +65,11 @@ const dict = {
|
||||||
|
|
||||||
from: 'from ',
|
from: 'from ',
|
||||||
to: 'to ',
|
to: 'to ',
|
||||||
|
|
||||||
|
yes: 'yes',
|
||||||
|
no: 'no',
|
||||||
|
|
||||||
|
deleteTrack: 'Delete this track',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default dict;
|
export default dict;
|
||||||
|
|
|
@ -71,6 +71,11 @@ const dict = {
|
||||||
|
|
||||||
from: 'de ',
|
from: 'de ',
|
||||||
to: 'à ',
|
to: 'à ',
|
||||||
|
|
||||||
|
yes: 'oui',
|
||||||
|
no: 'non',
|
||||||
|
|
||||||
|
deleteTrack: 'Supprimer cette trace',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default dict;
|
export default dict;
|
||||||
|
|
Loading…
Reference in New Issue