1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | const inversify_1 = require("inversify");
|
19 | const localization_1 = require("../../common/i18n/localization");
|
20 | const localization_provider_1 = require("./localization-provider");
|
21 | const common_1 = require("../../common");
|
22 | const localization_contribution_1 = require("./localization-contribution");
|
23 | const localization_backend_contribution_1 = require("./localization-backend-contribution");
|
24 | const backend_application_1 = require("../backend-application");
|
25 | const theia_localization_contribution_1 = require("./theia-localization-contribution");
|
26 | exports.default = new inversify_1.ContainerModule(bind => {
|
27 | bind(localization_provider_1.LocalizationProvider).toSelf().inSingletonScope();
|
28 | bind(common_1.ConnectionHandler).toDynamicValue(ctx => new common_1.JsonRpcConnectionHandler(localization_1.localizationPath, () => ctx.container.get(localization_provider_1.LocalizationProvider))).inSingletonScope();
|
29 | bind(localization_contribution_1.LocalizationRegistry).toSelf().inSingletonScope();
|
30 | (0, common_1.bindContributionProvider)(bind, localization_contribution_1.LocalizationContribution);
|
31 | bind(localization_backend_contribution_1.LocalizationBackendContribution).toSelf().inSingletonScope();
|
32 | bind(backend_application_1.BackendApplicationContribution).toService(localization_backend_contribution_1.LocalizationBackendContribution);
|
33 | bind(theia_localization_contribution_1.TheiaLocalizationContribution).toSelf().inSingletonScope();
|
34 | bind(localization_contribution_1.LocalizationContribution).toService(theia_localization_contribution_1.TheiaLocalizationContribution);
|
35 | });
|
36 |
|
\ | No newline at end of file |