moved i18nService out to global services

This commit is contained in:
Kyle Spearrin 2016-10-18 18:56:40 -04:00
parent 91c8b324d7
commit bfe2edcdea
5 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,5 @@
var isBackground = true;
var i18nService = new i18nService();
var utilsService = new UtilsService();
var cryptoService = new CryptoService();
var tokenService = new TokenService();

View File

@ -32,6 +32,7 @@
"models/api/responseModels.js",
"models/dataModels.js",
"models/domainModels.js",
"services/i18nService.js",
"services/utilsService.js",
"services/cryptoService.js",
"services/tokenService.js",

View File

@ -36,4 +36,7 @@
})
.factory('appIdService', function () {
return chrome.extension.getBackgroundPage().appIdService;
})
.factory('i18nService', function () {
return chrome.extension.getBackgroundPage().i18nService;
});

View File

@ -40,7 +40,6 @@
<script src="app/services/servicesModule.js"></script>
<script src="app/services/backgroundService.js"></script>
<script src="app/services/i18nService.js"></script>
<script src="app/services/loginService.js"></script>
<script src="app/services/validationService.js"></script>

View File

@ -1,7 +1,4 @@
angular
.module('bit.services')
.factory('i18nService', function () {
function i18nService() {
return {
loginOrCreateNewAccount: chrome.i18n.getMessage("loginOrCreateNewAccount"),
createAccount: chrome.i18n.getMessage("createAccount"),
@ -93,4 +90,4 @@ angular
rateExtensionDesc: chrome.i18n.getMessage("rateExtensionDesc"),
browserNotSupportClipboard: chrome.i18n.getMessage("browserNotSupportClipboard")
};
});
};