MadelineProtoDocs/old_docs/API_docs_v89/constructors/langPackLanguage.md

1.6 KiB

title description image
langPackLanguage Lang pack language https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: langPackLanguage

Back to constructors index

Lang pack language

Attributes:

Name Type Required Description
official Bool Optional Official?
rtl Bool Optional Rtl?
name string Yes Name
native_name string Yes Native name
lang_code string Yes Lang code
base_lang_code string Optional Base lang code
plural_code string Yes Plural code
strings_count int Yes Strings count
translated_count int Yes Translated count
translations_url string Yes Translations URL

Type: LangPackLanguage

Example:

$langPackLanguage = ['_' => 'langPackLanguage', 'official' => Bool, 'rtl' => Bool, 'name' => 'string', 'native_name' => 'string', 'lang_code' => 'string', 'base_lang_code' => 'string', 'plural_code' => 'string', 'strings_count' => int, 'translated_count' => int, 'translations_url' => 'string'];

Or, if you're into Lua:

langPackLanguage={_='langPackLanguage', official=Bool, rtl=Bool, name='string', native_name='string', lang_code='string', base_lang_code='string', plural_code='string', strings_count=int, translated_count=int, translations_url='string'}