1
0
Fork 0

add cutting instructions to title. ensure translation on drafts

This commit is contained in:
Enoch Riese 2023-03-09 08:59:03 -06:00
parent 6f6b3a2b8a
commit bf51065cc8
11 changed files with 88 additions and 66 deletions

View file

@ -53,7 +53,7 @@ const XrayText = (props) => (
)
const TextSpans = ({ point, className = '', style = {}, onClick = null }) => {
const { t } = useTranslation(['app'])
const { t } = useTranslation(['plugin'])
let text = []
// Handle translation
let translated = ''
@ -117,7 +117,7 @@ const XrayTextOnPath = (props) => (
)
export const TextOnPath = (props) => {
const { t } = useTranslation(['app'])
const { t } = useTranslation(['plugin'])
// Handle translation (and spaces)
let translated = ''
for (let string of props.path.attributes.getAsArray('data-text')) {