Skip to content

Commit

Permalink
Pluralize the regions
Browse files Browse the repository at this point in the history
  • Loading branch information
jaalah committed Dec 4, 2024
1 parent 0a0bfa5 commit 915e201
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { TableCell } from 'src/components/TableCell';
import { useRegionsQuery } from 'src/queries/regions/regions';
import { pluralize } from 'src/utilities/pluralize';
import { getRegionsByRegionId } from 'src/utilities/regions';

import type { ObjectStorageKey, ObjectStorageKeyRegions } from '@linode/api-v4';
Expand Down Expand Up @@ -45,7 +46,7 @@ export const HostNameTableCell = (props: Props) => {
{formattedFirstEndpoint} 
{showMultipleRegions ? (
<>
| +{regions.length - 1} {pluralize('region', 'regions', regions.length - 1)} |&nbsp;
| + {pluralize('region', 'regions', regions.length - 1)} |&nbsp;
<StyledLinkButton
onClick={() => {
setHostNames(regions);
Expand Down

0 comments on commit 915e201

Please sign in to comment.