{"action":"created","issue":{"url":"https://api.github.com/repos/rxaviers/cldr-data-npm/issues/14","labels_url":"https://api.github.com/repos/rxaviers/cldr-data-npm/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/rxaviers/cldr-data-npm/issues/14/comments","events_url":"https://api.github.com/repos/rxaviers/cldr-data-npm/issues/14/events","html_url":"https://github.com/rxaviers/cldr-data-npm/issues/14","id":78477763,"number":14,"title":"language detected. ","user":{"login":"martingg88","id":7898120,"avatar_url":"https://avatars.githubusercontent.com/u/7898120?v=3","gravatar_id":"","url":"https://api.github.com/users/martingg88","html_url":"https://github.com/martingg88","followers_url":"https://api.github.com/users/martingg88/followers","following_url":"https://api.github.com/users/martingg88/following{/other_user}","gists_url":"https://api.github.com/users/martingg88/gists{/gist_id}","starred_url":"https://api.github.com/users/martingg88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martingg88/subscriptions","organizations_url":"https://api.github.com/users/martingg88/orgs","repos_url":"https://api.github.com/users/martingg88/repos","events_url":"https://api.github.com/users/martingg88/events{/privacy}","received_events_url":"https://api.github.com/users/martingg88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-20T11:01:08Z","updated_at":"2015-05-22T16:39:06Z","closed_at":"2015-05-20T12:48:18Z","body":"how can i find the main language used for specific country. \r\n\r\nFor example if i give \"US\" as country code. \r\nwhat is the method/files i need to find the main language for \"US\" country?"},"comment":{"url":"https://api.github.com/repos/rxaviers/cldr-data-npm/issues/comments/104708020","html_url":"https://github.com/rxaviers/cldr-data-npm/issues/14#issuecomment-104708020","issue_url":"https://api.github.com/repos/rxaviers/cldr-data-npm/issues/14","id":104708020,"user":{"login":"rxaviers","id":967155,"avatar_url":"https://avatars.githubusercontent.com/u/967155?v=3","gravatar_id":"","url":"https://api.github.com/users/rxaviers","html_url":"https://github.com/rxaviers","followers_url":"https://api.github.com/users/rxaviers/followers","following_url":"https://api.github.com/users/rxaviers/following{/other_user}","gists_url":"https://api.github.com/users/rxaviers/gists{/gist_id}","starred_url":"https://api.github.com/users/rxaviers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxaviers/subscriptions","organizations_url":"https://api.github.com/users/rxaviers/orgs","repos_url":"https://api.github.com/users/rxaviers/repos","events_url":"https://api.github.com/users/rxaviers/events{/privacy}","received_events_url":"https://api.github.com/users/rxaviers/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T16:39:06Z","updated_at":"2015-05-22T16:39:06Z","body":"Does it help you?\r\n\r\n\r\n```js\r\nvar locale = \"en\";\r\nvar Cldr = require(\"cldrjs\");\r\nCldr.load(require(\"cldr-data/main/en/languages\"));\r\n\r\nvar cldr = new Cldr(locale);\r\n\r\ncldr.main(\"localeDisplayNames/languages\");\r\n// > { aa: \"Afar\",\r\n//     ab: \"Abkhazian\",\r\n//     ...\r\n//   }\r\n\r\nObject.keys(cldr.main(\"localeDisplayNames/languages\")).map(function(locale) {\r\n  return cldr.main([\"localeDisplayNames/languages\", locale]);\r\n});\r\n// > [ \"Afar\",\r\n//     \"Abkhazian\",\r\n//     ...\r\n//   ]\r\n```"}}