Repository navigation
Conversation
[Low impact] The PR appears safe to merge. SummaryThe weather panel now uses
Reviews (1) · Last reviewed commit: "Respect LC_MEASUREMENT and LC_ALL for we..." · Reviewed by Greptile |
|
The locale fallback worked in a disposable Omarchy worker running this head,
This fixes the measurement-locale fallback; it does not persist the configured location's country, so it does not fully resolve #17415. That separate behavior is covered by the existing country-persistence proposals. No code changes were needed in this review. The |
|
your commit is in #21016. weather units still follow LC_MEASUREMENT, and LC_ALL still wins. the hero layout from #20226 is on the same panel. @dhh @omarchybot if 21016 lands, this can close as superseded. |
|
Closed in #17443 |


Related to #17415 and #19570.
omarchy region formats(e.g.omarchy region formats en-IE) intentionally keepsLANG=en_US.UTF-8for UI text and setsLC_MEASUREMENT(along withLC_TIME,LC_NUMERIC,LC_MONETARY,LC_PAPER) to the chosen region locale.Previously,
shell/plugins/panels/weather/Panel.qmlpassedQt.locale().nametoModel.shouldUseImperial(...). BecauseQt.locale()followsLANG(en_US) rather thanLC_MEASUREMENT(en_IE.UTF-8), the weather panel fell back to°F/mphwheneverwttr.inhad not suppliedreportCountry.Changes
Model.measurementLocale(lcAll, lcMeasurement, fallbackLocale)inshell/plugins/panels/weather/Model.jsfollowing POSIX precedence (LC_ALL→LC_MEASUREMENT→ fallback system locale).shell/plugins/panels/weather/Panel.qmlto passModel.measurementLocale(Quickshell.env("LC_ALL"), Quickshell.env("LC_MEASUREMENT"), Qt.locale().name)intoModel.shouldUseImperial(...).test/shell.d/weather-units-test.sh.Verification
bash test/shell.d/weather-units-test.shpasses (5/5 assertions).LANG=en_US.UTF-8,LC_MEASUREMENT=en_IE.UTF-8) that the weather panel now displays°Candkm/heven without awttr.incountry response.Assisted by Gemini 4 Hydrogen (Reasoning: Medium)