LanguagePackInfo
public struct LanguagePackInfo : Codable, Equatable, FunctionResult
Contains information about a language pack
-
Unique language pack identifier
Declaration
Swift
public let id: String
-
Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs
Declaration
Swift
public let baseLanguagePackId: String
-
Language name
Declaration
Swift
public let name: String
-
Name of the language in that language
Declaration
Swift
public let nativeName: String
-
A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
Declaration
Swift
public let pluralCode: String
-
True, if the language pack is official
Declaration
Swift
public let isOfficial: Bool
-
True, if the language pack strings are RTL
Declaration
Swift
public let isRtl: Bool
-
True, if the language pack is a beta language pack
Declaration
Swift
public let isBeta: Bool
-
True, if the language pack is installed by the current user
Declaration
Swift
public let isInstalled: Bool
-
Total number of non-deleted strings from the language pack
Declaration
Swift
public let totalStringCount: Int32
-
Total number of translated strings from the language pack
Declaration
Swift
public let translatedStringCount: Int32
-
Total number of non-deleted strings from the language pack available locally
Declaration
Swift
public let localStringCount: Int32
-
Link to language translation interface; empty for custom local language packs
Declaration
Swift
public let translationUrl: String
-
init(id:baseLanguagePackId:name:nativeName:pluralCode:isOfficial:isRtl:isBeta:isInstalled:totalStringCount:translatedStringCount:localStringCount:translationUrl:)
Contains information about a language pack
Declaration
Swift
public init(id: String, baseLanguagePackId: String, name: String, nativeName: String, pluralCode: String, isOfficial: Bool, isRtl: Bool, isBeta: Bool, isInstalled: Bool, totalStringCount: Int32, translatedStringCount: Int32, localStringCount: Int32, translationUrl: String)
Parameters
id
Unique language pack identifier
baseLanguagePackId
Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs
name
Language name
nativeName
Name of the language in that language
pluralCode
A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
isOfficial
True, if the language pack is official
isRtl
True, if the language pack strings are RTL
isBeta
True, if the language pack is a beta language pack
isInstalled
True, if the language pack is installed by the current user
totalStringCount
Total number of non-deleted strings from the language pack
translatedStringCount
Total number of translated strings from the language pack
localStringCount
Total number of non-deleted strings from the language pack available locally
translationUrl
Link to language translation interface; empty for custom local language packs