Path: blob/main/src/vs/workbench/services/localization/common/locale.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { createDecorator } from '../../../../platform/instantiation/common/instantiation.js';6import { ILanguagePackItem } from '../../../../platform/languagePacks/common/languagePacks.js';78export const ILocaleService = createDecorator<ILocaleService>('localizationService');910export interface ILocaleService {11readonly _serviceBrand: undefined;12setLocale(languagePackItem: ILanguagePackItem, skipDialog?: boolean): Promise<void>;13clearLocalePreference(): Promise<void>;14}1516export const IActiveLanguagePackService = createDecorator<IActiveLanguagePackService>('activeLanguageService');1718export interface IActiveLanguagePackService {19readonly _serviceBrand: undefined;20getExtensionIdProvidingCurrentLocale(): Promise<string | undefined>;21}222324