+
{copy?.eyebrow || tx("从一句你好开始", "A HELLO GOES A LONG WAY")}
+
{copy?.title || tx("下一位同频朋友,也许就在这里。", "Your next connection could be right here.")}
+
{copy?.description || tx("先关注感兴趣的人,再看介绍、找话题,按自己的节奏认识。", "Save someone interesting, explore their story, and connect at your own pace.")}
+
{tx("写我的介绍", "Create my profile")}
+
+
+
+
+
+
+
+ {[{ id: "all", title: tx("全部", "Everyone") }, { id: "online", title: tx("在线状态", "Online status") }, { id: "saved", title: tx("我关注的", "Following") }].map(f => (
+ ))}
+
+
{[
- { id: "all", title: "全部" },
- { id: "online", title: "示例在线" },
- { id: "saved", title: "我关注的" },
- ].map((f) => (
-
- ))}
-
-
-
-
-
-
-
-
+ { label: tx("职业", "Profession"), value: profession, set: setProfession, options: options.professions },
+ { label: tx("兴趣", "Interest"), value: interest, set: setInterest, options: options.interests },
+ { label: tx("语言", "Language"), value: language, set: setLanguage, options: options.languages },
+ ].map(field =>
)}
+
+
{tx("行程仅按本人填写的信息筛选;在线不代表正在当地。", "Travel filters use declared profile status. Online does not mean currently in a city.")}
+ {chips.length > 0 &&
{chips.map(chip => )}
}
- {list.map((person, index) => (
-
-
-
- {person.online ? : null}
-
-
- {person.name}
- {person.id === SELF_MEMBER_ID ? " · 我" : ""}
-
-
- {person.title}
- {person.vibe ? ` · ${person.vibe.split("·")[0].trim()}` : ""}
-
-
- {person.city.split("·")[0].trim()}
- {person.tags[0] ? ` · ${person.tags[0]}` : ""}
-
-
- {person.lookingFor}
-
+
+
+
{notice}
+
+ {list.map(person =>
+
+ {person.online ? tx("在线状态", "Online status") : tx("探索同频", "Open to connection")}
+
+
+ {person.name}{person.id === SELF_MEMBER_ID ? tx(" · 我", " · You") : ""}
+ {tx(person.title)}
+ {tx(person.city)}
- ))}
- {!list.length && (
-
-
-
- )}
-
-
-
-
- 写我的介绍
-
+
{person.tags.slice(0, 3).map(tag => )}
+
{tx(person.lookingFor)}
+
{tx("看看介绍", "View profile")}
+ {person.id !== SELF_MEMBER_ID &&
}
+ )}
+ {!list.length &&
+
+ }
);
}
diff --git a/src/modules/social/lib/discoveryRoster.ts b/src/modules/social/lib/discoveryRoster.ts
index 818cc2b..52af79f 100644
--- a/src/modules/social/lib/discoveryRoster.ts
+++ b/src/modules/social/lib/discoveryRoster.ts
@@ -84,6 +84,7 @@ export function profileToMember(
bio: profile.bio.trim() || "刚写好介绍,想认识同频的人。",
vibe: status === "here" ? "同城想出来" : online ? "在线" : "刚出现",
online,
+ status,
lookingFor:
(profile.lookingFor || "").trim() ||
(profile.intents || "").replace(/,/g, " · ") ||
diff --git a/src/modules/social/lib/rankDiscovery.ts b/src/modules/social/lib/rankDiscovery.ts
index 8807d01..94376bf 100644
--- a/src/modules/social/lib/rankDiscovery.ts
+++ b/src/modules/social/lib/rankDiscovery.ts
@@ -89,6 +89,7 @@ export function discoveryItemToMember(item: {
bio: item.bio || "",
vibe: item.status === "here" ? "同城想出来" : item.online ? "在线" : "刚出现",
online: Boolean(item.online),
+ status: item.status,
lookingFor: item.lookingFor || "想认识同频游民",
gender: (item.gender as SocialRosterMember["gender"]) || "f",
availability: item.availability || "",
diff --git a/src/modules/social/lib/rosterMock.ts b/src/modules/social/lib/rosterMock.ts
index 40ccafa..91f5231 100644
--- a/src/modules/social/lib/rosterMock.ts
+++ b/src/modules/social/lib/rosterMock.ts
@@ -10,6 +10,8 @@ export type SocialRosterMember = {
bio: string;
vibe: string;
online: boolean;
+ /** Explicit declared travel status; independent of online presence. */
+ status?: string;
lookingFor: string;
gender: "f" | "m";
languages?: string[];
diff --git a/src/modules/social/lib/useSocialI18n.ts b/src/modules/social/lib/useSocialI18n.ts
index 88b27aa..9fdf760 100644
--- a/src/modules/social/lib/useSocialI18n.ts
+++ b/src/modules/social/lib/useSocialI18n.ts
@@ -26,7 +26,9 @@ export function useSocialI18n(): {
setLocale: (locale: SocialLocale) => void;
} {
const { locale: portalLocale, setLocale: setPortalLocale, ready } = useLocale();
- const locale = toSocialLocale(portalLocale);
+ // Match the portal's server fallback until audience detection is ready.
+ // Browser language/font signals can differ from the server on first render.
+ const locale: SocialLocale = ready ? toSocialLocale(portalLocale) : "zh";
const dict = useMemo(() => getSocialDictionary(locale), [locale]);
// Keep module-level translator in sync for nested non-hook call sites.
{selectedCopy?.eyebrow || selected.step}
{selectedCopy?.title || selected.title}
{selectedCopy?.description || selected.description}