Skip to content

Commit

Permalink
fix(hebrew translation): apply stripping vowels for hebrew translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
YishaiGlasner committed Nov 11, 2024
1 parent d35b171 commit db543b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions static/js/TextRange.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,12 @@ class TextRange extends Component {
);
}
}
segment.he = strip_vowels_re ? segment.he.replace(strip_vowels_re, "") : segment.he;
segment.he = strip_punctuation_re ? segment.he.replace(strip_punctuation_re, "") : segment.he;
for (const pattern of [strip_vowels_re, strip_punctuation_re]) {
if (pattern) {
segment.he = segment.he.replace(pattern, "");
segment.en = segment.en?.replace(pattern, "");
}
}

return (
<span className="rangeSpan" key={i + segment.ref}>
Expand Down

0 comments on commit db543b3

Please sign in to comment.