localization - Find the flow direction from CurrentCulture in c# -
hi there way flowdirection current culture.
i have set property
public string flowdirection { { return // should return flow direction using thread.currentthread.currentuiculture. } }
i dont want hardcode like
if (currentlanguage.tolower().startswith("ar")) { return flowdirection.righttoleft; } else { return flowdirection.lefttoright; }
use this: cultureinfo.textinfo.isrighttoleft
taken related question
Comments
Post a Comment