From 9095ae3f47cf507a7166048db6000d514510099e Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Fri, 6 Nov 2020 11:17:59 -0600 Subject: [PATCH] add locale to page events (#9802) --- ui/app/contexts/metametrics.new.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/app/contexts/metametrics.new.js b/ui/app/contexts/metametrics.new.js index 724318bdd..4b810f3a6 100644 --- a/ui/app/contexts/metametrics.new.js +++ b/ui/app/contexts/metametrics.new.js @@ -168,6 +168,7 @@ export function MetaMetricsProvider({ children }) { // We do not want to send addresses or accounts in any events // Some routes include these as params. params: omit(params, ['account', 'address']), + locale: locale.replace('_', '-'), network, environment_type: environmentType, }, @@ -176,7 +177,14 @@ export function MetaMetricsProvider({ children }) { } previousMatch.current = match?.path } - }, [location, context, network, metaMetricsId, participateInMetaMetrics]) + }, [ + location, + locale, + context, + network, + metaMetricsId, + participateInMetaMetrics, + ]) return (