{"action":"closed","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/824","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/824/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/824/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/824/events","html_url":"https://github.com/angular-translate/angular-translate/issues/824","id":49315471,"number":824,"title":"Second load from failed (404) static files load reads from internal tables instead of retrying the actual file load","user":{"login":"breakingco","id":7388170,"avatar_url":"https://avatars.githubusercontent.com/u/7388170?v=3","gravatar_id":"","url":"https://api.github.com/users/breakingco","html_url":"https://github.com/breakingco","followers_url":"https://api.github.com/users/breakingco/followers","following_url":"https://api.github.com/users/breakingco/following{/other_user}","gists_url":"https://api.github.com/users/breakingco/gists{/gist_id}","starred_url":"https://api.github.com/users/breakingco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breakingco/subscriptions","organizations_url":"https://api.github.com/users/breakingco/orgs","repos_url":"https://api.github.com/users/breakingco/repos","events_url":"https://api.github.com/users/breakingco/events{/privacy}","received_events_url":"https://api.github.com/users/breakingco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"knalli","id":65389,"avatar_url":"https://avatars.githubusercontent.com/u/65389?v=3","gravatar_id":"","url":"https://api.github.com/users/knalli","html_url":"https://github.com/knalli","followers_url":"https://api.github.com/users/knalli/followers","following_url":"https://api.github.com/users/knalli/following{/other_user}","gists_url":"https://api.github.com/users/knalli/gists{/gist_id}","starred_url":"https://api.github.com/users/knalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knalli/subscriptions","organizations_url":"https://api.github.com/users/knalli/orgs","repos_url":"https://api.github.com/users/knalli/repos","events_url":"https://api.github.com/users/knalli/events{/privacy}","received_events_url":"https://api.github.com/users/knalli/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular-translate/angular-translate/milestones/14","html_url":"https://github.com/angular-translate/angular-translate/milestones/2.7.0","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/milestones/14/labels","id":798825,"number":14,"title":"2.7.0","description":"","creator":{"login":"knalli","id":65389,"avatar_url":"https://avatars.githubusercontent.com/u/65389?v=3","gravatar_id":"","url":"https://api.github.com/users/knalli","html_url":"https://github.com/knalli","followers_url":"https://api.github.com/users/knalli/followers","following_url":"https://api.github.com/users/knalli/following{/other_user}","gists_url":"https://api.github.com/users/knalli/gists{/gist_id}","starred_url":"https://api.github.com/users/knalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knalli/subscriptions","organizations_url":"https://api.github.com/users/knalli/orgs","repos_url":"https://api.github.com/users/knalli/repos","events_url":"https://api.github.com/users/knalli/events{/privacy}","received_events_url":"https://api.github.com/users/knalli/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":12,"state":"open","created_at":"2014-09-22T21:11:32Z","updated_at":"2015-04-12T18:19:57Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-11-19T00:58:49Z","updated_at":"2015-04-12T18:19:57Z","closed_at":"2015-04-12T18:19:57Z","body":"http://plnkr.co/edit/309zz2RGQmtmDAoD8q21?p=preview\r\n\r\nYou load a file using static files loader, and if the file doesn't exist, it fails, gives a 404, and does not change the language (expected). However, if you load it again, angular-translate must have loaded the undefined result into internal translation tables, because pressing it for the second time will bypass the static files loader (can be confirmed by placing a console.error in that module's error function) and the keys will be loaded instead.\r\n\r\nThe desired behaviour should be that if there is a 404, the request to load a language should keep going through the static files loader until successfully loaded into angular-translate's internal table.\r\n\r\nCheers!\r\n\r\nDaniel"}}