{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/addons-server/issues/8194","repository_url":"https://api.github.com/repos/mozilla/addons-server","labels_url":"https://api.github.com/repos/mozilla/addons-server/issues/8194/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/addons-server/issues/8194/comments","events_url":"https://api.github.com/repos/mozilla/addons-server/issues/8194/events","html_url":"https://github.com/mozilla/addons-server/issues/8194","id":320831484,"number":8194,"title":"Json export should only include lang code as key","user":{"login":"nukeador","id":531906,"avatar_url":"https://avatars3.githubusercontent.com/u/531906?v=4","gravatar_id":"","url":"https://api.github.com/users/nukeador","html_url":"https://github.com/nukeador","followers_url":"https://api.github.com/users/nukeador/followers","following_url":"https://api.github.com/users/nukeador/following{/other_user}","gists_url":"https://api.github.com/users/nukeador/gists{/gist_id}","starred_url":"https://api.github.com/users/nukeador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nukeador/subscriptions","organizations_url":"https://api.github.com/users/nukeador/orgs","repos_url":"https://api.github.com/users/nukeador/repos","events_url":"https://api.github.com/users/nukeador/events{/privacy}","received_events_url":"https://api.github.com/users/nukeador/received_events","type":"User","site_admin":false},"labels":[{"id":353728203,"url":"https://api.github.com/repos/mozilla/addons-server/labels/priority:%20p2","name":"priority: p2","color":"d70022","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-07T14:42:32Z","updated_at":"2018-05-09T17:55:27Z","closed_at":null,"author_association":"NONE","body":"### Describe the problem and steps to reproduce it:\r\nI'm trying to consume the data exported from addons language stats, reading from the json file linked.\r\n\r\nExample:\r\nhttps://addons.mozilla.org/firefox/addon/easyscreenshot/statistics/usage/languages/?last=30\r\nhttps://addons.mozilla.org/firefox/addon/easyscreenshot/statistics/locales-day-20180407-20180507.json\r\n\r\n### What happened?\r\nThe json file has the names of the languages with unicode charters as keys. Examples\r\n\r\nEspañol (de España) (es-es) | Português (do Brasil) (pt-br) | Русский (ru)\r\n\r\n### What did you expect to happen?\r\n\r\nI would like to suggest this json just export the lang code as the key. Why?\r\n\r\n- Parsing unicode characters is problematic and requires a lot more coding effort to handle any issues.\r\n- By using the iso lang codes simplifies anyone searching for a specific language even if they don't know the language name in the local language. I want to see all stats for \"ru\" but I don't really know how to write it in Russian ;-)  \r\n\r\n### Anything else we should know?\r\n(Please include a link to the page, screenshots and any relevant files.)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/addons-server/issues/comments/387822438","html_url":"https://github.com/mozilla/addons-server/issues/8194#issuecomment-387822438","issue_url":"https://api.github.com/repos/mozilla/addons-server/issues/8194","id":387822438,"user":{"login":"jvillalobos","id":62568,"avatar_url":"https://avatars2.githubusercontent.com/u/62568?v=4","gravatar_id":"","url":"https://api.github.com/users/jvillalobos","html_url":"https://github.com/jvillalobos","followers_url":"https://api.github.com/users/jvillalobos/followers","following_url":"https://api.github.com/users/jvillalobos/following{/other_user}","gists_url":"https://api.github.com/users/jvillalobos/gists{/gist_id}","starred_url":"https://api.github.com/users/jvillalobos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvillalobos/subscriptions","organizations_url":"https://api.github.com/users/jvillalobos/orgs","repos_url":"https://api.github.com/users/jvillalobos/repos","events_url":"https://api.github.com/users/jvillalobos/events{/privacy}","received_events_url":"https://api.github.com/users/jvillalobos/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T17:55:27Z","updated_at":"2018-05-09T17:55:27Z","author_association":"MEMBER","body":"Thanks, Wei. It appears to be a small number either way, so I'd be okay with changing the JSON file. I'll reiterate that we should do this soon *if* it can be done quickly. AMO has a very full plate for the quarter, so we'll have to work around this if this delays other work significantly."}}
{"actor":{"display_login":"jvillalobos"}}