arabic language should align as right to left

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
fkgt
User
Posts: 1

arabic language should align as right to left

Post 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


motfs
User
Posts: 258

Post 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>
}


Post Reply