Raw.LangPackLanguage

Raw.LangPackLanguage

Identifies a localization pack

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;
export namespace Raw {
  export class LangPackLanguage {
    constructor(params: {
      official?: boolean;
      rtl?: boolean;
      beta?: boolean;
      name: string;
      nativeName: string;
      langCode: string;
      baseLangCode?: string;
      pluralCode: string;
      stringsCount: number;
      translatedCount: number;
      translationsUrl: string;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xeeca5ce3

Property

  • official : boolean or undefined

    Whether the language pack is official

  • rtl : boolean or undefined

    Is this a localization pack for an rtl language

  • beta : boolean or undefined

    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 : string or undefined

    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/languagePluralRules.html for more info

  • stringsCount : number

    Total number of non-deleted strings from the language pack

  • translatedCount : number

    Total number of translated strings from the language pack

  • translationsUrl : string

    Link to language translation interface; empty for custom local language packs