mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 21:37:27 +02:00
Merge commit 'be3e8236086165e5e45a5a10783823874b3f3ebd' as 'lib/vscode'
This commit is contained in:
25
lib/vscode/src/vs/nls.d.ts
vendored
Normal file
25
lib/vscode/src/vs/nls.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
export interface ILocalizeInfo {
|
||||
key: string;
|
||||
comment: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Localize a message.
|
||||
*
|
||||
* `message` can contain `{n}` notation where it is replaced by the nth value in `...args`
|
||||
* For example, `localize({ key: 'sayHello', comment: ['Welcomes user'] }, 'hello {0}', name)`
|
||||
*/
|
||||
export declare function localize(info: ILocalizeInfo, message: string, ...args: (string | number | boolean | undefined | null)[]): string;
|
||||
|
||||
/**
|
||||
* Localize a message.
|
||||
*
|
||||
* `message` can contain `{n}` notation where it is replaced by the nth value in `...args`
|
||||
* For example, `localize('sayHello', 'hello {0}', name)`
|
||||
*/
|
||||
export declare function localize(key: string, message: string, ...args: (string | number | boolean | undefined | null)[]): string;
|
||||
Reference in New Issue
Block a user