Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.
TypeScript agent-skillscodex-clideskop-appdubbingimage-generationlocalizationskillsttsvideo-editingvideo-generationvideo-transcriptionvideo-translation
fix(i18n): keep Swedish fallbacks out of Chinese
Daniel Nylander397a42a68e77
diff --git a/apps/web/src/components/timeline/Timeline.tsx b/apps/web/src/components/timeline/Timeline.tsxindex ffb3005e..32d95618 100644--- a/apps/web/src/components/timeline/Timeline.tsx+++ b/apps/web/src/components/timeline/Timeline.tsx@@ -208,7 +208,7 @@ function getProcessStartedAt(process: ProcessBlock): number | undefined {function formatDuration(durationMs: number, language: AppLanguage): string {const totalSeconds = Math.max(1, Math.round(durationMs / 1000));- if (language === 'en-US') {+ if (language !== 'zh-CN') {if (totalSeconds < 60) return `${totalSeconds}s`;const minutes = Math.floor(totalSeconds / 60);const seconds = totalSeconds % 60;diff --git a/apps/web/src/features/conversation/CreatorDashboard.tsx b/apps/web/src/features/conversation/CreatorDashboard.tsxindex 19a7859d..110180a3 100644--- a/apps/web/src/features/conversation/CreatorDashboard.tsx+++ b/apps/web/src/features/conversation/CreatorDashboard.tsx@@ -367,17 +367,16 @@ function isVisibleCreatorSkill(skill: CreatorSkill): boolean {export function getCreatorSkillPromptHint(skill: CreatorSkill,- language: 'zh-CN' | 'en-US'+ language: 'zh-CN' | 'en-US' | 'sv-SE'): string {if (skill.promptHint !== undefined) {- return language === 'en-US' ? skill.promptHint.enUS : skill.promptHint.zhCN;+ return language === 'zh-CN' ? skill.promptHint.zhCN : skill.promptHint.enUS;}- const title = language === 'en-US'- ? englishCreatorLabels[skill.title] ?? skill.title- : skill.title;- return language === 'en-US'- ? `Describe what you want to create with ${title} and any requirements`- : `描述你希望用「${title}」完成的内容和要求`;+ if (language === 'zh-CN') {+ return `描述你希望用「${skill.title}」完成的内容和要求`;+ }+ const title = englishCreatorLabels[skill.title] ?? skill.title;+ return `Describe what you want to create with ${title} and any requirements`;}const englishCreatorLabels: Record<string, string> = {diff --git a/apps/web/src/i18n/LanguageProvider.tsx b/apps/web/src/i18n/LanguageProvider.tsxindex ef31c6a5..19a70760 100644--- a/apps/web/src/i18n/LanguageProvider.tsx+++ b/apps/web/src/i18n/LanguageProvider.tsx@@ -59,6 +59,7 @@ const messages = {'settings.language.system': '跟随系统({{language}})','settings.language.zh': '简体中文','settings.language.en': 'English',+ 'settings.language.sv': 'Svenska','settings.menuBar': '菜单栏显示','settings.browserMode': '浏览器模式','settings.closeWindow': '关闭窗口时',@@ -305,6 +306,7 @@ const messages = {'settings.language.system': 'System ({{language}})','settings.language.zh': '简体中文','settings.language.en': 'English',+ 'settings.language.sv': 'Swedish','settings.menuBar': 'Menu bar','settings.browserMode': 'Browser mode','settings.closeWindow': 'When closing the window',