diff --git a/apps/electron/app/package.json b/apps/electron/app/package.json index 2dc23cf2..dedfe44f 100644 --- a/apps/electron/app/package.json +++ b/apps/electron/app/package.json @@ -1,7 +1,7 @@ { "name": "mediago", "version": "3.5.0", - "description": "A powerful and easy-to-use online video downloader", + "description": "mediago installer", "main": "main/index.js", "type": "module", "author": "caorushizi", diff --git a/apps/electron/installer/installer.nsh b/apps/electron/installer/installer.nsh index b1f6cf36..226736db 100644 --- a/apps/electron/installer/installer.nsh +++ b/apps/electron/installer/installer.nsh @@ -52,5 +52,5 @@ ; Trade-off: title bar reads "Setup - mediago-community 3.5.0" in every ; locale instead of the translated "Installazione di ..." — acceptable. ; --------------------------------------------------------------------- - Caption "Setup - ${PRODUCT_NAME} ${VERSION}" + BrandingText "${PRODUCT_NAME} ${VERSION}" !macroend diff --git a/apps/ui/src/pages/setting-page/index.tsx b/apps/ui/src/pages/setting-page/index.tsx index c4661795..bfd42466 100644 --- a/apps/ui/src/pages/setting-page/index.tsx +++ b/apps/ui/src/pages/setting-page/index.tsx @@ -250,6 +250,7 @@ const SettingPage: React.FC = () => { { label: t("followSystem"), value: AppLanguage.System }, { label: t("chinese"), value: AppLanguage.ZH }, { label: t("english"), value: AppLanguage.EN }, + { label: t("italian"), value: AppLanguage.IT }, ]} placeholder={t("pleaseSelectLanguage")} allowClear={false} diff --git a/packages/shared/common/src/i18n/config.ts b/packages/shared/common/src/i18n/config.ts index 60c61589..530f3c2e 100644 --- a/packages/shared/common/src/i18n/config.ts +++ b/packages/shared/common/src/i18n/config.ts @@ -7,7 +7,7 @@ export const BASE_I18N_OPTIONS = { } as const; /** - * Resolve a stored AppStore.language value to a real i18n key ("zh" | "en"). + * Resolve a stored AppStore.language value to a real i18n key ("zh" | "en" | "it"). * * The persisted language may be `"system"` (meta value meaning "follow OS locale"). * Each process resolves it at apply-time by passing its own locale source: @@ -19,8 +19,8 @@ export const BASE_I18N_OPTIONS = { export function resolveAppLanguage( language: string | undefined, systemLocale: string | undefined, -): "zh" | "en" { - if (language === "zh" || language === "en") { +): "zh" | "en" | "it" { + if (language === "zh" || language === "en") || language === "it") { return language; } return (systemLocale ?? "").toLowerCase().startsWith("zh") ? "zh" : "en"; diff --git a/packages/shared/common/src/i18n/resources/index.ts b/packages/shared/common/src/i18n/resources/index.ts index e54ccd0b..118d37a3 100644 --- a/packages/shared/common/src/i18n/resources/index.ts +++ b/packages/shared/common/src/i18n/resources/index.ts @@ -1,13 +1,15 @@ import { en } from "./en"; import { zh } from "./zh"; +import { it } from "./it"; export const i18nResources = { en, zh, + it, } as const; -export const SUPPORTED_LANGUAGES = ["en", "zh"] as const; +export const SUPPORTED_LANGUAGES = ["en", "zh", "it"] as const; export const DEFAULT_BACKEND_NAMESPACE = "backend" as const; export const DEFAULT_FRONTEND_APP = "main" as const; -export { en, zh }; +export { en, zh, it }; diff --git a/packages/shared/common/src/types/index.ts b/packages/shared/common/src/types/index.ts index 651f4b42..fa0c1b50 100644 --- a/packages/shared/common/src/types/index.ts +++ b/packages/shared/common/src/types/index.ts @@ -105,6 +105,7 @@ export enum AppLanguage { System = "system", ZH = "zh", EN = "en", + IT = "it", } export interface DownloadContext {