1
0
Fork 0

feat(lab): Respect language setting

This commit is contained in:
Joost De Cock 2022-01-27 13:57:54 +01:00
parent 17a788488c
commit c619662a31
3 changed files with 3 additions and 6 deletions

View file

@ -3,7 +3,7 @@ const TextOnPath = (props) => {
// Handle translation
let translated = ''
for (let string of props.path.attributes.getAsArray('data-text')) {
translated += props.app.t(string).replace(/"/g, '"') + ' '
translated += props.app.t(string, false, props.language).replace(/"/g, '"') + ' '
}
const textPathProps = {
xlinkHref: '#' + props.pathId,