{"action":"created","issue":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1075","labels_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1075/comments","events_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1075/events","html_url":"https://github.com/angular-translate/angular-translate/issues/1075","id":87137479,"number":1075,"title":"fallbackLanguage() invocation changes breaks useLocalStorage","user":{"login":"sochka","id":822771,"avatar_url":"https://avatars.githubusercontent.com/u/822771?v=3","gravatar_id":"","url":"https://api.github.com/users/sochka","html_url":"https://github.com/sochka","followers_url":"https://api.github.com/users/sochka/followers","following_url":"https://api.github.com/users/sochka/following{/other_user}","gists_url":"https://api.github.com/users/sochka/gists{/gist_id}","starred_url":"https://api.github.com/users/sochka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sochka/subscriptions","organizations_url":"https://api.github.com/users/sochka/orgs","repos_url":"https://api.github.com/users/sochka/repos","events_url":"https://api.github.com/users/sochka/events{/privacy}","received_events_url":"https://api.github.com/users/sochka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/angular-translate/angular-translate/labels/waiting","name":"waiting","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-06-10T23:06:30Z","updated_at":"2015-12-10T20:13:20Z","closed_at":null,"body":"Hi, I've got a problem (or maybe this is a bug). The config is the following:\r\n\r\n```\r\n  $translateProvider\r\n    .useSanitizeValueStrategy('escape')\r\n    .registerAvailableLanguageKeys(['en', 'uk'], {\r\n      'en*': 'en',\r\n      'uk*': 'uk'\r\n    })\r\n    .useStaticFilesLoader({\r\n      prefix: '/translations/',\r\n      suffix: '.json'\r\n    })\r\n    .determinePreferredLanguage()\r\n    .useLocalStorage()\r\n    .fallbackLanguage(['en', 'uk']);\r\n```\r\n\r\nSteps:\r\n1. Load this page - english is correctly detected as my preferred language.\r\n2. Run `$translateProvider.use('uk')`. Interface, as expected, switched to ukrainian. In local storage I see `NG_TRANSLATE_LANG_KEY` set to be `uk`.\r\n3. Bug here: when I hit F5 the page is reloaded but interface is shown in english. \r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/angular-translate/angular-translate/issues/comments/163737151","html_url":"https://github.com/angular-translate/angular-translate/issues/1075#issuecomment-163737151","issue_url":"https://api.github.com/repos/angular-translate/angular-translate/issues/1075","id":163737151,"user":{"login":"sochka","id":822771,"avatar_url":"https://avatars.githubusercontent.com/u/822771?v=3","gravatar_id":"","url":"https://api.github.com/users/sochka","html_url":"https://github.com/sochka","followers_url":"https://api.github.com/users/sochka/followers","following_url":"https://api.github.com/users/sochka/following{/other_user}","gists_url":"https://api.github.com/users/sochka/gists{/gist_id}","starred_url":"https://api.github.com/users/sochka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sochka/subscriptions","organizations_url":"https://api.github.com/users/sochka/orgs","repos_url":"https://api.github.com/users/sochka/repos","events_url":"https://api.github.com/users/sochka/events{/privacy}","received_events_url":"https://api.github.com/users/sochka/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T20:13:20Z","updated_at":"2015-12-10T20:13:20Z","body":"@tspaeth , No, I tried and it doesn't matter. The problem happens when changing the language, not when setting up the configs."}}