Update translation. Removed old files
This commit is contained in:
parent
dd31f0c551
commit
93e61b66df
29 changed files with 358 additions and 703 deletions
23
src/js/controllers/preferencesLanguage.js
Normal file
23
src/js/controllers/preferencesLanguage.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('preferencesLanguageController',
|
||||
function($scope, $timeout, configService, applicationService) {
|
||||
|
||||
this.save = function(newLang) {
|
||||
var opts = {
|
||||
wallet: {
|
||||
settings: {
|
||||
defaultLanguage: newLang
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.loading = true;
|
||||
$timeout(function() {
|
||||
configService.set(opts, function(err) {
|
||||
if (err) console.log(err);
|
||||
applicationService.restart();
|
||||
});
|
||||
}, 100);
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue