why does it not work? I try to cut my translation path. How can I do that without passing whole path ("root.chapter.key")?
// json
{"root":
"chapter": {
"key": "Some text"
}
}
const { t } = useTranslation('root')
const text = t('chapter.key')
// or
const { t } = useTransaltion('root.chapter')
const text = t('key')