MASDKLocale
public struct MASDKLocale
This structure provides different enums for localizable strings related to Mini App SDK
-
This enum provides MiniApp UI and error related strings keys
See moreDeclaration
Swift
public enum LocalizableKey : String
-
Method to retrieve a localizable from its key
Declaration
Swift
public static func localize(bundle path: String? = nil, _ key: String) -> String
Parameters
path
the optional path to the bundle where the strings file is located
key
the key that defines the localizable in the strings file
Return Value
-
Method to retrieve a MiniApp SDK localizable from its key
Declaration
Swift
public static func localize(bundle path: String? = nil, _ key: LocalizableKey) -> String
Parameters
path
the optional path to the bundle where the strings file is located
key
a LocalizableKey that defines the localizable in the strings file
Return Value