fix(react): Untranslated strings also need a trailing space (#349)
The bug appears in part title cutlist instructions. The bug behavior exists only in the React component. It does not exist with the core SVG renderer. Before:  After:  Edit: (Added, in case the keyword needs to be in the PR description/first comment, not just in a subsequent comment): Fixes #331 Co-authored-by: Benjamin Fan <ben-git@swinglonga.com> Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/349 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org> Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
This commit is contained in:
parent
1896eba914
commit
74ba6c2329
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ export const translateStrings = (list, translations = {}) => {
|
|||
else if (string) {
|
||||
if (translations[string]) {
|
||||
translated += `${translations[string]}`.replace(/"/g, '"') + ' '
|
||||
} else translated += `${string}`
|
||||
} else translated += `${string}` + ' '
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue