Open migue74 opened 6 years ago
Hello, in PHP we can set the default settings for the number_format filter like this:
$twig->getExtension('core')->setNumberFormat(0, '.', ',');
Is it possible to do the same in twig.js? I want to set the decimal and thousands separator with the locale settings extracted from PHP function localeconv() to avoid doing it in hundreds of values.
localeconv()
Thanks!
No, this is not currently possible.
Reference in the TwigPHP docs
Hello, in PHP we can set the default settings for the number_format filter like this:
$twig->getExtension('core')->setNumberFormat(0, '.', ',');
Is it possible to do the same in twig.js? I want to set the decimal and thousands separator with the locale settings extracted from PHP function
localeconv()
to avoid doing it in hundreds of values.Thanks!