Type Aliases

The following type aliases are available globally.

  • Completion handler used when fetching translations from CDS

    Declaration

    Swift

    public typealias TXPullCompletionHandler = (TXTranslations, [Error]) -> Void
  • Structure that represents a translated string.

    Format: “string” : {The translated string}

    Declaration

    Swift

    public typealias TXStringInfo = [String : String]
  • Structure that represents translated strings with their respective string keys.

    Format: {string key} : {TXStringInfo}

    Declaration

    Swift

    public typealias TXLocaleStrings = [String : TXStringInfo]
  • Structure that represents all of the translated string of an app for the specified app locales.

    Format: {locale code} : {TXLocaleStrings}

    Declaration

    Swift

    public typealias TXTranslations = [String : TXLocaleStrings]