Bug 1945938 - Update weather to check geo location to determine temperature units instead of set browser language locale. r=home-newtab-reviewers,thecount

Differential Revision: https://phabricator.services.mozilla.com/D237159
This commit is contained in:
Reem H
2025-02-07 19:33:53 +00:00
parent 8ea08457ed
commit eef26b09d5

View File

@@ -306,7 +306,7 @@ export const PREFS_CONFIG = new Map([
"weather.temperatureUnits",
{
title: "Switch the temperature between Celsius and Fahrenheit",
getValue: args => (args.locale === "en-US" ? "f" : "c"),
getValue: ({ geo }) => (geo === "US" ? "f" : "c"),
},
],
[