refactor ux language handling

This commit is contained in:
Matias Alejo Garcia 2015-08-27 12:07:13 -03:00
commit 55afc4d9d4
8 changed files with 125 additions and 81 deletions

View file

@ -1,8 +1,11 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesLanguageController',
function($scope, $log, $timeout, configService, go) {
function($scope, $log, $timeout, configService, go, uxLanguage) {
this.availableLanguages = uxLanguage.getLanguages();
console.log('[preferencesLanguage.js.7]', this.availableLanguages); //TODO
this.save = function(newLang) {
var opts = {