mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-22 16:29:09 +01:00
moved i18nService out to global services
This commit is contained in:
parent
91c8b324d7
commit
bfe2edcdea
@ -1,4 +1,5 @@
|
||||
var isBackground = true;
|
||||
var i18nService = new i18nService();
|
||||
var utilsService = new UtilsService();
|
||||
var cryptoService = new CryptoService();
|
||||
var tokenService = new TokenService();
|
||||
|
@ -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",
|
||||
|
@ -36,4 +36,7 @@
|
||||
})
|
||||
.factory('appIdService', function () {
|
||||
return chrome.extension.getBackgroundPage().appIdService;
|
||||
})
|
||||
.factory('i18nService', function () {
|
||||
return chrome.extension.getBackgroundPage().i18nService;
|
||||
});
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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")
|
||||
};
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user