LangPackStringPluralized
- class pyrogram.raw.types.LangPackStringPluralized
A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info
Constructor of
LangPackString.- Details:
Layer:
223ID:
6C47AC9F
- Parameters:
key (
str) – Localization keyother_value (
str) – Default valuezero_value (
str, optional) – Value for zero objectsone_value (
str, optional) – Value for one objecttwo_value (
str, optional) – Value for two objectsfew_value (
str, optional) – Value for a few objectsmany_value (
str, optional) – Value for many objects
- Functions:
This object can be returned by 1 function.
Get strings from a language pack
TL Schema
langPackStringPluralized#6c47ac9f
flags:#
key:string
zero_value:flags.0?string
one_value:flags.1?string
two_value:flags.2?string
few_value:flags.3?string
many_value:flags.4?string
other_value:string
= LangPackString
Parameter Tree
LangPackStringPluralized
├── key →
string├── zero_value →
string (optional)├── one_value →
string (optional)├── two_value →
string (optional)├── few_value →
string (optional)├── many_value →
string (optional)└── other_value →
stringExample
LangPackStringPluralized(
key="text",
other_value="text",
)