From 2b5ae5e3a8669229c415fbed3151da82a576e7d7 Mon Sep 17 00:00:00 2001 From: Chris LaFreniere <40371649+chlafreniere@users.noreply.github.com> Date: Tue, 30 Jun 2020 17:10:46 -0700 Subject: [PATCH] Update singular vcore string (#11157) --- extensions/arc/src/localizedConstants.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/arc/src/localizedConstants.ts b/extensions/arc/src/localizedConstants.ts index 059cd349b6..1db6fab616 100644 --- a/extensions/arc/src/localizedConstants.ts +++ b/extensions/arc/src/localizedConstants.ts @@ -124,7 +124,11 @@ export function copiedToClipboard(name: string): string { return localize('arc.c export function clickTheTroubleshootButton(resourceType: string): string { return localize('arc.clickTheTroubleshootButton', "Click the troubleshoot button to open the Azure Arc {0} troubleshooting notebook.", resourceType); } export function numVCores(vCores: string | undefined): string { if (vCores && +vCores > 0) { - return localize('arc.numVCores', "{0} vCores", vCores); + if (+vCores === 1) { + return localize('arc.numVCore', "{0} vCore", vCores); + } else { + return localize('arc.numVCores', "{0} vCores", vCores); + } } else { return '-'; }