LangPackLanguage
- class pyrogram.raw.types.LangPackLanguage
Identifies a localization pack
Constructor of
LangPackLanguage.- Details:
Layer:
223ID:
EECA5CE3
- Parameters:
name (
str) – Language namenative_name (
str) – Language name in the language itselflang_code (
str) – Language code (pack identifier)plural_code (
str) – 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 infostrings_count (
int32-bit) – Total number of non-deleted strings from the language packtranslated_count (
int32-bit) – Total number of translated strings from the language packtranslations_url (
str) – Link to language translation interface; empty for custom local language packsofficial (
bool, optional) – Whether the language pack is officialrtl (
bool, optional) – Is this a localization pack for an RTL languagebeta (
bool, optional) – Is this a beta localization pack?base_lang_code (
str, optional) – 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
- Functions:
This object can be returned by 2 functions.
Get information about all languages in a localization pack
Get information about a language in a localization pack
TL Schema
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
Parameter Tree
true (optional)true (optional)true (optional)stringstringstringstring (optional)stringintintstringExample
LangPackLanguage(
name="text",
native_name="text",
lang_code="text",
plural_code="text",
strings_count=0,
translated_count=0,
translations_url="text",
)