Page 1 of 1

arabic language should align as right to left

Posted: Wed Feb 17, 2016 5:15 am
by fkgt

hi i am using arabic and english as multi language. but arabic language starts from right to left and in all the way it is coming as english left to right how can i align my arabic language as right to left . what should i do ?

kindly help me ... thanks in advance


Re: arabic language should align as right to left

Posted: Wed Feb 17, 2016 11:33 am
by motfs

You need to customize the _layout.cshtml (C#) to detect the language ID to add "dir=rtl" for body tag, e.g.:

@if (gsLanguage == "<arabiclanguage>") { // Replace <arabiclanguage> with actual language ID
@:<body dir=rtl>
} else {
@:<body>
}