{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/i18n/issues/112","repository_url":"https://api.github.com/repos/aurelia/i18n","labels_url":"https://api.github.com/repos/aurelia/i18n/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/i18n/issues/112/comments","events_url":"https://api.github.com/repos/aurelia/i18n/issues/112/events","html_url":"https://github.com/aurelia/i18n/issues/112","id":155483048,"number":112,"title":"Uncaught TypeError: this.backend[fcName] is not a function","user":{"login":"stefan505","id":10812446,"avatar_url":"https://avatars.githubusercontent.com/u/10812446?v=3","gravatar_id":"","url":"https://api.github.com/users/stefan505","html_url":"https://github.com/stefan505","followers_url":"https://api.github.com/users/stefan505/followers","following_url":"https://api.github.com/users/stefan505/following{/other_user}","gists_url":"https://api.github.com/users/stefan505/gists{/gist_id}","starred_url":"https://api.github.com/users/stefan505/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefan505/subscriptions","organizations_url":"https://api.github.com/users/stefan505/orgs","repos_url":"https://api.github.com/users/stefan505/repos","events_url":"https://api.github.com/users/stefan505/events{/privacy}","received_events_url":"https://api.github.com/users/stefan505/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-18T11:56:39Z","updated_at":"2016-05-20T12:05:09Z","closed_at":null,"body":"I'm unable to get `aurelia-i18n@0.5.3` working using JSPM. I'm following the very latest docs, it fails during bootstrapping phase:\r\n\r\n```\r\nBackendConnector.js:213 Uncaught TypeError: this.backend[fcName] is not a function\r\n```\r\n\r\nThe code snippet from the eval script where its failing is here:\r\n\r\n```\r\nConnector.prototype.read = function read(lng, ns, fcName, tried, wait, callback) {\r\n    var _this4 = this;\r\n    if (!tried)\r\n      tried = 0;\r\n    if (!wait)\r\n      wait = 250;\r\n    if (!lng.length)\r\n      return callback(null, {});\r\n    this.backend[fcName](lng, ns, function(err, data) {       <----------  HERE\r\n      if (err && data && tried < 5) {\r\n        setTimeout(function() {\r\n          _this4.read.call(_this4, lng, ns, fcName, ++tried, wait * 2, callback);\r\n        }, wait);\r\n        return;\r\n      }\r\n      callback(err, data);\r\n    });\r\n  };\r\n```\r\nMy `main.ts` file plugin load:\r\n```\r\n    // aurelia-i18n\r\n    aurelia.use.plugin('aurelia-i18n', (instance) =>\r\n    {\r\n        // register backend plugin\r\n        instance.i18next.use(Backend);\r\n\r\n        // adapt options to your needs (see http://i18next.com/docs/options/)\r\n        // make sure to return the promise of the setup method, in order to guarantee proper loading\r\n        return instance.setup({\r\n            backend: {                                  // <-- configure backend settings\r\n                loadPath: '/locale/{{lng}}/{{ns}}.json', // <-- XHR settings for where to get the files from\r\n            },\r\n            lng: 'af-ZA',\r\n            attributes: ['t', 'i18n'],\r\n            fallbackLng: 'en-ZA',\r\n            debug: true,\r\n            saveMissing: true\r\n        });\r\n    });\r\n```\r\nJSPM dependencies:\r\n```\r\n    \"dependencies\": {\r\n      \"SignalR/bower-signalr\": \"github:SignalR/bower-signalr@^2.2.0\",\r\n      \"aurelia-bootstrapper\": \"npm:aurelia-bootstrapper@^1.0.0-beta.1.2.1\",\r\n      \"aurelia-dialog\": \"npm:aurelia-dialog@^0.6.1\",\r\n      \"aurelia-fetch-client\": \"npm:aurelia-fetch-client@^1.0.0-beta.1.2.5\",\r\n      \"aurelia-i18n\": \"npm:aurelia-i18n@^0.5.3\",\r\n      \"aurelia-kendoui-bridge\": \"npm:aurelia-kendoui-bridge@^0.10.3\",\r\n      \"aurelia-validatejs\": \"npm:aurelia-validatejs@^0.3.1\",\r\n      \"aurelia-validation\": \"npm:aurelia-validation@^0.8.1\",\r\n      \"bootstrap\": \"github:twbs/bootstrap@^3.3.6\",\r\n      \"css\": \"github:systemjs/plugin-css@^0.1.21\",\r\n      \"fetch\": \"github:github/fetch@^1.0.0\",\r\n      \"font-awesome\": \"npm:font-awesome@^4.6.1\",\r\n      \"i18next-xhr-backend\": \"npm:i18next-xhr-backend@^0.5.4\",\r\n      \"icheck\": \"github:fronteed/iCheck@^1.0.2\",\r\n      \"jquery\": \"npm:jquery@^2.2.3\",\r\n      \"jquery-slimscroll\": \"npm:jquery-slimscroll@^1.3.6\",\r\n      \"jquery-validation\": \"github:jzaefferer/jquery-validation@^1.15.0\",\r\n      \"jquery-validation-unobtrusive\": \"github:aspnet/jquery-validation-unobtrusive@^3.2.6\",\r\n      \"kendo-ui\": \"kendo:bower-kendo-ui@^2016.1.420\",\r\n      \"moment\": \"npm:moment@^2.13.0\",\r\n      \"multiplexjs\": \"npm:multiplexjs@^1.0.0\",\r\n      \"nprogress\": \"github:rstacruz/nprogress@^0.2.0\",\r\n      \"text\": \"github:systemjs/plugin-text@^0.0.7\",\r\n      \"toastr\": \"github:CodeSeven/toastr@^2.1.2\"\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aurelia/i18n/issues/comments/220588354","html_url":"https://github.com/aurelia/i18n/issues/112#issuecomment-220588354","issue_url":"https://api.github.com/repos/aurelia/i18n/issues/112","id":220588354,"user":{"login":"zewa666","id":2861414,"avatar_url":"https://avatars.githubusercontent.com/u/2861414?v=3","gravatar_id":"","url":"https://api.github.com/users/zewa666","html_url":"https://github.com/zewa666","followers_url":"https://api.github.com/users/zewa666/followers","following_url":"https://api.github.com/users/zewa666/following{/other_user}","gists_url":"https://api.github.com/users/zewa666/gists{/gist_id}","starred_url":"https://api.github.com/users/zewa666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zewa666/subscriptions","organizations_url":"https://api.github.com/users/zewa666/orgs","repos_url":"https://api.github.com/users/zewa666/repos","events_url":"https://api.github.com/users/zewa666/events{/privacy}","received_events_url":"https://api.github.com/users/zewa666/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T12:05:09Z","updated_at":"2016-05-20T12:05:09Z","body":"@Souldrinker what would really help is if you can provide a PR updating the README and as now just simply describe the different scenarios, so that people using whichever version know what the root cause is and therefore can adapt appropriately."}}
{"actor":{"display_login":"zewa666"}}