Skip to content

Commit fe4bd0e

Browse files
authored
Fix documented data type
Fix documented data type to match the one mentioned here: https://code.visualstudio.com/api/references/vscode-api#l10n
1 parent 32c5dda commit fe4bd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

l10n-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In `extension.ts` and `command/sayBye.ts` you'll notice the usages of `vscode.l1
2424
```ts
2525
function t(message: string, ...args: Array<string | number>): string;
2626
function t(message: string, args: Record<string, any>): string;
27-
function t(options: { message: string; args?: Array<string | number> | Record<string, any>; comment: string[] }): string;
27+
function t(options: { message: string; args?: Array<string | number> | Record<string, any>; comment: string | string[] }): string;
2828
```
2929

3030
These strings support arguments and comments. The arguments are used to replace placeholders in the string which look like `Hello {0}` where `{0}` is a placeholder and will be filled in with the argument at the specified index or `Hello {name}` where `{name}` is a placeholder and will be filled in with the `name` property of the specified args object. The comments are used to provide context for the translators. For example, if you have a string that says `Hello {0}`, the translators might not know what `{0}` is. So you can provide a comment to explain what `{0}` is.

0 commit comments

Comments
 (0)