How can I check if the watch has an RTL-Language set? I tried the following but it didn't work.
Asked
Active
Viewed 72 times
1 Answers
0
func alignmentOfLanguage() -> NSTextAlignment {
if NSLocale.characterDirection(forLanguage: NSLocale.preferredLanguages[0]) == .rightToLeft {
return .right
}
return .left
}

SwiftiSwift
- 7,528
- 9
- 56
- 96
-
Code dumps without any explanation are rarely helpful. Stack Overflow is about learning, not providing snippets to blindly copy and paste. Please [edit] your question and explain how it works better than what the OP provided. See [answer]. – ChrisGPT was on strike Mar 18 '21 at 01:47