wip(lab): Work on i18n-next
This commit is contained in:
parent
491913e288
commit
4c17255a58
26 changed files with 170 additions and 105 deletions
|
@ -1,15 +1,21 @@
|
|||
import Robot from 'shared/components/robot/index.js'
|
||||
import Events from './events.js'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
|
||||
const Error = props => (
|
||||
<div className="mt-12">
|
||||
<div className="flex flex-row items-center justify-around">
|
||||
<h1>{props.app.t('errors.something')}</h1>
|
||||
<div className="max-w-96"><Robot pose='fail' embed/></div>
|
||||
const Error = props => {
|
||||
const { t } = useTranslation(['errors'])
|
||||
|
||||
return (
|
||||
<div className="mt-12">
|
||||
<div className="flex flex-row items-center justify-around">
|
||||
<h1>{t('errors:something')}</h1>
|
||||
<div className="max-w-96"><Robot pose='fail' embed/></div>
|
||||
</div>
|
||||
<Events events={props.draft.events} />
|
||||
</div>
|
||||
<Events events={props.draft.events} />
|
||||
</div>
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export default Error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue