{"action":"created","issue":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/53","repository_url":"https://api.github.com/repos/ocombe/ng2-translate","labels_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/53/comments","events_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/53/events","html_url":"https://github.com/ocombe/ng2-translate/issues/53","id":138998903,"number":53,"title":"useStaticFilesLoader is not a function ?","user":{"login":"Sophia-nguyen","id":11731312,"avatar_url":"https://avatars.githubusercontent.com/u/11731312?v=3","gravatar_id":"","url":"https://api.github.com/users/Sophia-nguyen","html_url":"https://github.com/Sophia-nguyen","followers_url":"https://api.github.com/users/Sophia-nguyen/followers","following_url":"https://api.github.com/users/Sophia-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/Sophia-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/Sophia-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sophia-nguyen/subscriptions","organizations_url":"https://api.github.com/users/Sophia-nguyen/orgs","repos_url":"https://api.github.com/users/Sophia-nguyen/repos","events_url":"https://api.github.com/users/Sophia-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/Sophia-nguyen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ocombe/ng2-translate/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-07T14:56:28Z","updated_at":"2016-03-07T15:56:48Z","closed_at":"2016-03-07T15:08:40Z","body":"Hi all,\r\n\r\nI have a problem when use `ng2-translate`\r\nThis is my code\r\n\r\n`Boot.ts`\r\n```\r\nimport {provide} from 'angular2/core';\r\nimport {bootstrap} from 'angular2/platform/browser';\r\nimport {ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy} from 'angular2/router';\r\nimport {HTTP_PROVIDERS, Http} from 'angular2/http';\r\nimport {TRANSLATE_PROVIDERS, TranslateService, TranslatePipe, TranslateLoader, TranslateStaticLoader} from 'ng2-translate/ng2-translate';\r\nimport {Helper} from './utils/helper';\r\nimport {BaseHTTP} from './utils/baseHTTP';\r\nimport {App} from './app';\r\n\r\nbootstrap(App, [\r\n    ROUTER_PROVIDERS,\r\n    HTTP_PROVIDERS, \r\n    TRANSLATE_PROVIDERS,\r\n    TranslateService,\r\n    Helper,\r\n    BaseHTTP,\r\n    provide(LocationStrategy, { useClass: HashLocationStrategy })\r\n]);\r\n````\r\n\r\n`app.ts`\r\n```\r\nimport {Component, Injectable, provide} from 'angular2/core';\r\nimport {RouterOutlet, RouteConfig} from 'angular2/router';\r\nimport {Http} from 'angular2/http';\r\nimport {TranslateService, TranslatePipe, TranslateLoader, TranslateStaticLoader} from 'ng2-translate/ng2-translate';\r\n\r\n@Injectable()\r\n@Component({\r\n    selector: 'main-app',\r\n    templateUrl: './src/app/app.html',\r\n    directives: [RouterOutlet],\r\n    pipes: [TranslatePipe]\r\n})\r\nexport class App {\r\n    public translate;\r\n\r\n    constructor(translate: TranslateService) {\r\n        this.translate = translate;\r\n\r\n        this.translationConfig();\r\n    } \r\n    \r\n    translationConfig() {\r\n        var prefix = 'src/app/core/languages';\r\n        var suffix = '.json';\r\n        var userLang = 'en';\r\n        this.translate.useStaticFilesLoader(prefix, suffix);\r\n        this.translate.use(userLang);\r\n    }  \r\n}\r\n```\r\nAnd an error occurs `this.translate.useStaticFilesLoader is not a function`. But it work in last friday (4/3/2016) and today it don't work.\r\nPlease help me, thanks"},"comment":{"url":"https://api.github.com/repos/ocombe/ng2-translate/issues/comments/193313442","html_url":"https://github.com/ocombe/ng2-translate/issues/53#issuecomment-193313442","issue_url":"https://api.github.com/repos/ocombe/ng2-translate/issues/53","id":193313442,"user":{"login":"Sophia-nguyen","id":11731312,"avatar_url":"https://avatars.githubusercontent.com/u/11731312?v=3","gravatar_id":"","url":"https://api.github.com/users/Sophia-nguyen","html_url":"https://github.com/Sophia-nguyen","followers_url":"https://api.github.com/users/Sophia-nguyen/followers","following_url":"https://api.github.com/users/Sophia-nguyen/following{/other_user}","gists_url":"https://api.github.com/users/Sophia-nguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/Sophia-nguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sophia-nguyen/subscriptions","organizations_url":"https://api.github.com/users/Sophia-nguyen/orgs","repos_url":"https://api.github.com/users/Sophia-nguyen/repos","events_url":"https://api.github.com/users/Sophia-nguyen/events{/privacy}","received_events_url":"https://api.github.com/users/Sophia-nguyen/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T15:56:48Z","updated_at":"2016-03-07T15:56:48Z","body":"yep, It work well for me, thanks @ocombe."}}