src/i18n/Messages/YamlWriter.php
protected function getPluralForm($value)
    {
        // Strip non-plural keys away
        if (is_array($value)) {
            $forms = i18n::config()->uninherited('plurals');
            $forms = array_combine($forms, $forms);
            return array_intersect_key($value, $forms);
        }

        // Parse from string
        // Note: Risky outside of 'en' locale.
        return i18n::parse_plurals($value);
    }
protected function getPluralForm($value)
    {
        // Strip non-plural keys away
        if (is_array($value)) {
            $forms = i18n::config()->uninherited('plurals');
            $forms = array_combine($forms, $forms);
            return array_intersect_key($value, $forms);
        }

        // Parse from string
        // Note: Risky outside of 'en' locale.
        return i18n::parse_plurals($value);
    }
protected function getPluralForm ( $ value ) { // Strip non-plural keys away if ( is_array ( $ value ) ) { $ forms = i18n :: config ( ) -> uninherited ( 'plurals' ) ; $ forms = array_combine ( $ forms , $ forms ) ; return array_intersect_key ( $ value , $ forms ) ; } // Parse from string // Note: Risky outside of 'en' locale. return i18n :: parse_plurals ( $ value ) ; }
Get array-plural form for any value

@param array|string $value
@return array List of plural forms, or empty array if not plural
Get array - plural form for any value