mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-05 10:35:13 +00:00
17 lines
406 B
Plaintext
17 lines
406 B
Plaintext
--TEST--
|
||
"format_currency" filter
|
||
--TEMPLATE--
|
||
{{ '1000000'|format_currency('EUR') }}
|
||
{{ '1000000'|format_currency('EUR', locale='de') }}
|
||
{{ '1000000'|format_currency('EUR', {fraction_digit: 2}) }}
|
||
{{ '12.345'|format_currency('EUR', {rounding_mode: 'floor'}) }}
|
||
{{ '125000'|format_currency('YEN') }}
|
||
--DATA--
|
||
return [];
|
||
--EXPECT--
|
||
€1,000,000.00
|
||
1.000.000,00 €
|
||
€1,000,000.00
|
||
€12.34
|
||
YEN 125,000.00
|