Skip to content

Commit b04ecc9

Browse files
Use pluralize
1 parent 3ee16f8 commit b04ecc9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/ql-vscode/src/view/model-editor/HiddenMethodsRow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
} from "@vscode/webview-ui-toolkit/react";
55
import * as React from "react";
66
import { styled } from "styled-components";
7+
import { pluralize } from "../../common/word";
78

89
const HiddenMethodsCell = styled(VSCodeDataGridCell)`
910
text-align: center;
@@ -26,7 +27,8 @@ export function HiddenMethodsRow({
2627
<VSCodeDataGridRow>
2728
<HiddenMethodsCell gridColumn="span 5">
2829
{someMethodsAreVisible && "And "}
29-
{numHiddenMethods} methods modeled in other CodeQL packs
30+
{pluralize(numHiddenMethods, "method", "methods")} modeled in other
31+
CodeQL packs
3032
</HiddenMethodsCell>
3133
</VSCodeDataGridRow>
3234
);

0 commit comments

Comments
 (0)