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
  • key

    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

    languagePackDatabasePath

    Path to the language pack database in which strings are stored

    localizationTarget

    Localization target to which the language pack belongs

    languagePackId

    Language pack identifier

    key

    Language pack key of the string to be returned