GetLanguagePackString
public struct GetLanguagePackString : Codable, Equatable, TDFunction
Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. This is an offline method. Can be called before authorization. Can be called synchronously
-
Undocumented
Declaration
Swift
public typealias Result = LanguagePackStringValue -
Path to the language pack database in which strings are stored
Declaration
Swift
public let languagePackDatabasePath: String -
Localization target to which the language pack belongs
Declaration
Swift
public let localizationTarget: String -
Language pack identifier
Declaration
Swift
public let languagePackId: String -
Language pack key of the string to be returned
Declaration
Swift
public let key: String -
Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. This is an offline method. Can be called before authorization. Can be called synchronously
Declaration
Swift
public init(languagePackDatabasePath: String, localizationTarget: String, languagePackId: String, key: String)Parameters
languagePackDatabasePathPath to the language pack database in which strings are stored
localizationTargetLocalization target to which the language pack belongs
languagePackIdLanguage pack identifier
keyLanguage pack key of the string to be returned
View on GitHub
Install in Dash
GetLanguagePackString Structure Reference