chore(lab): Changes for pattern data
This commit is contained in:
parent
d6cc541da3
commit
13e32d9ed9
10 changed files with 18 additions and 18 deletions
|
@ -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>
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue