Layer 220
constructor
langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Official flags.0?true Whether the language pack is official
Rtl flags.2?true Is this a localization pack for an RTL language
Beta flags.3?true Is this a beta localization pack?
Name string Language name
NativeName string Language name in the language itself
LangCode string Language code (pack identifier)
BaseLangCode flags.1?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
PluralCode 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
StringsCount int Total number of non-deleted strings from the language pack
TranslatedCount int Total number of translated strings from the language pack
TranslationsUrl string Link to language translation interface; empty for custom local language packs

Gogram Example

// Creating LangPackLanguage constructor
obj := &tg.LangPackLanguage{
    Name: "...",
    NativeName: "...",
    LangCode: "...",
    PluralCode: "...",
    StringsCount: 0,
    TranslatedCount: 0,
    // ... more required fields

    // Optional fields:
    // Official: true,
    // Rtl: true,
    // Beta: true,
    // BaseLangCode: "...",
}