Skip to content

Commit 715971b

Browse files
authored
localization fixes (#7132)
1 parent 37ef84a commit 715971b

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@
832832
"commands": [
833833
{
834834
"command": "githubpr.remoteAgent",
835-
"title": "Remote agent integration",
835+
"title": "%command.githubpr.remoteAgent.title%",
836836
"enablement": "config.githubPullRequests.codingAgent.enabled"
837837
},
838838
{

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
"view.github.active.pull.request.name": "Review Pull Request",
173173
"view.github.active.pull.request.welcome.name": "Active Pull Request",
174174
"command.pull.request.category": "GitHub Pull Requests",
175+
"command.githubpr.remoteAgent.title": "Remote agent integration",
175176
"command.pr.create.title": "Create Pull Request",
176177
"command.pr.pick.title": "Checkout Pull Request",
177178
"command.pr.openChanges.title": "Open Changes",

src/github/copilotApi.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import fetch from 'cross-fetch';
77
import JSZip from 'jszip';
8+
import * as vscode from 'vscode';
89
import { AuthProvider } from '../common/authentication';
910
import { Remote } from '../common/remote';
1011
import { OctokitCommon } from './common';
@@ -68,21 +69,21 @@ export class CopilotApi {
6869
private formatRemoteAgentJobError(status: number) {
6970
switch (status) {
7071
case 400:
71-
return 'Bad request';
72+
return vscode.l10n.t('Bad request');
7273
case 401:
73-
return 'Unauthorized';
74+
return vscode.l10n.t('Unauthorized');
7475
case 402:
75-
return 'Premium request quota exceeded';
76+
return vscode.l10n.t('Premium request quota exceeded');
7677
case 403:
77-
return 'GitHub Coding Agent is not enabled for this repository';
78+
return vscode.l10n.t('GitHub Coding Agent is not enabled for this repository');
7879
case 404:
79-
return 'Repository not found';
80+
return vscode.l10n.t('Repository not found');
8081
case 409:
81-
return 'A Coding Agent pull request already exists';
82+
return vscode.l10n.t('A Coding Agent pull request already exists');
8283
case 500:
83-
return 'Server error';
84+
return vscode.l10n.t('Server error');
8485
default:
85-
return `Error: ${status}`;
86+
return vscode.l10n.t('Error: {0}', status);
8687
}
8788
}
8889

0 commit comments

Comments
 (0)