[org] fix: include strings from pluginI18n package in Legend MDX component (#262)
Fixes #125 Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/262 Co-authored-by: Jonathan Haas <haasjona@gmail.com> Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
5ba6d4d0b0
commit
a2863e5158
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import React from 'react'
|
||||
import { Legend as LegendDesign } from '@freesewing/legend'
|
||||
import { Pattern } from '@freesewing/react/components/Pattern'
|
||||
import { i18n as pluginI18n } from '@freesewing/core-plugins'
|
||||
|
||||
export const Legend = ({ part = '' }) => {
|
||||
const settings = {
|
||||
|
@ -14,6 +15,7 @@ export const Legend = ({ part = '' }) => {
|
|||
const patternProps = {
|
||||
renderProps: pattern.getRenderProps(),
|
||||
logs: pattern.getLogs(),
|
||||
strings: pluginI18n.en,
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue