mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-31 23:11:15 +00:00
fix(i18n): language selection working on static pages
This commit is contained in:
parent
b9784fa4aa
commit
42c0b443d7
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ angular.module('habitrpg').controller("FooterCtrl",
|
|||
['$scope', '$rootScope', 'User', '$http', 'Notification', 'ApiUrl',
|
||||
function($scope, $rootScope, User, $http, Notification, ApiUrl) {
|
||||
|
||||
if(typeof habitrpg === "undefined"){
|
||||
if(env.isStaticPage){
|
||||
$scope.languages = env.avalaibleLanguages;
|
||||
$scope.selectedLanguage = _.find(env.avalaibleLanguages, {code: env.language.code});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue