{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9827","labels_url":"https://api.github.com/repos/laravel/framework/issues/9827/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9827/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9827/events","html_url":"https://github.com/laravel/framework/issues/9827","id":98698318,"number":9827,"title":"Offer localized number formatter","user":{"login":"ameenross","id":859737,"avatar_url":"https://avatars.githubusercontent.com/u/859737?v=3","gravatar_id":"","url":"https://api.github.com/users/ameenross","html_url":"https://github.com/ameenross","followers_url":"https://api.github.com/users/ameenross/followers","following_url":"https://api.github.com/users/ameenross/following{/other_user}","gists_url":"https://api.github.com/users/ameenross/gists{/gist_id}","starred_url":"https://api.github.com/users/ameenross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ameenross/subscriptions","organizations_url":"https://api.github.com/users/ameenross/orgs","repos_url":"https://api.github.com/users/ameenross/repos","events_url":"https://api.github.com/users/ameenross/events{/privacy}","received_events_url":"https://api.github.com/users/ameenross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T08:44:03Z","updated_at":"2015-08-03T08:44:03Z","closed_at":null,"body":"Instead of having to do this:\r\n\r\n```php\r\nNumberFormatter::create(App::getLocale(), NumberFormatter::DECIMAL)->format($this->weight);\r\n```\r\n\r\nLaravel could offer a few API functions that deal with creating a number formatter based on the currently used locale, saving code for the developer and potentially offering better performance as well. You could store the number formatter on the `Lang` object for example, until `App::setLocale()` is called, invalidating the formatter."}}