{"action":"created","comment":{"url":"https://api.github.com/repos/koajs/locales/pulls/comments/56284482","id":56284482,"diff_hunk":"@@ -57,6 +57,7 @@ Patch locales functions to koa app.\n   - {String} defaultLocale: default locale. Optional, default is `en-US`.\n   - {String} queryField: locale field name on query. Optional, default is `locale`.\n   - {String} cookieField: locale field name on cookie. Optional, default is `locale`.\n+  - {Object} cookieFieldMap: locale cookie value map. Optional, default is {}.","path":"README.md","position":4,"original_position":4,"commit_id":"ebf2624d14967f6e6f9bc52d36e56741a823efde","original_commit_id":"b1be570b1d3678801ae0b7ea9f71c9eda56fc2cc","user":{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"body":"meaning `localeAlias`?","created_at":"2016-03-16T05:46:24Z","updated_at":"2016-03-16T05:46:24Z","html_url":"https://github.com/koajs/locales/pull/19#discussion_r56284482","pull_request_url":"https://api.github.com/repos/koajs/locales/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/koajs/locales/pulls/comments/56284482"},"html":{"href":"https://github.com/koajs/locales/pull/19#discussion_r56284482"},"pull_request":{"href":"https://api.github.com/repos/koajs/locales/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/koajs/locales/pulls/19","id":63005395,"html_url":"https://github.com/koajs/locales/pull/19","diff_url":"https://github.com/koajs/locales/pull/19.diff","patch_url":"https://github.com/koajs/locales/pull/19.patch","issue_url":"https://api.github.com/repos/koajs/locales/issues/19","number":19,"state":"open","locked":false,"title":"cookie field map","user":{"login":"harbin1053020115","id":2869750,"avatar_url":"https://avatars.githubusercontent.com/u/2869750?v=3","gravatar_id":"","url":"https://api.github.com/users/harbin1053020115","html_url":"https://github.com/harbin1053020115","followers_url":"https://api.github.com/users/harbin1053020115/followers","following_url":"https://api.github.com/users/harbin1053020115/following{/other_user}","gists_url":"https://api.github.com/users/harbin1053020115/gists{/gist_id}","starred_url":"https://api.github.com/users/harbin1053020115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harbin1053020115/subscriptions","organizations_url":"https://api.github.com/users/harbin1053020115/orgs","repos_url":"https://api.github.com/users/harbin1053020115/repos","events_url":"https://api.github.com/users/harbin1053020115/events{/privacy}","received_events_url":"https://api.github.com/users/harbin1053020115/received_events","type":"User","site_admin":false},"body":"支持 cookie field 值的 map 转换。\r\n业务场景：有些业务系统没有按照语言规范种了 cookie，比如中文：'zh-cn'；英文：'en'；koa-locals目前无法将这些值进行转换，找到对应的 resource","created_at":"2016-03-16T02:19:32Z","updated_at":"2016-03-16T05:46:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3269c0c33f8a983590ff67ff4f91d4d6a94063d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/koajs/locales/pulls/19/commits","review_comments_url":"https://api.github.com/repos/koajs/locales/pulls/19/comments","review_comment_url":"https://api.github.com/repos/koajs/locales/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koajs/locales/issues/19/comments","statuses_url":"https://api.github.com/repos/koajs/locales/statuses/ebf2624d14967f6e6f9bc52d36e56741a823efde","head":{"label":"harbin1053020115:cookieFieldMap","ref":"cookieFieldMap","sha":"ebf2624d14967f6e6f9bc52d36e56741a823efde","user":{"login":"harbin1053020115","id":2869750,"avatar_url":"https://avatars.githubusercontent.com/u/2869750?v=3","gravatar_id":"","url":"https://api.github.com/users/harbin1053020115","html_url":"https://github.com/harbin1053020115","followers_url":"https://api.github.com/users/harbin1053020115/followers","following_url":"https://api.github.com/users/harbin1053020115/following{/other_user}","gists_url":"https://api.github.com/users/harbin1053020115/gists{/gist_id}","starred_url":"https://api.github.com/users/harbin1053020115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harbin1053020115/subscriptions","organizations_url":"https://api.github.com/users/harbin1053020115/orgs","repos_url":"https://api.github.com/users/harbin1053020115/repos","events_url":"https://api.github.com/users/harbin1053020115/events{/privacy}","received_events_url":"https://api.github.com/users/harbin1053020115/received_events","type":"User","site_admin":false},"repo":{"id":48408494,"name":"locales","full_name":"harbin1053020115/locales","owner":{"login":"harbin1053020115","id":2869750,"avatar_url":"https://avatars.githubusercontent.com/u/2869750?v=3","gravatar_id":"","url":"https://api.github.com/users/harbin1053020115","html_url":"https://github.com/harbin1053020115","followers_url":"https://api.github.com/users/harbin1053020115/followers","following_url":"https://api.github.com/users/harbin1053020115/following{/other_user}","gists_url":"https://api.github.com/users/harbin1053020115/gists{/gist_id}","starred_url":"https://api.github.com/users/harbin1053020115/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harbin1053020115/subscriptions","organizations_url":"https://api.github.com/users/harbin1053020115/orgs","repos_url":"https://api.github.com/users/harbin1053020115/repos","events_url":"https://api.github.com/users/harbin1053020115/events{/privacy}","received_events_url":"https://api.github.com/users/harbin1053020115/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harbin1053020115/locales","description":"koa locales, i18n solution for koa","fork":true,"url":"https://api.github.com/repos/harbin1053020115/locales","forks_url":"https://api.github.com/repos/harbin1053020115/locales/forks","keys_url":"https://api.github.com/repos/harbin1053020115/locales/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harbin1053020115/locales/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harbin1053020115/locales/teams","hooks_url":"https://api.github.com/repos/harbin1053020115/locales/hooks","issue_events_url":"https://api.github.com/repos/harbin1053020115/locales/issues/events{/number}","events_url":"https://api.github.com/repos/harbin1053020115/locales/events","assignees_url":"https://api.github.com/repos/harbin1053020115/locales/assignees{/user}","branches_url":"https://api.github.com/repos/harbin1053020115/locales/branches{/branch}","tags_url":"https://api.github.com/repos/harbin1053020115/locales/tags","blobs_url":"https://api.github.com/repos/harbin1053020115/locales/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harbin1053020115/locales/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harbin1053020115/locales/git/refs{/sha}","trees_url":"https://api.github.com/repos/harbin1053020115/locales/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harbin1053020115/locales/statuses/{sha}","languages_url":"https://api.github.com/repos/harbin1053020115/locales/languages","stargazers_url":"https://api.github.com/repos/harbin1053020115/locales/stargazers","contributors_url":"https://api.github.com/repos/harbin1053020115/locales/contributors","subscribers_url":"https://api.github.com/repos/harbin1053020115/locales/subscribers","subscription_url":"https://api.github.com/repos/harbin1053020115/locales/subscription","commits_url":"https://api.github.com/repos/harbin1053020115/locales/commits{/sha}","git_commits_url":"https://api.github.com/repos/harbin1053020115/locales/git/commits{/sha}","comments_url":"https://api.github.com/repos/harbin1053020115/locales/comments{/number}","issue_comment_url":"https://api.github.com/repos/harbin1053020115/locales/issues/comments{/number}","contents_url":"https://api.github.com/repos/harbin1053020115/locales/contents/{+path}","compare_url":"https://api.github.com/repos/harbin1053020115/locales/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harbin1053020115/locales/merges","archive_url":"https://api.github.com/repos/harbin1053020115/locales/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harbin1053020115/locales/downloads","issues_url":"https://api.github.com/repos/harbin1053020115/locales/issues{/number}","pulls_url":"https://api.github.com/repos/harbin1053020115/locales/pulls{/number}","milestones_url":"https://api.github.com/repos/harbin1053020115/locales/milestones{/number}","notifications_url":"https://api.github.com/repos/harbin1053020115/locales/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harbin1053020115/locales/labels{/name}","releases_url":"https://api.github.com/repos/harbin1053020115/locales/releases{/id}","deployments_url":"https://api.github.com/repos/harbin1053020115/locales/deployments","created_at":"2015-12-22T03:34:36Z","updated_at":"2015-12-22T03:34:37Z","pushed_at":"2016-03-16T05:45:57Z","git_url":"git://github.com/harbin1053020115/locales.git","ssh_url":"git@github.com:harbin1053020115/locales.git","clone_url":"https://github.com/harbin1053020115/locales.git","svn_url":"https://github.com/harbin1053020115/locales","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"koajs:master","ref":"master","sha":"b5c5c2e47a6fb43036ec01e42ce391d5c6d4f34e","user":{"login":"koajs","id":5055057,"avatar_url":"https://avatars.githubusercontent.com/u/5055057?v=3","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"repo":{"id":35725924,"name":"locales","full_name":"koajs/locales","owner":{"login":"koajs","id":5055057,"avatar_url":"https://avatars.githubusercontent.com/u/5055057?v=3","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koajs/locales","description":"koa locales, i18n solution for koa","fork":false,"url":"https://api.github.com/repos/koajs/locales","forks_url":"https://api.github.com/repos/koajs/locales/forks","keys_url":"https://api.github.com/repos/koajs/locales/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koajs/locales/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koajs/locales/teams","hooks_url":"https://api.github.com/repos/koajs/locales/hooks","issue_events_url":"https://api.github.com/repos/koajs/locales/issues/events{/number}","events_url":"https://api.github.com/repos/koajs/locales/events","assignees_url":"https://api.github.com/repos/koajs/locales/assignees{/user}","branches_url":"https://api.github.com/repos/koajs/locales/branches{/branch}","tags_url":"https://api.github.com/repos/koajs/locales/tags","blobs_url":"https://api.github.com/repos/koajs/locales/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koajs/locales/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koajs/locales/git/refs{/sha}","trees_url":"https://api.github.com/repos/koajs/locales/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koajs/locales/statuses/{sha}","languages_url":"https://api.github.com/repos/koajs/locales/languages","stargazers_url":"https://api.github.com/repos/koajs/locales/stargazers","contributors_url":"https://api.github.com/repos/koajs/locales/contributors","subscribers_url":"https://api.github.com/repos/koajs/locales/subscribers","subscription_url":"https://api.github.com/repos/koajs/locales/subscription","commits_url":"https://api.github.com/repos/koajs/locales/commits{/sha}","git_commits_url":"https://api.github.com/repos/koajs/locales/git/commits{/sha}","comments_url":"https://api.github.com/repos/koajs/locales/comments{/number}","issue_comment_url":"https://api.github.com/repos/koajs/locales/issues/comments{/number}","contents_url":"https://api.github.com/repos/koajs/locales/contents/{+path}","compare_url":"https://api.github.com/repos/koajs/locales/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koajs/locales/merges","archive_url":"https://api.github.com/repos/koajs/locales/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koajs/locales/downloads","issues_url":"https://api.github.com/repos/koajs/locales/issues{/number}","pulls_url":"https://api.github.com/repos/koajs/locales/pulls{/number}","milestones_url":"https://api.github.com/repos/koajs/locales/milestones{/number}","notifications_url":"https://api.github.com/repos/koajs/locales/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koajs/locales/labels{/name}","releases_url":"https://api.github.com/repos/koajs/locales/releases{/id}","deployments_url":"https://api.github.com/repos/koajs/locales/deployments","created_at":"2015-05-16T14:04:08Z","updated_at":"2016-02-01T10:09:28Z","pushed_at":"2016-03-16T05:45:57Z","git_url":"git://github.com/koajs/locales.git","ssh_url":"git@github.com:koajs/locales.git","clone_url":"https://github.com/koajs/locales.git","svn_url":"https://github.com/koajs/locales","homepage":null,"size":45,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koajs/locales/pulls/19"},"html":{"href":"https://github.com/koajs/locales/pull/19"},"issue":{"href":"https://api.github.com/repos/koajs/locales/issues/19"},"comments":{"href":"https://api.github.com/repos/koajs/locales/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/koajs/locales/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/koajs/locales/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koajs/locales/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/koajs/locales/statuses/ebf2624d14967f6e6f9bc52d36e56741a823efde"}}}}