From 7257f7192ab20189dd02ed6a00123621543d7e02 Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Thu, 2 Jul 2020 14:55:29 -0500 Subject: [PATCH] fix language code format mismatch --- ui/app/hooks/useTransactionTimeRemaining.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/hooks/useTransactionTimeRemaining.js b/ui/app/hooks/useTransactionTimeRemaining.js index c1d5ddd258d1..1f959c82f6ea 100644 --- a/ui/app/hooks/useTransactionTimeRemaining.js +++ b/ui/app/hooks/useTransactionTimeRemaining.js @@ -50,7 +50,7 @@ export function useTransactionTimeRemaining ( const featureFlags = useSelector(getFeatureFlags) const transactionTimeFeatureActive = featureFlags?.transactionTime - const rtf = new Intl.RelativeTimeFormat(locale, { numeric: 'auto', style: 'narrow' }) + const rtf = new Intl.RelativeTimeFormat(locale.replace('_', '-'), { numeric: 'auto', style: 'narrow' }) // Memoize this value so it can be used as a dependency in the effect below const initialTimeEstimate = useMemo(() => {