Skip to content

Commit

Permalink
used locale instead of defaultLocale to get current locale
Browse files Browse the repository at this point in the history
  • Loading branch information
ritesh-pandey committed Sep 2, 2015
1 parent cc851b6 commit 2021de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/I18n/Number.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2021de1

Please sign in to comment.