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 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<Props> = ({ trkId, restrictToHierarchy }) => {
|
|||
|
||||
const [confirmDelete, setConfirmDelete] = createSignal(false);
|
||||
|
||||
const [t] = useI18n();
|
||||
|
||||
const title = () => {
|
||||
return trk().name;
|
||||
};
|
||||
|
@ -96,7 +99,7 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
|
|||
size='small'
|
||||
onClick={deleteHandler}
|
||||
>
|
||||
YES
|
||||
{t('yes')}
|
||||
</Button>
|
||||
<Button
|
||||
color='primary'
|
||||
|
@ -104,12 +107,12 @@ const TrkViewer: Component<Props> = ({ trkId, restrictToHierarchy }) => {
|
|||
size='small'
|
||||
onclick={cancelDeleteHandler}
|
||||
>
|
||||
NO
|
||||
{t('no')}
|
||||
</Button>
|
||||
</>
|
||||
}
|
||||
>
|
||||
Delete this track ?
|
||||
{t('deleteTrack')}
|
||||
</Alert>
|
||||
</>
|
||||
);
|
||||
|
|
|
@ -65,6 +65,11 @@ const dict = {
|
|||
|
||||
from: 'from ',
|
||||
to: 'to ',
|
||||
|
||||
yes: 'yes',
|
||||
no: 'no',
|
||||
|
||||
deleteTrack: 'Delete this track',
|
||||
};
|
||||
|
||||
export default dict;
|
||||
|
|
|
@ -71,6 +71,11 @@ const dict = {
|
|||
|
||||
from: 'de ',
|
||||
to: 'à ',
|
||||
|
||||
yes: 'oui',
|
||||
no: 'non',
|
||||
|
||||
deleteTrack: 'Supprimer cette trace',
|
||||
};
|
||||
|
||||
export default dict;
|
||||
|
|
Loading…
Reference in New Issue