Skip to content

Commit

Permalink
right to left text align for urdu, kashimiri and sindhi
Browse files Browse the repository at this point in the history
  • Loading branch information
MrigankTarento committed Dec 13, 2023
1 parent 1318fa8 commit 1768b66
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ class SentenceCard extends React.Component {
<Typography
variant="subtitle1"
gutterBottom
style={{textAlign: shouldTypeRTL(this.props?.model?.source_language_code) ? "right" : "left" }}
onMouseUp={(event) => {
if (enableEditingSentence) {
this.getSelectionText(event);
Expand All @@ -559,6 +560,7 @@ class SentenceCard extends React.Component {
<Typography
variant="subtitle1"
gutterBottom
style={{textAlign: shouldTypeRTL(this.props?.model?.source_language_code) ? "right" : "left" }}
onMouseUp={(event) => {
if (enableEditingSentence) {
this.getSelectionText(event);
Expand All @@ -585,7 +587,7 @@ class SentenceCard extends React.Component {
);
return (
<div>
<Typography variant="subtitle1" gutterBottom>
<Typography variant="subtitle1" gutterBottom style={{textAlign: shouldTypeRTL(this.props?.model?.target_language_code) ? "right" : "left" }}>
{modified_tgt}
</Typography>
</div>
Expand All @@ -594,7 +596,7 @@ class SentenceCard extends React.Component {
return (
<div>
<Divider />
<Typography variant="subtitle1" gutterBottom>
<Typography variant="subtitle1" gutterBottom style={{textAlign: shouldTypeRTL(this.props?.model?.target_language_code) ? "right" : "left" }}>
{this.props.sentence.s0_tgt}
<br />
</Typography>
Expand All @@ -606,7 +608,7 @@ class SentenceCard extends React.Component {
return (
<div>
<Divider />
<Typography variant="subtitle1" gutterBottom>
<Typography variant="subtitle1" gutterBottom style={{textAlign: shouldTypeRTL(this.props?.model?.target_language_code) ? "right" : "left" }}>
{this.props.sentence.tgt}
<br />
</Typography>
Expand Down

0 comments on commit 1768b66

Please # to comment.