TDKCandidates // Fix the .languageIdentifier attribute.
This commit is contained in:
parent
4f9e159c95
commit
c7623244ab
|
@ -161,12 +161,8 @@ public class CandidateCellData: Hashable {
|
|||
.foregroundColor: fontColorCandidate,
|
||||
]
|
||||
if #available(macOS 12, *) {
|
||||
if UserDefaults.standard.bool(
|
||||
forKey: UserDef.kEnableSwiftUIForTDKCandidates.rawValue
|
||||
) {
|
||||
attrCandidate[.languageIdentifier] = self.locale as AnyObject
|
||||
}
|
||||
}
|
||||
let delta: String = (isMatrix && displayedText.count < 2) ? " " : ""
|
||||
let attrStrCandidate = NSAttributedString(
|
||||
string: displayedText + delta, attributes: attrCandidate
|
||||
|
|
Loading…
Reference in New Issue