Skip to main content

langPackLanguage

Identifies a localization pack

type tg.LangPackLanguage struct { /* ... */ }

Fields​

NameTypeRequiredDescription
Officialbool—Whether the language pack is official
Rtlbool—Is this a localization pack for an RTL language
Betabool—Is this a beta localization pack?
NamestringyesLanguage name
NativeNamestringyesLanguage name in the language itself
LangCodestringyesLanguage code (pack identifier)
BaseLangCodestring—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
PluralCodestringyesA 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
StringsCountintyesTotal number of non-deleted strings from the language pack
TranslatedCountintyesTotal number of translated strings from the language pack
TranslationsURLstringyesLink to language translation interface; empty for custom local language packs

Returned by​

References​