Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要能够检测我的用户正在查看的当前语言是否是像阿拉伯语这样的 RTL(从右到左)语言,所以我可以在我的页面中包含一个特定的 CSS 文件。
目前我只是根据 CultureInfo 对象的语言代码检测到这一点,但一定有更好的方法吗?
CultureInfo.TextInfo.IsRightToLeft