{"action":"created","issue":{"url":"https://api.github.com/repos/yoolab/iron-router-i18n/issues/26","labels_url":"https://api.github.com/repos/yoolab/iron-router-i18n/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/yoolab/iron-router-i18n/issues/26/comments","events_url":"https://api.github.com/repos/yoolab/iron-router-i18n/issues/26/events","html_url":"https://github.com/yoolab/iron-router-i18n/issues/26","id":57772769,"number":26,"title":"using getLanguage() for Meteor.user().getLanguage attribute","user":{"login":"dohomi","id":489221,"avatar_url":"https://avatars.githubusercontent.com/u/489221?v=3","gravatar_id":"","url":"https://api.github.com/users/dohomi","html_url":"https://github.com/dohomi","followers_url":"https://api.github.com/users/dohomi/followers","following_url":"https://api.github.com/users/dohomi/following{/other_user}","gists_url":"https://api.github.com/users/dohomi/gists{/gist_id}","starred_url":"https://api.github.com/users/dohomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dohomi/subscriptions","organizations_url":"https://api.github.com/users/dohomi/orgs","repos_url":"https://api.github.com/users/dohomi/repos","events_url":"https://api.github.com/users/dohomi/events{/privacy}","received_events_url":"https://api.github.com/users/dohomi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-16T07:26:29Z","updated_at":"2015-02-16T13:47:07Z","closed_at":null,"body":"Hi @martinopic \r\n\r\nI just tried the approach using following syntax on the newest 0.5.x version:\r\n\r\n```\r\nRouter.configure({\r\n  layoutTemplate: 'layoutBackend',\r\n  notFoundTemplate: 'page404',\r\n  loadingTemplate: 'loading',\r\n  i18n: {\r\n    languages: TP.Const.AllowedLangKey,\r\n    getLanguage: function () {\r\n      if (Meteor.loggingIn()) {\r\n        return;\r\n      }\r\n      var userLangKey = Meteor.user() && Meteor.user().languageKey;\r\n      return userLangKey;\r\n    },\r\n(...)\r\n```\r\n\r\nBut this results into an endless loop if I use several ```Router.go()```.\r\nAny idea on this?\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/yoolab/iron-router-i18n/issues/comments/74510192","html_url":"https://github.com/yoolab/iron-router-i18n/issues/26#issuecomment-74510192","issue_url":"https://api.github.com/repos/yoolab/iron-router-i18n/issues/26","id":74510192,"user":{"login":"dohomi","id":489221,"avatar_url":"https://avatars.githubusercontent.com/u/489221?v=3","gravatar_id":"","url":"https://api.github.com/users/dohomi","html_url":"https://github.com/dohomi","followers_url":"https://api.github.com/users/dohomi/followers","following_url":"https://api.github.com/users/dohomi/following{/other_user}","gists_url":"https://api.github.com/users/dohomi/gists{/gist_id}","starred_url":"https://api.github.com/users/dohomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dohomi/subscriptions","organizations_url":"https://api.github.com/users/dohomi/orgs","repos_url":"https://api.github.com/users/dohomi/repos","events_url":"https://api.github.com/users/dohomi/events{/privacy}","received_events_url":"https://api.github.com/users/dohomi/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T13:47:07Z","updated_at":"2015-02-16T13:47:07Z","body":"sorry little browser issue here :)"}}