feat(shared): Support for translation in Dot custom component
This commit is contained in:
parent
71e6278c57
commit
038588bf9c
10 changed files with 38 additions and 48 deletions
|
@ -15,7 +15,7 @@ import customComponents from 'shared/components/mdx'
|
|||
// Previous-Next navigation
|
||||
import PrevNext from '../mdx/prev-next'
|
||||
|
||||
const MdxWrapper = ({mdx, app, components={}}) => {
|
||||
const MdxWrapper = ({mdx, app, t, components={}}) => {
|
||||
|
||||
const [mdxModule, setMdxModule] = useState()
|
||||
|
||||
|
@ -31,7 +31,7 @@ const MdxWrapper = ({mdx, app, components={}}) => {
|
|||
* extra components via props
|
||||
*/
|
||||
const allComponents = {
|
||||
...customComponents(app),
|
||||
...customComponents(app, t),
|
||||
...components
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue