Onboard GitHub & Microsoft auth extensions to l10n (#163662)

* onboard github-auth completely to l10n

* onboard microsoft-authentication entirely on to l10n
This commit is contained in:
Tyler James Leonhardt
2022-10-14 08:41:21 -07:00
committed by GitHub
parent f83ad50c89
commit 6684350a58
8 changed files with 39 additions and 45 deletions
@@ -256,7 +256,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
*/
this._telemetryReporter?.sendTelemetryEvent('loginFailed');
vscode.window.showErrorMessage(`Sign in failed: ${e}`);
vscode.window.showErrorMessage(vscode.l10n.t('Sign in failed: {0}', `${e}`));
this._logger.error(e);
throw e;
}
@@ -299,7 +299,7 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
*/
this._telemetryReporter?.sendTelemetryEvent('logoutFailed');
vscode.window.showErrorMessage(`Sign out failed: ${e}`);
vscode.window.showErrorMessage(vscode.l10n.t('Sign out failed: {0}', `${e}`));
this._logger.error(e);
throw e;
}