mirror of https://github.com/BTCPrivate/copay.git
fix language setting
This commit is contained in:
parent
93b287bedc
commit
98ab87611d
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').factory('configService', function(localstorageService) {
|
angular.module('copayApp.services').factory('configService', function(localstorageService, gettextCatalog) {
|
||||||
var root = {};
|
var root = {};
|
||||||
|
|
||||||
root.set = function(opts, cb) {
|
root.set = function(opts, cb) {
|
||||||
|
@ -8,6 +8,9 @@ angular.module('copayApp.services').factory('configService', function(localstora
|
||||||
if (opts.logLevel)
|
if (opts.logLevel)
|
||||||
copay.logger.setLevel(opts.logLevel);
|
copay.logger.setLevel(opts.logLevel);
|
||||||
|
|
||||||
|
if (opts.defaultLanguage)
|
||||||
|
gettextCatalog.currentLanguage = opts.defaultLanguage;
|
||||||
|
|
||||||
localstorageService.getItem('config', function(err, oldOpsStr) {
|
localstorageService.getItem('config', function(err, oldOpsStr) {
|
||||||
|
|
||||||
var oldOpts = {};
|
var oldOpts = {};
|
||||||
|
|
Loading…
Reference in New Issue