Link Search Menu Expand Document

Constructor: langPackStringPluralized

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
keystringYesLocalization key
zero_valuestringOptionalValue for zero objects
one_valuestringOptionalValue for one object
two_valuestringOptionalValue for two objects
few_valuestringOptionalValue for a few objects
many_valuestringOptionalValue for many objects
other_valuestringYesDefault value

Type: LangPackString

Example:

$langPackStringPluralized = ['_' => 'langPackStringPluralized', 'key' => 'string', 'zero_value' => 'string', 'one_value' => 'string', 'two_value' => 'string', 'few_value' => 'string', 'many_value' => 'string', 'other_value' => 'string'];