Skip to content

Commit

Permalink
Added spanish
Browse files Browse the repository at this point in the history
  • Loading branch information
Parima Shah committed Apr 22, 2024
1 parent 9370d33 commit b6d2663
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions home/home.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ app.service("objectDetailsService", function ($http, $q, $sce) {
var english = [];
var hindi = [];
var gujarati = [];
var spanish = [];
jsonData = [];
console.log("loading data from gsheets");
//let sheetTitle;
Expand Down Expand Up @@ -52,9 +53,12 @@ app.service("objectDetailsService", function ($http, $q, $sce) {
case 'english':
english.push(asset);
break;
case 'spanish':
english.push(asset);
break;
}
})
jsonData = [english, gujarati, hindi];
jsonData = [english, gujarati, hindi, spanish];
deffered.resolve();
})
.catch(error => {
Expand Down Expand Up @@ -352,7 +356,7 @@ HomeController.$inject = ['$scope', '$rootScope', '$location', '$http',
function HomeController($scope, $rootScope, $location,
$http, $sce, objectDetailsService, userPersistenceService, subpageDetails) {
$scope.isHomePage = false;
$scope.tabTitles = ["English", "Gujarati", "Hindi"];
$scope.tabTitles = ["English", "Gujarati", "Hindi", "Spanish"];

console.log('rajuphaar', $rootScope.rajUphaar);

Expand Down

0 comments on commit b6d2663

Please sign in to comment.