{"action":"created","issue":{"url":"https://api.github.com/repos/malcommac/SwiftDate/issues/65","labels_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/65/comments","events_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/65/events","html_url":"https://github.com/malcommac/SwiftDate/issues/65","id":112590525,"number":65,"title":"the result of \"toRelativeString\" can be returned  in chinese?","user":{"login":"chelsh","id":10752360,"avatar_url":"https://avatars.githubusercontent.com/u/10752360?v=3","gravatar_id":"","url":"https://api.github.com/users/chelsh","html_url":"https://github.com/chelsh","followers_url":"https://api.github.com/users/chelsh/followers","following_url":"https://api.github.com/users/chelsh/following{/other_user}","gists_url":"https://api.github.com/users/chelsh/gists{/gist_id}","starred_url":"https://api.github.com/users/chelsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chelsh/subscriptions","organizations_url":"https://api.github.com/users/chelsh/orgs","repos_url":"https://api.github.com/users/chelsh/repos","events_url":"https://api.github.com/users/chelsh/events{/privacy}","received_events_url":"https://api.github.com/users/chelsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-21T13:40:53Z","updated_at":"2015-11-30T17:24:59Z","closed_at":null,"body":"```\r\nlet string = date.toRelativeString(fromDate: nil, abbreviated: false, maxUnits:2)\r\nThis example tell to SwiftDate to return a relative representation of the date by comparing it to the current date (nil in fromDate means NSDate()) without using an abbreviated form (use \"seconds\" not \"secs\", or \"years\" not \"ys\") and with a max number of units of 2 (this is used to get the approximation units to print, ie \"2 hours, 30 minutes\" are 2 units, \"2 hours, 30 minutes, 5 seconds\" are 3 units).\r\n\r\n```\r\n\r\nthe result of \"toRelativeString\" can be returned  in chinese? example: 2分钟"},"comment":{"url":"https://api.github.com/repos/malcommac/SwiftDate/issues/comments/160695933","html_url":"https://github.com/malcommac/SwiftDate/issues/65#issuecomment-160695933","issue_url":"https://api.github.com/repos/malcommac/SwiftDate/issues/65","id":160695933,"user":{"login":"Hout","id":641321,"avatar_url":"https://avatars.githubusercontent.com/u/641321?v=3","gravatar_id":"","url":"https://api.github.com/users/Hout","html_url":"https://github.com/Hout","followers_url":"https://api.github.com/users/Hout/followers","following_url":"https://api.github.com/users/Hout/following{/other_user}","gists_url":"https://api.github.com/users/Hout/gists{/gist_id}","starred_url":"https://api.github.com/users/Hout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hout/subscriptions","organizations_url":"https://api.github.com/users/Hout/orgs","repos_url":"https://api.github.com/users/Hout/repos","events_url":"https://api.github.com/users/Hout/events{/privacy}","received_events_url":"https://api.github.com/users/Hout/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T17:24:59Z","updated_at":"2015-11-30T17:24:59Z","body":"No need for proprietary code, check the [docs](https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSDateComponentsFormatter_class/index.html#//apple_ref/occ/clm/NSDateComponentsFormatter/localizedStringFromDateComponents:unitsStyle:)"}}