chore: rebrand product as 省心推 and lock UI to zh-CN

Update server titles, web/desktop window/tray/document titles, login
copy, and electron build metadata to use the Chinese product name 省心推.
Drop the runtime locale switcher and en-US import — the app now ships
zh-CN only.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-01 11:03:55 +08:00
parent dca36ed1f6
commit 5a613abc33
16 changed files with 25 additions and 128 deletions
+3 -33
View File
@@ -1,44 +1,14 @@
import { createI18n } from "vue-i18n";
import enUS from "./messages/en-US";
import zhCN from "./messages/zh-CN";
export const LOCALE_STORAGE_KEY = "geo.admin.locale";
export const SUPPORTED_LOCALES = ["zh-CN", "en-US"] as const;
export type AppLocale = (typeof SUPPORTED_LOCALES)[number];
function resolveLocale(): AppLocale {
if (typeof window === "undefined") {
return "zh-CN";
}
const stored = window.localStorage.getItem(LOCALE_STORAGE_KEY);
if (stored && SUPPORTED_LOCALES.includes(stored as AppLocale)) {
return stored as AppLocale;
}
const browserLocale = window.navigator.language;
if (browserLocale.startsWith("zh")) {
return "zh-CN";
}
return "en-US";
}
const APP_LOCALE = "zh-CN";
export const i18n = createI18n({
legacy: false,
locale: resolveLocale(),
fallbackLocale: "en-US",
locale: APP_LOCALE,
fallbackLocale: APP_LOCALE,
messages: {
"zh-CN": zhCN,
"en-US": enUS,
},
});
export function setAppLocale(locale: AppLocale): void {
i18n.global.locale.value = locale;
if (typeof window !== "undefined") {
window.localStorage.setItem(LOCALE_STORAGE_KEY, locale);
}
}
+3 -3
View File
@@ -1,7 +1,7 @@
const zhCN = {
app: {
name: "GEO工具平台",
loginIntro: "面向企业的品牌资产管理与内容生产协作系统",
name: "省心推",
loginIntro: "面向企业和个人的品牌资产管理与内容生产协作系统",
},
locale: {
"zh-CN": "中文简体",
@@ -153,7 +153,7 @@ const zhCN = {
route: {
login: {
title: "欢迎回来",
description: "使用真实租户账号登录 GEO 工具平台。",
description: "登录省心推,开启品牌内容创作之旅",
},
workspace: {
title: "工作台",