chore: import upstream snapshot with attribution
Build / Build and test (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:18:38 +08:00
commit 1d1286fadb
1468 changed files with 272754 additions and 0 deletions
@@ -0,0 +1,28 @@
import Foundation
public struct PluginLocalization: @unchecked Sendable {
public let bundle: Bundle
public let table: String?
public init(bundle: Bundle, table: String? = nil) {
self.bundle = bundle
self.table = table
}
public func string(_ key: String, defaultValue: String) -> String {
PluginRuntimeLocalization.string(
key,
defaultValue: defaultValue,
table: table,
bundle: bundle
)
}
public func format(_ key: String, defaultValue: String, _ arguments: CVarArg...) -> String {
String(
format: string(key, defaultValue: defaultValue),
locale: PluginRuntimeLocalization.locale,
arguments: arguments
)
}
}