Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/util/vs/vscode-globals-nls.d.ts
13397 views
1
//!!! DO NOT modify, this file was COPIED from 'microsoft/vscode'
2
3
/*---------------------------------------------------------------------------------------------
4
* Copyright (c) Microsoft Corporation. All rights reserved.
5
* Licensed under the MIT License. See License.txt in the project root for license information.
6
*--------------------------------------------------------------------------------------------*/
7
8
// AMD2ESM migration relevant
9
10
/**
11
* NLS Globals: these need to be defined in all contexts that make
12
* use of our `nls.localize` and `nls.localize2` functions. This includes:
13
* - Electron main process
14
* - Electron window (renderer) process
15
* - Utility Process
16
* - Node.js
17
* - Browser
18
* - Web worker
19
*
20
* That is because during build time we strip out all english strings from
21
* the resulting JS code and replace it with a <number> that is then looked
22
* up from the `_VSCODE_NLS_MESSAGES` array.
23
*/
24
declare global {
25
/**
26
* All NLS messages produced by `localize` and `localize2` calls
27
* under `src/vs` translated to the language as indicated by
28
* `_VSCODE_NLS_LANGUAGE`.
29
*
30
* Instead of accessing this global variable directly, use function getNLSMessages.
31
*/
32
var _VSCODE_NLS_MESSAGES: string[];
33
/**
34
* The actual language of the NLS messages (e.g. 'en', de' or 'pt-br').
35
*
36
* Instead of accessing this global variable directly, use function getNLSLanguage.
37
*/
38
var _VSCODE_NLS_LANGUAGE: string | undefined;
39
}
40
41
// fake export to make global work
42
export { }
43
44