Lines Matching refs:locale
42 …nvironment $env, $date, $dateFormat = 'medium', $timeFormat = 'medium', $locale = null, $timezone … argument
56 $locale,
68 $locale,
79 function twig_localized_number_filter($number, $style = 'decimal', $type = 'default', $locale = nul… argument
89 $formatter = twig_get_number_formatter($locale, $style);
98 function twig_localized_currency_filter($number, $currency = null, $locale = null) argument
100 $formatter = twig_get_number_formatter($locale, 'currency');
108 * @param string $locale Locale in which the number would be formatted
113 function twig_get_number_formatter($locale, $style) argument
117 $locale = null !== $locale ? $locale : Locale::getDefault();
119 if ($formatter && $formatter->getLocale() === $locale && $currentStyle === $style) {
141 $formatter = NumberFormatter::create($locale, $styleValues[$style]);