fix: add language env

This commit is contained in:
C4illin 2025-06-05 19:56:22 +02:00
parent ce41ee2387
commit f789d9dfe3
3 changed files with 15 additions and 12 deletions

View file

@ -4,7 +4,7 @@ import { BaseHtml } from "../components/base";
import { Header } from "../components/header";
import db from "../db/db";
import { Filename, Jobs } from "../db/types";
import { ALLOW_UNAUTHENTICATED, HIDE_HISTORY, WEBROOT } from "../helpers/env";
import { ALLOW_UNAUTHENTICATED, HIDE_HISTORY, LANGUAGE, WEBROOT } from "../helpers/env";
import { userService } from "./user";
export const history = new Elysia()
@ -133,7 +133,7 @@ export const history = new Elysia()
/>
</svg>
</td>
<td safe>{new Date(job.date_created).toLocaleTimeString()}</td>
<td safe>{new Date(job.date_created).toLocaleTimeString(LANGUAGE)}</td>
<td>{job.num_files}</td>
<td class="max-sm:hidden">{job.finished_files}</td>
<td safe>{job.status}</td>