Skip to content

Commit 4c47a03

Browse files
authored
Localize template strings (#8312)
1 parent 2006a97 commit 4c47a03

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/github/createPRViewProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,10 +820,10 @@ export class CreatePullRequestViewProvider extends BaseCreatePullRequestViewProv
820820
templates.map((template, index) => {
821821
// Try to extract a meaningful name from the template (first line or first few chars)
822822
const firstLine = template.split('\n')[0].trim();
823-
const label = firstLine || `Template ${index + 1}`;
823+
const label = firstLine || vscode.l10n.t('Template {0}', index + 1);
824824
return {
825825
label: label.substring(0, 50) + (label.length > 50 ? '...' : ''),
826-
description: `${template.length} characters`,
826+
description: vscode.l10n.t('{0} characters', template.length),
827827
template: template
828828
};
829829
}),

0 commit comments

Comments
 (0)