mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 12:49:41 +01:00
24 lines
878 B
TypeScript
24 lines
878 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { Disposable } from 'vs/base/common/lifecycle';
|
|
import { ILanguagePackService } from 'vs/platform/languagePacks/common/languagePacks';
|
|
import { NativeLanguagePackService } from 'vs/platform/languagePacks/node/languagePacks';
|
|
|
|
export class LocalizationsUpdater extends Disposable {
|
|
|
|
constructor(
|
|
@ILanguagePackService private readonly localizationsService: NativeLanguagePackService
|
|
) {
|
|
super();
|
|
|
|
this.updateLocalizations();
|
|
}
|
|
|
|
private updateLocalizations(): void {
|
|
this.localizationsService.update();
|
|
}
|
|
}
|