1
0
Fork 0

feat(shared): Support for translation in Dot custom component

This commit is contained in:
Joost De Cock 2022-05-20 15:34:08 +02:00
parent 71e6278c57
commit 038588bf9c
10 changed files with 38 additions and 48 deletions

View file

@ -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
}