Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API. Co-authored-by: Cursor <cursoragent@cursor.com>
188 lines
6.2 KiB
TypeScript
188 lines
6.2 KiB
TypeScript
export type Locale = "zh" | "en" | "ja" | "vi" | "th";
|
|
|
|
export type EntryCardCopy = {
|
|
label: string;
|
|
title: string;
|
|
description: string;
|
|
};
|
|
|
|
export type Dictionary = {
|
|
htmlLang: string;
|
|
brandSubtitle: string;
|
|
heroTagline: string;
|
|
heroTaglineLine2: string;
|
|
copyright: string;
|
|
languageLabel: string;
|
|
liveBadge: string;
|
|
entryCards: Record<string, EntryCardCopy>;
|
|
about: {
|
|
title: string;
|
|
body: string;
|
|
backHome: string;
|
|
};
|
|
contact: {
|
|
title: string;
|
|
body: string;
|
|
liveCta: string;
|
|
vipCta: string;
|
|
backHome: string;
|
|
};
|
|
};
|
|
|
|
const zh: Dictionary = {
|
|
htmlLang: "zh-CN",
|
|
brandSubtitle: "数字游民",
|
|
heroTagline: "游民导航 · 地理套利 · 直播工具箱",
|
|
heroTaglineLine2: "一站开启自由生活",
|
|
copyright: "© {year} Nomadro",
|
|
languageLabel: "语言",
|
|
liveBadge: "LIVE",
|
|
entryCards: {
|
|
nav: {
|
|
label: "游民导航",
|
|
title: "出海赚美金",
|
|
description: "资源导航、工具推荐、出海指南",
|
|
},
|
|
arbitrage: {
|
|
label: "地理套利",
|
|
title: "AI 自动化杠杆",
|
|
description: "低成本工作室、自建云手机、自动化系统",
|
|
},
|
|
live: {
|
|
label: "直播工具箱",
|
|
title: "随时随地开播",
|
|
description: "推流工具、场景模板、直播变现一站搞定",
|
|
},
|
|
},
|
|
about: {
|
|
title: "关于 Nomadro",
|
|
body: "Nomadro 是中文数字游民操作系统,提供游民导航、地理套利、直播工具箱等模块,帮助更多人从固定工位走向自由生活与自由收入。",
|
|
backHome: "← 返回首页",
|
|
},
|
|
contact: {
|
|
title: "联系我们",
|
|
body: "加入数字游民社群,获取最新动态与交流机会。",
|
|
liveCta: "🎬 直播工具箱",
|
|
vipCta: "👑 会员社群",
|
|
backHome: "← 返回首页",
|
|
},
|
|
};
|
|
|
|
const en: Dictionary = {
|
|
htmlLang: "en",
|
|
brandSubtitle: "Digital Nomad",
|
|
heroTagline: "Nomad Nav · Geo Arbitrage · Live Toolkit",
|
|
heroTaglineLine2: "Your freedom lifestyle, in one place",
|
|
copyright: "© {year} Nomadro",
|
|
languageLabel: "Language",
|
|
liveBadge: "LIVE",
|
|
entryCards: {
|
|
nav: {
|
|
label: "Nomad Nav",
|
|
title: "Earn in USD overseas",
|
|
description: "Resource maps, tool picks, and go-abroad guides",
|
|
},
|
|
arbitrage: {
|
|
label: "Geo Arbitrage",
|
|
title: "AI automation leverage",
|
|
description: "Low-cost studios, self-hosted cloud phones, automation systems",
|
|
},
|
|
live: {
|
|
label: "Live Toolkit",
|
|
title: "Go live anywhere",
|
|
description: "Streaming tools, scene templates, and monetization in one place",
|
|
},
|
|
},
|
|
about: {
|
|
title: "About Nomadro",
|
|
body: "Nomadro is a digital nomad operating system for Chinese creators—covering nomad navigation, geo-arbitrage, and a live streaming toolkit—to help more people move from a fixed desk to freedom of life and income.",
|
|
backHome: "← Back to home",
|
|
},
|
|
contact: {
|
|
title: "Contact us",
|
|
body: "Join the digital nomad community for updates and connections.",
|
|
liveCta: "🎬 Live Toolkit",
|
|
vipCta: "👑 Members community",
|
|
backHome: "← Back to home",
|
|
},
|
|
};
|
|
|
|
const ja: Dictionary = {
|
|
...en,
|
|
htmlLang: "ja",
|
|
brandSubtitle: "デジタルノマド",
|
|
heroTagline: "ノマドナビ · 地理的アービトラージ · 配信ツール",
|
|
heroTaglineLine2: "自由なライフスタイルを、ひとつの場所で",
|
|
languageLabel: "言語",
|
|
about: {
|
|
title: "Nomadro について",
|
|
body: "Nomadro はデジタルノマド向けオペレーティングシステムです。ナビ・地理的裁定・配信ツールを統合し、固定の机から自由な生活と収入へ。",
|
|
backHome: "← ホームへ",
|
|
},
|
|
contact: {
|
|
title: "お問い合わせ",
|
|
body: "デジタルノマドコミュニティに参加して最新情報を受け取りましょう。",
|
|
liveCta: "🎬 配信ツール",
|
|
vipCta: "👑 会員コミュニティ",
|
|
backHome: "← ホームへ",
|
|
},
|
|
};
|
|
|
|
const vi: Dictionary = {
|
|
...en,
|
|
htmlLang: "vi",
|
|
brandSubtitle: "Digital Nomad",
|
|
heroTagline: "Điều hướng · Địa lý arbitrage · Bộ công cụ livestream",
|
|
heroTaglineLine2: "Lối sống tự do, tất cả tại một nơi",
|
|
languageLabel: "Ngôn ngữ",
|
|
about: {
|
|
title: "Về Nomadro",
|
|
body: "Nomadro là hệ điều hành cho digital nomad — điều hướng, địa lý arbitrage và bộ công cụ livestream.",
|
|
backHome: "← Về trang chủ",
|
|
},
|
|
contact: {
|
|
title: "Liên hệ",
|
|
body: "Tham gia cộng đồng digital nomad để nhận cập nhật.",
|
|
liveCta: "🎬 Bộ công cụ livestream",
|
|
vipCta: "👑 Cộng đồng hội viên",
|
|
backHome: "← Về trang chủ",
|
|
},
|
|
};
|
|
|
|
const th: Dictionary = {
|
|
...en,
|
|
htmlLang: "th",
|
|
brandSubtitle: "ดิจิทัลโนแมด",
|
|
heroTagline: "นำทาง · Geo Arbitrage · ชุดเครื่องมือไลฟ์",
|
|
heroTaglineLine2: "ไลฟ์สไตล์อิสระ ในที่เดียว",
|
|
languageLabel: "ภาษา",
|
|
about: {
|
|
title: "เกี่ยวกับ Nomadro",
|
|
body: "Nomadro คือระบบปฏิบัติการสำหรับดิจิทัลโนแมด — นำทาง การเก็งกำไรทางภูมิศาสตร์ และชุดเครื่องมือไลฟ์สตรีม",
|
|
backHome: "← กลับหน้าแรก",
|
|
},
|
|
contact: {
|
|
title: "ติดต่อเรา",
|
|
body: "เข้าร่วมคอมมูนิตี้ดิจิทัลโนแมดเพื่อรับข่าวสาร",
|
|
liveCta: "🎬 ชุดเครื่องมือไลฟ์",
|
|
vipCta: "👑 คอมมูนิตี้สมาชิก",
|
|
backHome: "← กลับหน้าแรก",
|
|
},
|
|
};
|
|
|
|
export const dictionaries: Record<Locale, Dictionary> = {
|
|
zh,
|
|
en,
|
|
ja,
|
|
vi,
|
|
th,
|
|
};
|
|
|
|
export const LOCALE_OPTIONS: { id: Locale; label: string }[] = [
|
|
{ id: "zh", label: "中文" },
|
|
{ id: "en", label: "English" },
|
|
{ id: "ja", label: "日本語" },
|
|
{ id: "vi", label: "Tiếng Việt" },
|
|
{ id: "th", label: "ไทย" },
|
|
];
|