you can simplify it as ``twig_get_number_formatter($locale, $style)`` as ``twig_get_number_formatter`` already handles the default