{"action":"created","issue":{"url":"https://api.github.com/repos/Khan/live-editor/issues/569","repository_url":"https://api.github.com/repos/Khan/live-editor","labels_url":"https://api.github.com/repos/Khan/live-editor/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/Khan/live-editor/issues/569/comments","events_url":"https://api.github.com/repos/Khan/live-editor/issues/569/events","html_url":"https://github.com/Khan/live-editor/issues/569","id":144237170,"number":569,"title":"How to use i18n functionality of jshint.js","user":{"login":"lavisrap","id":3194815,"avatar_url":"https://avatars.githubusercontent.com/u/3194815?v=3","gravatar_id":"","url":"https://api.github.com/users/lavisrap","html_url":"https://github.com/lavisrap","followers_url":"https://api.github.com/users/lavisrap/followers","following_url":"https://api.github.com/users/lavisrap/following{/other_user}","gists_url":"https://api.github.com/users/lavisrap/gists{/gist_id}","starred_url":"https://api.github.com/users/lavisrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavisrap/subscriptions","organizations_url":"https://api.github.com/users/lavisrap/orgs","repos_url":"https://api.github.com/users/lavisrap/repos","events_url":"https://api.github.com/users/lavisrap/events{/privacy}","received_events_url":"https://api.github.com/users/lavisrap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-29T11:41:08Z","updated_at":"2016-03-29T15:36:03Z","closed_at":null,"body":"In the live-editor version of jshint.js I found following line:\r\n\r\n```\r\n// XXX(jeresig): Used for i18n string extraction\r\nvar i18n = { _: function (msg) { return msg; } };\r\n\r\n```\r\n\r\nFor my project I created a js file, that contains an implementation of the i18n._ function, translating strings. That works fine with all parts of the live editor except jshint.js, as it seems to have a distinct variable space (e.g. defines `window` variable at startup).\r\n\r\nHow can I use these two lines by jeresig from outside jshint.js?\r\n"},"comment":{"url":"https://api.github.com/repos/Khan/live-editor/issues/comments/202959610","html_url":"https://github.com/Khan/live-editor/issues/569#issuecomment-202959610","issue_url":"https://api.github.com/repos/Khan/live-editor/issues/569","id":202959610,"user":{"login":"kevinbarabash","id":1044413,"avatar_url":"https://avatars.githubusercontent.com/u/1044413?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinbarabash","html_url":"https://github.com/kevinbarabash","followers_url":"https://api.github.com/users/kevinbarabash/followers","following_url":"https://api.github.com/users/kevinbarabash/following{/other_user}","gists_url":"https://api.github.com/users/kevinbarabash/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinbarabash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinbarabash/subscriptions","organizations_url":"https://api.github.com/users/kevinbarabash/orgs","repos_url":"https://api.github.com/users/kevinbarabash/repos","events_url":"https://api.github.com/users/kevinbarabash/events{/privacy}","received_events_url":"https://api.github.com/users/kevinbarabash/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T15:36:03Z","updated_at":"2016-03-29T15:36:03Z","body":"I don't know how `i18n._` gets overwritten for our international sites.  I'll look into it."}}