PEUI // Fix i18n.
This commit is contained in:
parent
2fb1b22270
commit
e3a775dfa5
|
@ -330,7 +330,7 @@ public enum PETerms {
|
|||
|
||||
public var localized: (String, String) {
|
||||
if self == .locAdd {
|
||||
return loc.contains("zh") ? ("添入", "") : loc.contains("ja") ? ("記入", "") : ("Add", "")
|
||||
return loc.prefix(2) == "zh" ? ("添入", "") : loc.prefix(2) == "ja" ? ("記入", "") : ("Add", "")
|
||||
}
|
||||
let rawArray = NSLocalizedString(self.rawValue, comment: "").components(separatedBy: " ")
|
||||
if rawArray.isEmpty { return ("N/A", "N/A") }
|
||||
|
|
Loading…
Reference in New Issue