feat: show local weather warnings on dashboard
This commit is contained in:
@@ -128,6 +128,10 @@ export function normalizeProvinceName(value: string | null | undefined) {
|
||||
return value ? provinceBySimplifiedName[simplifyProvinceName(value)] ?? null : null;
|
||||
}
|
||||
|
||||
export function getProvinceForSelection(locationProvince: string | null | undefined, stationId: string | null) {
|
||||
return normalizeProvinceName(locationProvince) ?? getProvinceForStation(stationId);
|
||||
}
|
||||
|
||||
export function formatProvinceName(province: Province, language: Language) {
|
||||
return provinceLabels[province][language];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user