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

@ -5,7 +5,7 @@ import { Li, Ul, Details, Summary, SumDiv, Deg } from 'shared/components/workben
import { useTranslation } from 'next-i18next'
const OptionGroup = props => {
const { t } = useTranslation(['app'])
const { t } = useTranslation(['optiongroups'])
const config = props.config || props.pattern.config.optionGroups[props.group]
return (
<Li>
@ -14,7 +14,7 @@ const OptionGroup = props => {
<SumDiv>
<Deg />
<span className="font-bold">
{ t(`optiongroups.${props.group}`) }
{ t(props.group) }
</span>
</SumDiv>
<Chevron />