fix(weather): day-local named anchor, cache ttl and past-days forecast window (#2167)

This commit is contained in:
Maurice
2026-09-01 15:48:37 +02:00
committed by Maurice
parent c21e86e3bd
commit 03bd5c77af
41 changed files with 568 additions and 105 deletions
+2 -2
View File
@@ -15,10 +15,10 @@ function release(): void {
else active--
}
export async function fetchWeather(lat: number, lng: number, date: string) {
export async function fetchWeather(lat: number, lng: number, date: string, lang?: string) {
await acquire()
try {
return await weatherApi.get(lat, lng, date)
return await weatherApi.get(lat, lng, date, lang)
} finally {
release()
}