class MessageSelector (View source)
mixed | choose(string $line, int $number, string $locale) Select a proper translation string based on the given number. | |
int | getPluralIndex(string $locale, int $number) Get the index to use for pluralization. |
Select a proper translation string based on the given number.
Get the index to use for pluralization.
The plural rules are derived from code of the Zend Framework (2010-09-25), which is subject to the new BSD license (http://framework.zend.com/license/new-bsd) Copyright (c) 2005-2010 - Zend Technologies USA Inc. (http://www.zend.com)
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Translation/MessageSelector.html