Skip to content
Permalink
Browse files

used locale instead of defaultLocale to get current locale

  • Loading branch information...
ritesh-pandey committed Sep 2, 2015
1 parent cc851b6 commit 2021de1d747ec18d898014cc9248080af167b28e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/I18n/Number.php
@@ -322,7 +322,7 @@ public static function formatter($options = [])
*/
public static function ordinal($value)
{
$locale = Locale::getDefault();
$locale = Locale::locale();
$formatter = new NumberFormatter($locale, NumberFormatter::ORDINAL);
return $formatter->format($value);
}

0 comments on commit 2021de1

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