Skip to content

Commit

Permalink
localize numbers (#90248)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzj authored and pull[bot] committed Sep 3, 2024
1 parent a7b016b commit 8804038
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import formatNumber from '@automattic/components/src/number-formatters/lib/format-number';
import formatCurrency from '@automattic/format-currency';
import { useTranslate } from 'i18n-calypso';
import { getLocaleSlug, useTranslate } from 'i18n-calypso';
import { useEffect } from 'react';
import { recordTracksEvent } from 'calypso/lib/analytics/tracks';
import {
Expand Down Expand Up @@ -48,7 +48,7 @@ function getStepsForTiers( tiers: StatsPlanTierUI[], currencyCode: string ) {

// Return the new step with string values.
return {
lhValue: formatNumber( tier.views ),
lhValue: formatNumber( tier.views, getLocaleSlug() ?? 'en' ),
rhValue: price,
originalPrice: tier.price,
upgradePrice: tierUpgradePricePerMonth
Expand Down

0 comments on commit 8804038

Please sign in to comment.