{"action":"created","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1603","repository_url":"https://api.github.com/repos/angular-translate/angular-translate","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1603/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1603/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1603/events","html_url":"https://github.com/angular-translate/angular-translate/issues/1603","id":180395372,"number":1603,"title":"$translateProvider.useStaticFilesLoader with non JSON file","user":{"login":"kaythree","id":13709723,"avatar_url":"https://avatars.githubusercontent.com/u/13709723?v=3","gravatar_id":"","url":"https://api.github.com/users/kaythree","html_url":"https://github.com/kaythree","followers_url":"https://api.github.com/users/kaythree/followers","following_url":"https://api.github.com/users/kaythree/following{/other_user}","gists_url":"https://api.github.com/users/kaythree/gists{/gist_id}","starred_url":"https://api.github.com/users/kaythree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaythree/subscriptions","organizations_url":"https://api.github.com/users/kaythree/orgs","repos_url":"https://api.github.com/users/kaythree/repos","events_url":"https://api.github.com/users/kaythree/events{/privacy}","received_events_url":"https://api.github.com/users/kaythree/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/waiting","name":"waiting","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-30T20:28:31Z","updated_at":"2016-10-03T18:04:05Z","closed_at":"2016-10-03T18:04:05Z","body":"### Subject of the issue\r\nI am trying to configure my app to support multiple languages. Its working fine when I have .json files under /translators folder. But when I have .properties file , the correct content is not displaying but keys showing up.\r\n\r\n### Your environment\r\n* angular-translate - v2.12.1 - 2016-09-15\r\n* angular 1.5.8\r\n* All browsers\r\n\r\n### Steps to reproduce\r\nIts simple. The translate Provider working without any issue, but when I give prefix as .properties its failing , see my code below\r\n\r\n.config(['$translateProvider', function($translateProvider) {\r\n\r\n    $translateProvider\r\n        .useStaticFilesLoader({\r\n            prefix: '../translations/content-',\r\n            suffix: '.properties'\r\n        })\r\n        .preferredLanguage('en');\r\n    // Enable escaping of HTML\r\n    $translateProvider.useSanitizeValueStrategy('escape');\r\n}]);\r\n\r\n### Expected behaviour\r\nSince I have file with the name content-en.properties under my /translations folder, I am expecting it will work the way how it picked the right keys from a JSON file.\r\n\r\n### Actual behaviour\r\nApplication is trying to load the content-en.properties file (in request HEADERs, I see ACCPET : application/json ) and in the browser I am not seeing content from my properties file but keys.\r\n"},"comment":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/comments/251179277","html_url":"https://github.com/angular-translate/angular-translate/issues/1603#issuecomment-251179277","issue_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1603","id":251179277,"user":{"login":"kaythree","id":13709723,"avatar_url":"https://avatars.githubusercontent.com/u/13709723?v=3","gravatar_id":"","url":"https://api.github.com/users/kaythree","html_url":"https://github.com/kaythree","followers_url":"https://api.github.com/users/kaythree/followers","following_url":"https://api.github.com/users/kaythree/following{/other_user}","gists_url":"https://api.github.com/users/kaythree/gists{/gist_id}","starred_url":"https://api.github.com/users/kaythree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaythree/subscriptions","organizations_url":"https://api.github.com/users/kaythree/orgs","repos_url":"https://api.github.com/users/kaythree/repos","events_url":"https://api.github.com/users/kaythree/events{/privacy}","received_events_url":"https://api.github.com/users/kaythree/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T18:04:05Z","updated_at":"2016-10-03T18:04:05Z","body":"A=B format. See the properties file below\r\nGCC_USERNAME=\"User Name\",\r\nGCC_PASSWORD=\"Password\",\r\nGCC_LOGIN_TEXT=\"Login\"\r\n"}}
{"actor":{"display_login":"kaythree"}}