Open hishamco opened 5 years ago
Ramadhan Kareem Salah
Seems your question related to RTL languages I already implemented this in some OSS, luckly we started a discussion in one of the OSS, please check this https://github.com/oqtane/oqtane.framework/discussions/1266
Salam Brother Hisham, Somehow I managed the direction right to left by using this code in _Layout: @using System.Globalization @if (CultureInfo.CurrentCulture.TextInfo.IsRightToLeft) {
<link href="~/lib/twitter-bootstrap/css/bootstrap.rtl.min.css"
rel="stylesheet" /> }
but the problem I am facing now is that I have some dropdown list on the page and each one read from a different table and each table has two columns English & Arabic. For example, I have one table for Car Models : 1 Ford فورد 2 Honda هوندا 3 Toyota تويوتا
my question is how to switch between Arabic and English in the dropdown list?
Thanks & Best Regards
On Mon, Apr 26, 2021 at 4:39 PM Hisham Bin Ateya @.***> wrote:
Ramadhan Kareem Salah
Seems your question related to RTL languages I already implemented this in some OSS, luckly we started a discussion in one of the OSS, please check this oqtane/oqtane.framework#1266 https://github.com/oqtane/oqtane.framework/discussions/1266
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hishamco/hishambinateya.com/issues/57#issuecomment-826843183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6RI43ZOC2IMBJ4JRMBVZTTKVUIHANCNFSM4GHSVV3Q .
-- Good friends are hard to find, harder to leave, and impossible to forget الأصدقاء الحقيقون يصعب إيجادهم ، يصعب تركهم ، ويستحيل نسيانهم
The simple thing you can do is to get the current culture if it's Arabic bound the dropdown to the Arabic Table otherwise English
Is there any example code please 🥺 I am a beginar to .Net Core.
Thanks 😊
On Mon, Apr 26, 2021, 9:25 PM Hisham Bin Ateya @.***> wrote:
The simple thing you can do is to get the current culture if it's Arabic bound the dropdown to the Arabic Table otherwise English
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hishamco/hishambinateya.com/issues/57#issuecomment-827052488, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6RI45RXAK7CRQR3AAK2ZTTKWVZHANCNFSM4GHSVV3Q .
Ramadan Mubarak to you I implemented the instructions in this great article: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-5.0
But it misses one more thing: in the Arabic language how we make the page "dir=rtl"
Thanks & Best Regards.