Update singular vcore string (#11157)

This commit is contained in:
Chris LaFreniere
2020-06-30 17:10:46 -07:00
committed by GitHub
parent a1f600657a
commit 2b5ae5e3a8

View File

@@ -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 '-';
}