Add localization support

Co-authored-by: Xiang <xfqz86@163.com>
This commit is contained in:
世界andXiang committed 2024-12-15 21:36:07 +08:00
1 parent ba6f99bc34
commit ef08a1052b
24 files changed
+1794 -103

No files matched your search

@@ -0,0 +1,12 @@
import Foundation
import SwiftUI
public extension Bool {
func toString() -> String {
if self {
return String(localized: "true")
} else {
return String(localized: "false")
}
}
}