diff --git a/app/Controller.inc b/app/Controller.inc index 42881662..5731aeed 100644 --- a/app/Controller.inc +++ b/app/Controller.inc @@ -67,7 +67,7 @@ // Create linker $this->linker = new \nre\core\Linker($this->request); - // Create date and time formatter + // Create date and time and number formatter $this->set('dateFormatter', new \IntlDateFormatter( \nre\core\Config::getDefault('locale'), \IntlDateFormatter::MEDIUM, @@ -80,6 +80,10 @@ \IntlDateFormatter::SHORT, NULL )); + $this->set('numberFormatter', new \NumberFormatter( + \nre\core\Config::getDefault('locale'), + \NumberFormatter::DEFAULT_STYLE + )); }