1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 02:55:01 +00:00
mon-entreprise/source/components/Route404.tsx
Johan Girod d74b625be3 👽 Vérifie que tous les éléments d'ui sont traduits
Tous les éléments à traduire (via la balise <Trans> ou la fonction 't')
sont analysé statiquement. Si il manque une traduction, la PR est bloquée

Ajoute un script de traduction automatique via `yarn run i18n:ui:translate`

Met à jour CONTRIBUTING.md avec les infos sur la traduction
2020-01-22 15:10:46 +01:00

30 lines
718 B
TypeScript

import image from 'Images/map-directions.png'
import React from 'react'
import emoji from 'react-easy-emoji'
import { Trans } from 'react-i18next'
import { Link } from 'react-router-dom'
export default () => (
<div
style={{
color: '#333350',
margin: '15% auto',
width: '15em',
textAlign: 'center'
}}
>
<p>
<Trans i18nKey="404.message">
Cette page n'existe pas ou n'existe plus
</Trans>
{emoji(' 🙅')}
</p>
<Link to="/">
{/* TODO: credits for the image to add: https://thenounproject.com/term/treasure-map/96666/ */}
<img style={{ margin: '3%' }} width="100%" src={image} />
<em>
<Trans i18nKey="404.action">Revenir en lieu sûr</Trans>
</em>
</Link>
</div>
)