未验证 提交 fb7fb3e5 编写于 作者: P Pine 提交者: GitHub

Merge pull request #81319 from IllusionMH/patch-2

Update localize JSDoc example to match signature
......@@ -12,7 +12,7 @@ export interface ILocalizeInfo {
* Localize a message.
*
* `message` can contain `{n}` notation where it is replaced by the nth value in `...args`
* For example, `localize('hello {0}', name)`
* 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;
......@@ -20,6 +20,6 @@ export declare function localize(info: ILocalizeInfo, message: string, ...args:
* Localize a message.
*
* `message` can contain `{n}` notation where it is replaced by the nth value in `...args`
* For example, `localize('hello {0}', name)`
* For example, `localize('sayHello', 'hello {0}', name)`
*/
export declare function localize(key: string, message: string, ...args: (string | number | boolean | undefined | null)[]): string;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册