1
0
Fork 0

wip(lab): Migrated translation to next-i18next

This commit is contained in:
Joost De Cock 2022-02-10 21:40:19 +01:00
parent 538f22a1e6
commit bbb2b2c23f
25 changed files with 72 additions and 71 deletions

View file

@ -4,7 +4,8 @@ import Link from 'next/link'
import { useTranslation } from 'next-i18next'
const PatternPicker = ({ app }) => {
const { t } = useTranslation()
const { t } = useTranslation(['app'])
return (
<div className="dropdown">
<div tabIndex="0" className={`
@ -13,7 +14,7 @@ const PatternPicker = ({ app }) => {
hover:bg-neutral hover:border-neutral-content
`}>
<DesignIcon />
<span>Patterns</span>
<span>{t('designs')}</span>
</div>
<ul tabIndex="0" className="p-2 shadow menu dropdown-content bg-base-100 rounded-box w-52 overflow-y-scroll navdrop">
{Object.keys(app.patterns).map(section => (