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,17 @@
|
|||
import { linkClasses, Chevron } from 'shared/components/navigation/primary.js'
|
||||
import Option from './option'
|
||||
import { Li, Ul, Details, Summary, SumButton, SumDiv, Deg } from 'shared/components/workbench/menu'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
|
||||
const OptionSubGroup = props => {
|
||||
const { t } = useTranslation(['app'])
|
||||
return Object.keys(props.sub).map(name => (
|
||||
<Li>
|
||||
<Details>
|
||||
<Summary>
|
||||
<SumDiv>
|
||||
<Deg />
|
||||
<span className="font-bold">{ props.app.t(`optiongroups.${name}`) }</span>
|
||||
<span className="font-bold">{ t(`optiongroups.${name}`) }</span>
|
||||
</SumDiv>
|
||||
<Chevron />
|
||||
</Summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue