Promote Pro trial and rename settlement source to station
This commit is contained in:
@@ -2392,18 +2392,17 @@ export function getCityProfileStats(detail: CityDetail, locale: Locale = "zh-CN"
|
||||
const noaaCode = getNoaaStationCode(detail);
|
||||
const noaaName = getNoaaStationName(detail);
|
||||
return isEnglish(locale)
|
||||
? `NOAA ${noaaCode} (${noaaName})`
|
||||
: `NOAA ${noaaCode}(${noaaName})`;
|
||||
? `${noaaName}${noaaCode ? ` (${noaaCode})` : ""}`
|
||||
: `${noaaName}${noaaCode ? `(${noaaCode})` : ""}`;
|
||||
}
|
||||
if (sourceCode === "wunderground") {
|
||||
const stationName = String(
|
||||
detail.current?.settlement_source_label ||
|
||||
detail.risk?.airport ||
|
||||
"Wunderground",
|
||||
).trim();
|
||||
return isEnglish(locale)
|
||||
? `${stationName} (Wunderground)`
|
||||
: `${stationName}(Wunderground)`;
|
||||
const stationName = String(
|
||||
detail.current?.station_name || detail.risk?.airport || "",
|
||||
).trim();
|
||||
const stationCode = String(
|
||||
detail.current?.station_code || detail.risk?.icao || "",
|
||||
).trim();
|
||||
if (stationName) {
|
||||
return `${stationName}${stationCode ? ` (${stationCode})` : ""}`;
|
||||
}
|
||||
const tag = getObservationSourceTag(detail);
|
||||
if (sourceCode === "mgm") {
|
||||
@@ -2418,8 +2417,8 @@ export function getCityProfileStats(detail: CityDetail, locale: Locale = "zh-CN"
|
||||
{
|
||||
label: isOfficialSource
|
||||
? isEnglish(locale)
|
||||
? "Settlement source"
|
||||
: "结算源"
|
||||
? "Settlement station"
|
||||
: "结算站点"
|
||||
: isEnglish(locale)
|
||||
? "Settlement airport"
|
||||
: "结算机场",
|
||||
|
||||
@@ -31,7 +31,7 @@ const MESSAGES: Record<Locale, Record<string, string>> = {
|
||||
"sidebar.group.low": "近期偏弱",
|
||||
"sidebar.group.other": "样本不足",
|
||||
|
||||
"dashboard.loading": "正在同步站点观测与结算源,请稍候...",
|
||||
"dashboard.loading": "正在同步站点观测与结算站点信息,请稍候...",
|
||||
|
||||
"detail.closeAria": "关闭城市详情面板",
|
||||
"detail.waitSelect": "等待选择城市",
|
||||
@@ -195,7 +195,7 @@ const MESSAGES: Record<Locale, Record<string, string>> = {
|
||||
"sidebar.group.other": "Low Sample",
|
||||
|
||||
"dashboard.loading":
|
||||
"Synchronizing station observations and settlement feeds...",
|
||||
"Synchronizing station observations and settlement station data...",
|
||||
|
||||
"detail.closeAria": "Close city detail panel",
|
||||
"detail.waitSelect": "Waiting for city selection",
|
||||
|
||||
Reference in New Issue
Block a user