Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/code/electron-utility/sharedProcess/contrib/localizationsUpdater.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { Disposable } from '../../../../base/common/lifecycle.js';
7
import { ILanguagePackService } from '../../../../platform/languagePacks/common/languagePacks.js';
8
import { NativeLanguagePackService } from '../../../../platform/languagePacks/node/languagePacks.js';
9
10
export class LocalizationsUpdater extends Disposable {
11
12
constructor(
13
@ILanguagePackService private readonly localizationsService: NativeLanguagePackService
14
) {
15
super();
16
17
this.updateLocalizations();
18
}
19
20
private updateLocalizations(): void {
21
this.localizationsService.update();
22
}
23
}
24
25