Layer 220
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
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Key | string | Localization key |
| ZeroValue | flags.0?string | Value for zero objects |
| OneValue | flags.1?string | Value for one object |
| TwoValue | flags.2?string | Value for two objects |
| FewValue | flags.3?string | Value for a few objects |
| ManyValue | flags.4?string | Value for many objects |
| OtherValue | string | Default value |
Returns
LangPackStringGogram Example
// Creating LangPackStringPluralized constructor obj := &tg.LangPackStringPluralized{ Key: "...", OtherValue: "...", // Optional fields: // ZeroValue: "...", // OneValue: "...", // TwoValue: "...", // FewValue: "...", // ... more optional fields }