Skip to content

Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.

Format creation timestamps using the interface language

Bowen Xuef4c07404cecd
diff --git a/web/library.js b/web/library.js
index 72f88f0..59fedee 100644
--- a/web/library.js
+++ b/web/library.js
@@ -98,8 +98,9 @@ export async function libraryPage(t, {limit = 24, before = null, signal} = {}) {
export function videoTimestamp(row, t) {
const value = new Date(row.created_at);
- return Number.isNaN(value.getTime()) ? t('Saved video', '已保存的视频')
- : value.toLocaleString(undefined, {month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit'});
+ if (Number.isNaN(value.getTime())) return t('Saved video', '已保存的视频');
+ if (t('en', 'zh') === 'zh') return `${value.getMonth() + 1}月${value.getDate()}日 ${String(value.getHours()).padStart(2, '0')}:${String(value.getMinutes()).padStart(2, '0')}`;
+ return value.toLocaleString('en-US', {month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit', hour12: true});
}
export function videoDimensions(row) {