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
idUnique language pack identifier
baseLanguagePackIdIdentifier 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
nameLanguage name
nativeNameName of the language in that language
pluralCodeA 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
isOfficialTrue, if the language pack is official
isRtlTrue, if the language pack strings are RTL
isBetaTrue, if the language pack is a beta language pack
isInstalledTrue, if the language pack is installed by the current user
totalStringCountTotal number of non-deleted strings from the language pack
translatedStringCountTotal number of translated strings from the language pack
localStringCountTotal number of non-deleted strings from the language pack available locally
translationUrlLink to language translation interface; empty for custom local language packs
View on GitHub
Install in Dash
LanguagePackInfo Structure Reference