Skip to content

Commit 9cc0cae

Browse files
authored
Merge pull request #84 from ethereum/fix-network-upgrade-summary-default-locale
fix: replace hardcoded value with DEFAULT_LOCALE constant
2 parents a43b47a + 9542fab commit 9cc0cae

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/components/History/NetworkUpgradeSummary.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,23 @@ import InlineLink from "../Link"
99
// TODO add Translation
1010
// import Translation from "../Translation"
1111

12+
// Utils
13+
import { getLocaleForNumberFormat } from "@/lib/utils/translations"
14+
15+
// Types
16+
import { Lang } from "@/lib/types"
17+
1218
// Data
1319
import NetworkUpgradeSummaryData from "../../data/NetworkUpgradeSummaryData"
1420

15-
// Utils
16-
// TODO
17-
// import { Lang } from "../../utils/languages"
18-
// TODO
19-
// import { getLocaleForNumberFormat } from "../../utils/translations"
20-
2121
interface IProps {
2222
name: string
2323
}
2424

2525
const NetworkUpgradeSummary: React.FC<IProps> = ({ name }) => {
2626
const [formattedUTC, setFormattedUTC] = useState("")
27-
2827
const { locale } = useRouter()
29-
30-
// const localeForStatsBoxNumbers = getLocaleForNumberFormat(language as Lang)
31-
const localeForStatsBoxNumbers = "en"
28+
const localeForStatsBoxNumbers = getLocaleForNumberFormat(locale as Lang)
3229

3330
const {
3431
dateTimeAsString,

0 commit comments

Comments
 (0)