1
0
Fork 0

chore(lab): Changes for pattern data

This commit is contained in:
Joost De Cock 2022-09-01 08:48:10 +02:00
parent d6cc541da3
commit 13e32d9ed9
10 changed files with 18 additions and 18 deletions

View file

@ -3,7 +3,7 @@ import ClearIcon from 'shared/components/icons/clear.js'
import { useTranslation } from 'next-i18next'
const DesignOptionList = props => {
const { t } = useTranslation([`o_${props.design.config.name}`])
const { t } = useTranslation([`o_${props.design.config.data.name}`])
const { dflt, list, doNotTranslate=false } = props.design.config.options[props.option]
const val = (typeof props.gist?.options?.[props.option] === 'undefined')
? dflt
@ -48,7 +48,7 @@ const DesignOptionList = props => {
</span>
{doNotTranslate
? choice
: props.ot(`o_${props.design.config.name}:${props.option}.o.${choice}`)
: props.ot(`o_${props.design.config.data.name}:${props.option}.o.${choice}`)
}
</button>
))}