The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
Update i18n.ts
Jareere5a60dcac2de
diff --git a/desktop/src/lib/i18n.ts b/desktop/src/lib/i18n.tsindex 3f3186c9..cb0fcc05 100644--- a/desktop/src/lib/i18n.ts+++ b/desktop/src/lib/i18n.ts@@ -1,6 +1,7 @@import { useSyncExternalStore } from "react";import en from "../locales/en.json";+import zhCN from "../locales/zh-CN.json";/*** The UI language.@@ -40,13 +41,16 @@ export type PluralKey = PluralBase<MsgKey>;* Native names, never translated: whoever landed in a language they cannot* read must still be able to find their own in the picker.*/-export const LOCALES = [{ id: "en", name: "English" }] as const;+export const LOCALES = [+ { id: "en", name: "English" },+ { id: "zh-CN", name: "简体中文" },+] as const;export type LocaleId = (typeof LOCALES)[number]["id"];// Record<MsgKey, string> makes a catalog missing keys fail `tsc`, before the// friendlier i18n.test.ts even runs.-const CATALOGS: Record<LocaleId, Record<MsgKey, string>> = { en };+const CATALOGS: Record<LocaleId, Record<MsgKey, string>> = { en, "zh-CN": zhCN };const STORAGE_KEY = "wolfcut.locale";