Skip to content

Commit bc51add

Browse files
authored
git - Add localization comment for Publish Branch action button (microsoft#155053)
* Add localization comment for Publish Branch action button * Pull request feedback
1 parent b79eaca commit bc51add

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/git/src/actionButton.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ export class ActionButtonCommand {
189189
return {
190190
command: {
191191
command: 'git.publish',
192-
title: localize('scm publish branch action button title', "{0} Publish Branch", '$(cloud-upload)'),
192+
title: localize({ key: 'scm publish branch action button title', comment: ['{Locked="Branch"}', 'Do not translate "Branch" as it is a git term'] }, "{0} Publish Branch", '$(cloud-upload)'),
193193
tooltip: this.state.isSyncInProgress ?
194-
localize('scm button publish branch running', "Publishing Branch...") :
195-
localize('scm button publish branch', "Publish Branch"),
194+
localize({ key: 'scm button publish branch running', comment: ['{Locked="Branch"}', 'Do not translate "Branch" as it is a git term'] }, "Publishing Branch...") :
195+
localize({ key: 'scm button publish branch', comment: ['{Locked="Branch"}', 'Do not translate "Branch" as it is a git term'] }, "Publish Branch"),
196196
arguments: [this.repository.sourceControl],
197197
},
198198
enabled: !this.state.isSyncInProgress

0 commit comments

Comments
 (0)