mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Use message as fallback, not key (#166323)
Because `key` will also contain comments like: ``` my message/i'm a comment the user shouldn't see ``` The other part of microsoft/vscode#165735 fixes microsoft/vscode#165735
This commit is contained in:
committed by
GitHub
parent
f836340879
commit
eab3273162
@@ -46,7 +46,7 @@ export class ExtHostLocalizationService implements ExtHostLocalizationShape {
|
||||
if (!str) {
|
||||
this.logService.warn(`Using default string since no string found in i18n bundle that has the key: ${key}`);
|
||||
}
|
||||
return format2(str ?? key, (args ?? {}));
|
||||
return format2(str ?? message, (args ?? {}));
|
||||
}
|
||||
|
||||
getBundle(extensionId: string): { [key: string]: string } | undefined {
|
||||
|
||||
Reference in New Issue
Block a user