Skip to content
Permalink
Browse files

used I18n::locale() to determine current locale

  • Loading branch information...
ritesh-pandey committed Sep 2, 2015
1 parent 7cc2dc4 commit 971ebf6de6f8026a6bc3586bf3ada5eac600642d
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/I18n/Number.php
@@ -14,6 +14,7 @@
*/
namespace Cake\I18n;
use Cake\I18n\I18n;
use Locale;
use NumberFormatter;
@@ -322,7 +323,7 @@ public static function formatter($options = [])
*/
public static function ordinal($value)
{
$locale = Locale::locale();
$locale = I18n::locale();
$formatter = new NumberFormatter($locale, NumberFormatter::ORDINAL);
return $formatter->format($value);
}

0 comments on commit 971ebf6

Please sign in to comment.
You can’t perform that action at this time.