Number ViewHelper for TYPO3 with automatic configuration
Description: This ViewHelper uses the given locale in the site configuration
Requirements
- TYPO3 >= v9
- Configured site management
- PHP module
intl
Additional flag
removeDecimalsIfIntegerValue
- If set, it removes the decimals when the value is a number without decimal values
You are missing a backup and restore of the locale here, currently this viewhelper is not side-effect free due to this.
Also maybe this could be achieved with
NumberFormatter
instead which would allow retrieving the info without temporary locale switch.