Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: add a Time format setting and drop the redundant desktop update note (#16448)

Michael Han432344e1c32c
diff --git a/studio/frontend/src/components/assistant-ui/assistant-message-time.tsx b/studio/frontend/src/components/assistant-ui/assistant-message-time.tsx
index 186fac0ebbe..83f62634c83 100644
--- a/studio/frontend/src/components/assistant-ui/assistant-message-time.tsx
+++ b/studio/frontend/src/components/assistant-ui/assistant-message-time.tsx
@@ -4,6 +4,7 @@
import { useChatPreferencesStore } from "@/features/chat";
import { useLocale } from "@/i18n";
import { replyFinishedTimestamp } from "@/lib/message-timestamp";
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { useAuiState } from "@assistant-ui/react";
import { type FC, useState } from "react";
@@ -18,6 +19,7 @@ export const AssistantMessageTime: FC = () => {
* Tooltip: one per reply would subscribe to the modal-layer store. */
const ReplyTime: FC = () => {
const locale = useLocale();
+ useTimeFormat();
const finishedAt = useAuiState(({ message }) => replyFinishedTimestamp(message));
const [currentYear] = useState(() => new Date().getFullYear());
if (finishedAt === undefined) {
@@ -27,16 +29,25 @@ const ReplyTime: FC = () => {
return (
<time
dateTime={date.toISOString()}
- title={date.toLocaleString(locale, { dateStyle: "full", timeStyle: "medium" })}
+ title={date.toLocaleString(
+ locale,
+ withTimeFormat({ dateStyle: "full", timeStyle: "medium" }, locale),
+ )}
className="aui-assistant-message-time ml-[var(--icon-btn-inset)] mr-2 shrink-0 select-none text-ui-11p5 text-muted-foreground tabular-nums"
>
- {date.toLocaleString(locale, {
- month: "short",
- day: "numeric",
- ...(date.getFullYear() !== currentYear && { year: "numeric" }),
- hour: "numeric",
- minute: "2-digit",
- })}
+ {date.toLocaleString(
+ locale,
+ withTimeFormat(
+ {
+ month: "short",
+ day: "numeric",
+ ...(date.getFullYear() !== currentYear && { year: "numeric" }),
+ hour: "numeric",
+ minute: "2-digit",
+ },
+ locale,
+ ),
+ )}
</time>
);
};
diff --git a/studio/frontend/src/components/assistant-ui/message-menu-time.tsx b/studio/frontend/src/components/assistant-ui/message-menu-time.tsx
index c037eeaa2c8..7a6348df430 100644
--- a/studio/frontend/src/components/assistant-ui/message-menu-time.tsx
+++ b/studio/frontend/src/components/assistant-ui/message-menu-time.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { withTimeFormat } from "@/lib/time-format";
import { ActionBarMorePrimitive, useAuiState } from "@assistant-ui/react";
import { InformationCircleIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -55,7 +56,10 @@ export const MessageMenuTime: FC<{ onShowDetails: () => void }> = ({
</TooltipTrigger>
<TooltipContent side="top" className="tooltip-compact">
{date
- ? `${date.toLocaleString(locale, { dateStyle: "full", timeStyle: "short" })} · See response details`
+ ? `${date.toLocaleString(
+ locale,
+ withTimeFormat({ dateStyle: "full", timeStyle: "short" }, locale),
+ )} · See response details`
: "See response details"}
</TooltipContent>
</Tooltip>
diff --git a/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx b/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx
index 23fd50ec647..507e023e7e8 100644
--- a/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx
+++ b/studio/frontend/src/components/assistant-ui/message-response-details-sheet.tsx
@@ -3,6 +3,7 @@
"use client";
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import {
Sheet,
SheetCloseButton,
@@ -85,10 +86,10 @@ function formatDate(value: Date | number | string | undefined): string | null {
if (value == null) return null;
const date = value instanceof Date ? value : new Date(value);
if (Number.isNaN(date.getTime())) return null;
- return new Intl.DateTimeFormat(undefined, {
- dateStyle: "medium",
- timeStyle: "medium",
- }).format(date);
+ return new Intl.DateTimeFormat(
+ undefined,
+ withTimeFormat({ dateStyle: "medium", timeStyle: "medium" }),
+ ).format(date);
}
const TOOL_CATEGORY_LABELS: Record<string, string> = {
@@ -346,6 +347,7 @@ export const MessageResponseDetailsSheet: FC<{
onOpenChange: (open: boolean) => void;
}> = ({ open, onOpenChange }) => {
const [mounted, setMounted] = useState(open);
+ useTimeFormat();
if (open && !mounted) setMounted(true);
useEffect(() => {
if (open) return;
diff --git a/studio/frontend/src/components/assistant-ui/user-message-time.tsx b/studio/frontend/src/components/assistant-ui/user-message-time.tsx
index 29d11fe5800..56045af463d 100644
--- a/studio/frontend/src/components/assistant-ui/user-message-time.tsx
+++ b/studio/frontend/src/components/assistant-ui/user-message-time.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { useLocale, useT } from "@/i18n";
import { formatMessageDate } from "@/lib/format-message-date";
import { messageTimestamp } from "@/lib/message-timestamp";
@@ -15,15 +16,16 @@ import type { FC } from "react";
export const UserMessageTime: FC = () => {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const createdAt = useAuiState(({ message }) => messageTimestamp(message));
if (createdAt === undefined) {
return null;
}
const date = new Date(createdAt);
- const fullDate = date.toLocaleString(locale, {
- dateStyle: "full",
- timeStyle: "short",
- });
+ const fullDate = date.toLocaleString(
+ locale,
+ withTimeFormat({ dateStyle: "full", timeStyle: "short" }, locale),
+ );
// A button only so the keyboard reaches the tooltip. Clicking does nothing, so the
// cursor stays an arrow, even with pointer cursors on.
// The spacer takes the slack, so the tooltip opens only over the time itself.
diff --git a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
index eebab6d5736..5341f68541e 100644
--- a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
+++ b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { useAppShellReadySignal } from "@/components/app-readiness";
import { GuidedTour, useGuidedTourController } from "@/features/tour";
import { apiMonitorTourSteps } from "./tour";
@@ -151,14 +152,14 @@ const INSET_OPAQUE =
"bg-[color-mix(in_oklab,var(--muted)_40%,var(--card))] dark:bg-[rgb(255_255_255_/_calc(0.05*var(--contrast-wash-gain,1)))]";
function formatTime(value: number): string {
- return new Date(value * 1000).toLocaleTimeString([], {
- hour: "numeric",
- minute: "2-digit",
- });
+ return new Date(value * 1000).toLocaleTimeString(
+ [],
+ withTimeFormat({ hour: "numeric", minute: "2-digit" }),
+ );
}
function formatFullTime(value: number): string {
- return new Date(value * 1000).toLocaleString();
+ return new Date(value * 1000).toLocaleString(undefined, withTimeFormat());
}
function formatAgo(value: number, now: number): string {
@@ -548,6 +549,7 @@ const RequestRow = memo(function RequestRow({
onSelect: (id: string) => void;
now: number;
}): ReactElement {
+ useTimeFormat();
const age = (
<span title={formatFullTime(entry.started_at)}>
{formatAgo(entry.started_at, now)}
@@ -800,6 +802,7 @@ function RequestDetail({
detail?: ApiMonitorEntry;
loading: boolean;
}): ReactElement {
+ useTimeFormat();
// Prefer the detail only once it is as fresh as the list row, or the panel rewinds.
const detailIsCurrent =
detail != null &&
diff --git a/studio/frontend/src/features/browser/downloads-button.tsx b/studio/frontend/src/features/browser/downloads-button.tsx
index 2c02f40b09c..75646d076a9 100644
--- a/studio/frontend/src/features/browser/downloads-button.tsx
+++ b/studio/frontend/src/features/browser/downloads-button.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import {
DropdownMenu,
DropdownMenuContent,
@@ -94,6 +95,7 @@ function DownloadRow({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const failed = (key: "browser.downloads.openFailed" | "browser.pages.revealFailed") => (name: string) => {
toast.error(t(key, { name }));
onFailed();
@@ -101,7 +103,8 @@ function DownloadRow({
const target: Target = { ...item, keptId: item.id };
const open = missing ? undefined : openTarget(target, failed("browser.downloads.openFailed"));
const reveal = missing ? undefined : revealTarget(target, failed("browser.pages.revealFailed"));
- const time = new Intl.DateTimeFormat(locale, { timeStyle: "short" }).format(item.downloadedAt);
+ const timeOptions = withTimeFormat({ timeStyle: "short" }, locale);
+ const time = new Intl.DateTimeFormat(locale, timeOptions).format(item.downloadedAt);
const status = t(missing ? "browser.downloads.missing" : "browser.downloads.downloaded");
const revealLabel = t(revealLabelKey());
const run = (action: (() => void) | undefined) => () => {
diff --git a/studio/frontend/src/features/browser/internal-pages.tsx b/studio/frontend/src/features/browser/internal-pages.tsx
index 5b02ab6a844..56678a7aee2 100644
--- a/studio/frontend/src/features/browser/internal-pages.tsx
+++ b/studio/frontend/src/features/browser/internal-pages.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { ChevronDownStandardIcon, ChevronRightStandardIcon, ChevronUpStandardIcon } from "@/lib/chevron-icons";
import { Button } from "@/components/ui/button";
import { Calendar } from "@/components/ui/calendar";
@@ -531,7 +532,12 @@ function HistoryPage({ tabId }: { tabId: string }) {
[needle],
);
const { groups, more } = useDays(history, visitTime, matches, filter.bounds, limit);
- const timeFormat = useMemo(() => new Intl.DateTimeFormat(locale, { timeStyle: "short" }), [locale]);
+ const clock = useTimeFormat();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: clock is the trigger.
+ const timeFormat = useMemo(
+ () => new Intl.DateTimeFormat(locale, withTimeFormat({ timeStyle: "short" }, locale)),
+ [locale, clock],
+ );
const selected = useMemo(() => {
const ids = new Set(history.map((item) => item.id));
return new Set([...selection].filter((id) => ids.has(id)));
@@ -789,7 +795,12 @@ function DownloadsPage() {
const needle = query.trim().toLowerCase();
const matches = useMemo(() => nameMatches(needle), [needle]);
const { groups } = useDays(downloads, downloadTime, matches, filter.bounds);
- const timeFormat = useMemo(() => new Intl.DateTimeFormat(locale, { timeStyle: "short" }), [locale]);
+ const clock = useTimeFormat();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: clock is the trigger.
+ const timeFormat = useMemo(
+ () => new Intl.DateTimeFormat(locale, withTimeFormat({ timeStyle: "short" }, locale)),
+ [locale, clock],
+ );
const { missing, recheck } = useMissingDownloads(downloads);
return (
<div className="size-full overflow-auto bg-background">
diff --git a/studio/frontend/src/features/browser/new-tab-page.tsx b/studio/frontend/src/features/browser/new-tab-page.tsx
index f22e73fa2a9..da8f1667f38 100644
--- a/studio/frontend/src/features/browser/new-tab-page.tsx
+++ b/studio/frontend/src/features/browser/new-tab-page.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { ChevronDownStandardIcon, ChevronUpStandardIcon } from "@/lib/chevron-icons";
import { useLocale, useT } from "@/i18n";
import { cn } from "@/lib/utils";
@@ -296,9 +297,11 @@ export function NewTabPage({ tabId }: { tabId: string }) {
shownPage * RECENTS_PER_PAGE,
(shownPage + 1) * RECENTS_PER_PAGE,
);
+ const clock = useTimeFormat();
+ // biome-ignore lint/correctness/useExhaustiveDependencies: clock is the trigger.
const timeFormat = useMemo(
- () => new Intl.DateTimeFormat(locale, { timeStyle: "short" }),
- [locale],
+ () => new Intl.DateTimeFormat(locale, withTimeFormat({ timeStyle: "short" }, locale)),
+ [locale, clock],
);
const dateFormat = useMemo(
() => new Intl.DateTimeFormat(locale, { month: "short", day: "numeric" }),
diff --git a/studio/frontend/src/features/chat/components/research-activity-panel.tsx b/studio/frontend/src/features/chat/components/research-activity-panel.tsx
index c3f0af592dc..1301dadda0c 100644
--- a/studio/frontend/src/features/chat/components/research-activity-panel.tsx
+++ b/studio/frontend/src/features/chat/components/research-activity-panel.tsx
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { ChevronDownStandardIcon } from "@/lib/chevron-icons";
import { Button } from "@/components/ui/button";
import {
@@ -338,6 +339,7 @@ const ActivityRow = memo(function ActivityRow({
const setActivityOpen = useResearchRunStore(
(state) => state.setActivityOpen,
);
+ useTimeFormat();
const open =
storedOpen ??
(activity.state === "running" || activity.state === "action");
@@ -502,10 +504,10 @@ const ActivityRow = memo(function ActivityRow({
{activity.title}
</span>
<time className="shrink-0 text-ui-10p5 tabular-nums text-muted-foreground">
- {new Date(activity.createdAt).toLocaleTimeString([], {
- hour: "numeric",
- minute: "2-digit",
- })}
+ {new Date(activity.createdAt).toLocaleTimeString(
+ [],
+ withTimeFormat({ hour: "numeric", minute: "2-digit" }),
+ )}
</time>
{hasDetails ? (
<HugeiconsIcon icon={ChevronDownStandardIcon} className="size-3.5 shrink-0 text-muted-foreground transition-transform group-data-[state=open]/activity:rotate-180" />
diff --git a/studio/frontend/src/features/chat/openai-codex-connect.tsx b/studio/frontend/src/features/chat/openai-codex-connect.tsx
index 22f3f9e6d83..49ff85be3f3 100644
--- a/studio/frontend/src/features/chat/openai-codex-connect.tsx
+++ b/studio/frontend/src/features/chat/openai-codex-connect.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { copyToClipboard } from "@/lib/copy-to-clipboard";
@@ -46,6 +47,7 @@ export function OpenAICodexConnect({
initialFlow = null,
}: Props) {
const [flow, setFlow] = useState<CodexOAuthFlow | null>(initialFlow);
+ useTimeFormat();
const [callbackUrl, setCallbackUrl] = useState("");
const [busy, setBusy] = useState(false);
const [error, setError] = useState("");
@@ -197,7 +199,7 @@ export function OpenAICodexConnect({
</Button>
<p className="text-xs text-muted-foreground">
- Expires {new Date(flow.expires_at * 1000).toLocaleTimeString()}.
+ Expires {new Date(flow.expires_at * 1000).toLocaleTimeString(undefined, withTimeFormat())}.
</p>
</div>
) : null}
diff --git a/studio/frontend/src/features/export/export-page.tsx b/studio/frontend/src/features/export/export-page.tsx
index 5c7e51f21fb..2856878e2ff 100644
--- a/studio/frontend/src/features/export/export-page.tsx
+++ b/studio/frontend/src/features/export/export-page.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { useAppShellReadySignal } from "@/components/app-readiness";
import { SectionBox } from "@/components/section-box";
import { SegmentedControl } from "@/components/segmented-control";
@@ -206,6 +207,7 @@ function siblingGgufDirectory(sourcePath: string): string | null {
export function ExportPage() {
const t = useT();
+ useTimeFormat();
const signalReady = useAppShellReadySignal();
const { hfToken, setHfToken } = useHfTokenStore(
useShallow((s) => ({
@@ -1261,10 +1263,13 @@ export function ExportPage() {
const timeStr = tsMatch
? new Date(
Number(tsMatch[1]) * 1000,
- ).toLocaleString(undefined, {
- dateStyle: "medium",
- timeStyle: "short",
- })
+ ).toLocaleString(
+ undefined,
+ withTimeFormat({
+ dateStyle: "medium",
+ timeStyle: "short",
+ }),
+ )
: null;
return (
<SelectItem key={m.name} value={m.name}>
diff --git a/studio/frontend/src/features/library/chats/chats-items.tsx b/studio/frontend/src/features/library/chats/chats-items.tsx
index 0f5597d2084..61712389989 100644
--- a/studio/frontend/src/features/library/chats/chats-items.tsx
+++ b/studio/frontend/src/features/library/chats/chats-items.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { Checkbox } from "@/components/ui/checkbox";
import {
DropdownMenu,
@@ -741,6 +742,7 @@ export type CollectionRowLayout = "own" | "files" | { showLocation: boolean };
function FileColumns({ modified }: { modified: number }) {
const locale = useLocale();
+ useTimeFormat();
return (
<>
<span className={cn(FILE_LIST_COLUMNS.modified, FILE_LIST_COLUMNS.cell)}>
@@ -766,10 +768,10 @@ function groupedTime(
): string {
const date = new Date(ts);
if (bucket === "today" || bucket === "yesterday") {
- return date.toLocaleTimeString(locale, {
- hour: "numeric",
- minute: "2-digit",
- });
+ return date.toLocaleTimeString(
+ locale,
+ withTimeFormat({ hour: "numeric", minute: "2-digit" }, locale),
+ );
}
if (bucket === "week") {
return date.toLocaleDateString(locale, { weekday: "long" });
@@ -1070,6 +1072,7 @@ export function ChatRow({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const actions = useChatsActions();
const selected = actions.selection.has(chat.id);
const model = modelLabel(chat, actions.models);
@@ -1165,6 +1168,7 @@ export function ChatCard({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const actions = useChatsActions();
const selected = actions.selection.has(chat.id);
const selecting = actions.selection.size > 0;
@@ -1417,6 +1421,7 @@ export function ProjectCard({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const actions = useChatsActions();
const pinned = actions.pinnedProjects.has(project.id);
return (
@@ -1462,6 +1467,7 @@ export function ProjectRow({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const actions = useChatsActions();
const pinned = actions.pinnedProjects.has(project.id);
const sectionId = actions.projectSectionOf.get(project.id);
@@ -1647,6 +1653,7 @@ export function SectionCard({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const actions = useChatsActions();
return (
// biome-ignore lint/a11y/useKeyWithClickEvents: the name button is the keyboard target
@@ -1690,6 +1697,7 @@ export function SectionRow({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const actions = useChatsActions();
return (
// biome-ignore lint/a11y/useKeyWithClickEvents: the name button is the keyboard target
@@ -1779,6 +1787,7 @@ function FavoriteTile({
menu: ReactNode;
}) {
const locale = useLocale();
+ useTimeFormat();
const showTime = useLibrarySettingsStore((s) => s.showCardDates);
return (
<div className="group/library-card group/chat relative">
diff --git a/studio/frontend/src/features/library/components/library-cards.tsx b/studio/frontend/src/features/library/components/library-cards.tsx
index ae8a29e5edf..fbe5bbaf0bb 100644
--- a/studio/frontend/src/features/library/components/library-cards.tsx
+++ b/studio/frontend/src/features/library/components/library-cards.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat } from "@/lib/time-format";
import { Checkbox } from "@/components/ui/checkbox";
import { useLocale, useT } from "@/i18n";
import { cn } from "@/lib/utils";
@@ -210,6 +211,7 @@ function PlayButton({ item }: { item: LibraryItem }) {
export function ItemCard({ item }: { item: LibraryItem }) {
const locale = useLocale();
+ useTimeFormat();
const actions = useLibraryActions();
const showTime = useLibrarySettingsStore((s) => s.showCardDates);
const square = useLibrarySettingsStore((s) => s.imageLayout === "square");
diff --git a/studio/frontend/src/features/library/components/library-list.tsx b/studio/frontend/src/features/library/components/library-list.tsx
index d6b32342404..8cd3d6eaa61 100644
--- a/studio/frontend/src/features/library/components/library-list.tsx
+++ b/studio/frontend/src/features/library/components/library-list.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat } from "@/lib/time-format";
import { Checkbox } from "@/components/ui/checkbox";
import { type TranslationKey, useLocale, useT } from "@/i18n";
import { cn } from "@/lib/utils";
@@ -133,6 +134,7 @@ function Row({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
return (
<div
className={cn(
diff --git a/studio/frontend/src/features/library/components/library-preview.tsx b/studio/frontend/src/features/library/components/library-preview.tsx
index 0afb72480c0..3de51b7a537 100644
--- a/studio/frontend/src/features/library/components/library-preview.tsx
+++ b/studio/frontend/src/features/library/components/library-preview.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat } from "@/lib/time-format";
import { CodeToggleIcon } from "@/components/assistant-ui/code-toggle-icon";
import { CodeSourceView } from "@/components/code-source-view";
import { DocumentView, documentKind, isMarkdown, sheetDelimiter } from "@/components/file-viewer";
@@ -163,6 +164,7 @@ const READ_ONLY_REASONS: Record<NoteReadOnlyReason, TranslationKey> = {
function ModelDetails({ item }: { item: LibraryItem }) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const unknown = t("library.preview.unknown");
const rows: [string, string][] = [
[t("library.preview.type"), t(modelLabelKey(item) ?? "library.modelKind.model")],
@@ -508,6 +510,7 @@ export function LibraryPreview({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const [codeFor, setCodeFor] = useState<string | null>(null);
const showCode = item !== null && codeFor === item.id;
const body = item ? bodyFor(item) : "none";
diff --git a/studio/frontend/src/features/library/format.ts b/studio/frontend/src/features/library/format.ts
index c6a3401bcea..1e94b8000d4 100644
--- a/studio/frontend/src/features/library/format.ts
+++ b/studio/frontend/src/features/library/format.ts
@@ -3,6 +3,7 @@
import type { InterpolationValues, Locale, TranslationKey } from "@/i18n";
import { formatRelativeTime } from "../../i18n/relative-time.ts";
+import { withTimeFormat } from "../../lib/time-format.ts";
type Translate = (key: TranslationKey, values?: InterpolationValues) => string;
@@ -30,7 +31,10 @@ export function formatCardTime(ts: number, locale: Locale, now: number = Date.no
// Rounded: DST days are 23 or 25 hours long.
const days = Math.round((startOfDay(today) - startOfDay(then)) / DAY_MS);
if (days === 0) {
- return then.toLocaleTimeString(locale, { hour: "numeric", minute: "2-digit" });
+ return then.toLocaleTimeString(
+ locale,
+ withTimeFormat({ hour: "numeric", minute: "2-digit" }, locale),
+ );
}
if (days === 1) {
const word = yesterday(locale);
diff --git a/studio/frontend/src/features/recipe-studio/executions/execution-helpers.ts b/studio/frontend/src/features/recipe-studio/executions/execution-helpers.ts
index 43f490c4e55..4a4a2299d9f 100644
--- a/studio/frontend/src/features/recipe-studio/executions/execution-helpers.ts
+++ b/studio/frontend/src/features/recipe-studio/executions/execution-helpers.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { withTimeFormat } from "../../../lib/time-format.ts";
import type {
RecipeExecutionAnalysis,
RecipeExecutionRecord,
@@ -18,10 +19,10 @@ export function formatSavedLabel(savedAt: number | null): string {
if (!savedAt) {
return "Not saved yet";
}
- const time = new Date(savedAt).toLocaleTimeString([], {
- hour: "numeric",
- minute: "2-digit",
- });
+ const time = new Date(savedAt).toLocaleTimeString(
+ [],
+ withTimeFormat({ hour: "numeric", minute: "2-digit" }),
+ );
return `Saved ${time}`;
}
diff --git a/studio/frontend/src/features/recipe-studio/executions/runtime.ts b/studio/frontend/src/features/recipe-studio/executions/runtime.ts
index e37a1c99293..c0d96205aab 100644
--- a/studio/frontend/src/features/recipe-studio/executions/runtime.ts
+++ b/studio/frontend/src/features/recipe-studio/executions/runtime.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { withTimeFormat } from "@/lib/time-format";
import type { JobEvent, JobStatusResponse } from "../api";
import type {
RecipeExecutionBatch,
@@ -18,10 +19,10 @@ const MAX_LOG_LINES = 1500;
function formatEventTime(ts: unknown): string {
if (typeof ts !== "number" || !Number.isFinite(ts)) {
- return new Date().toLocaleTimeString();
+ return new Date().toLocaleTimeString(undefined, withTimeFormat());
}
const ms = ts > 10_000_000_000 ? ts : ts * 1000;
- return new Date(ms).toLocaleTimeString();
+ return new Date(ms).toLocaleTimeString(undefined, withTimeFormat());
}
export function appendExecutionLogLine(lines: string[], nextLine: string): string[] {
diff --git a/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts b/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts
index cc9a551e37a..3146fab7a77 100644
--- a/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts
+++ b/studio/frontend/src/features/recipe-studio/hooks/use-recipe-persistence.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat } from "@/lib/time-format";
import { useCallback, useEffect, useMemo, useState } from "react";
import { copyToClipboard } from "@/lib/copy-to-clipboard";
import { toastError, toastSuccess } from "@/shared/toast";
@@ -250,6 +251,7 @@ export function useRecipePersistence({
const saveTone: SaveTone =
!isDirty && Boolean(lastSavedAt) ? "success" : "error";
const savedAtLabel = formatSavedLabel(lastSavedAt);
+ useTimeFormat();
useEffect(() => {
setInitialRecipeReady(false);
diff --git a/studio/frontend/src/features/scheduled-tasks/schedule.ts b/studio/frontend/src/features/scheduled-tasks/schedule.ts
index 42393707249..764f8586095 100644
--- a/studio/frontend/src/features/scheduled-tasks/schedule.ts
+++ b/studio/frontend/src/features/scheduled-tasks/schedule.ts
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { withTimeFormat } from "../../lib/time-format.ts";
/** Mirrors core/scheduled_tasks/schedule.py: hourly intervals use elapsed time; calendar schedules use the task's zone. */
export type TaskSchedule =
@@ -158,9 +159,8 @@ function relativeFormat(locale: string): Intl.RelativeTimeFormat {
export function formatClock(time: string, locale: string): string {
const [hour, minute] = time.split(":").map(Number);
- return dateFormat(locale, { hour: "numeric", minute: "2-digit", timeZone: "UTC" }).format(
- Date.UTC(2000, 0, 1, hour, minute),
- );
+ const options = withTimeFormat({ hour: "numeric", minute: "2-digit", timeZone: "UTC" }, locale);
+ return dateFormat(locale, options).format(Date.UTC(2000, 0, 1, hour, minute));
}
/** Quarter-hour times plus `current` when it falls between them. */
diff --git a/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx b/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx
index a7c9ba4a69d..b6d32129576 100644
--- a/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx
+++ b/studio/frontend/src/features/scheduled-tasks/task-dialog.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat } from "@/lib/time-format";
import { InformationCircleIcon } from "@hugeicons/core-free-icons";
import { Folder01Icon } from "@/lib/folder-icons";
import { HugeiconsIcon } from "@hugeicons/react";
@@ -232,6 +233,7 @@ export function TaskDialog({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const ids = useId();
const promptRef = useRef<HTMLTextAreaElement>(null);
const create = useScheduledTasksStore((state) => state.create);
diff --git a/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx b/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx
index cc6df2156f4..1704e8abcbb 100644
--- a/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx
+++ b/studio/frontend/src/features/scheduled-tasks/tasks-page.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { TrashIcon } from "@/lib/hugeicons-derived";
import {
Edit03Icon,
@@ -131,11 +132,10 @@ function clockText(task: ScheduledTask, locale: string): string {
if (schedule.kind === "hourly") {
return task.nextRunAt === null
? "—"
- : new Intl.DateTimeFormat(locale, {
- hour: "numeric",
- minute: "2-digit",
- timeZone: task.timezone,
- }).format(task.nextRunAt);
+ : new Intl.DateTimeFormat(
+ locale,
+ withTimeFormat({ hour: "numeric", minute: "2-digit", timeZone: task.timezone }, locale),
+ ).format(task.nextRunAt);
}
return formatClock(schedule.kind === "once" ? schedule.at.split("T")[1] : schedule.time, locale);
}
@@ -172,6 +172,7 @@ function TaskRow({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const navigate = useNavigate();
const update = useScheduledTasksStore((state) => state.update);
const runNow = useScheduledTasksStore((state) => state.runNow);
diff --git a/studio/frontend/src/features/settings/components/data-library-controls.tsx b/studio/frontend/src/features/settings/components/data-library-controls.tsx
index b273c77acb0..a1133569d0b 100644
--- a/studio/frontend/src/features/settings/components/data-library-controls.tsx
+++ b/studio/frontend/src/features/settings/components/data-library-controls.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat } from "@/lib/time-format";
import { useMemo, useState, type ReactNode } from "react";
import { useLocale, useT, type TranslationKey } from "@/i18n";
import { useLibraryProjectLabels } from "./use-library-project-labels";
@@ -70,6 +71,7 @@ export function LibraryToolbar({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
const compare = useMemo(() => new Intl.Collator(locale).compare, [locale]);
const [projectOpen, setProjectOpen] = useState(false);
const projectLabel =
@@ -228,6 +230,7 @@ export function LibraryRow({
}) {
const t = useT();
const locale = useLocale();
+ useTimeFormat();
return (
<div className="flex min-w-0 items-center gap-3 py-3.5 text-sm">
{leading}
diff --git a/studio/frontend/src/features/settings/components/data-library.ts b/studio/frontend/src/features/settings/components/data-library.ts
index ee974c326b9..667e4c0cb0c 100644
--- a/studio/frontend/src/features/settings/components/data-library.ts
+++ b/studio/frontend/src/features/settings/components/data-library.ts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { withTimeFormat } from "../../../lib/time-format.ts";
export type LibrarySort =
| "default"
@@ -104,12 +105,18 @@ export function groupLibraryItems<T extends LibraryItem>(
export function formatLibraryDate(ms: number, locale?: string): string {
const date = new Date(ms);
return Number.isFinite(date.getTime())
- ? date.toLocaleString(locale, {
- year: "numeric",
- month: "short",
- day: "numeric",
- hour: "numeric",
- minute: "2-digit",
- })
+ ? date.toLocaleString(
+ locale,
+ withTimeFormat(
+ {
+ year: "numeric",
+ month: "short",
+ day: "numeric",
+ hour: "numeric",
+ minute: "2-digit",
+ },
+ locale,
+ ),
+ )
: "";
}
diff --git a/studio/frontend/src/features/settings/components/desktop-update-control.tsx b/studio/frontend/src/features/settings/components/desktop-update-control.tsx
index d99e313a159..f5279e56c10 100644
--- a/studio/frontend/src/features/settings/components/desktop-update-control.tsx
+++ b/studio/frontend/src/features/settings/components/desktop-update-control.tsx
@@ -11,17 +11,6 @@ function formatDesktopVersion(version: string): string {
return version.startsWith("v") ? version : `v${version}`;
}
-export function DesktopUpdateNote(): ReactElement | null {
- const t = useT();
- const update = useTauriUpdateController();
- if (!update) return null;
- return (
- <p className="pb-1 text-xs text-muted-foreground leading-relaxed">
- {t("settings.about.update.desktopManaged")}
- </p>
- );
-}
-
export function DesktopUpdateControl(): ReactElement | null {
const t = useT();
const update = useTauriUpdateController();
diff --git a/studio/frontend/src/features/settings/components/recent-dictations-view.tsx b/studio/frontend/src/features/settings/components/recent-dictations-view.tsx
index 9180da057e3..8962a97c3f8 100644
--- a/studio/frontend/src/features/settings/components/recent-dictations-view.tsx
+++ b/studio/frontend/src/features/settings/components/recent-dictations-view.tsx
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+import { useTimeFormat, withTimeFormat } from "@/lib/time-format";
import { ChevronLeftStandardIcon } from "@/lib/chevron-icons";
import {
AlertDialog,
@@ -60,13 +61,16 @@ type PendingDelete =
type SortOrder = "newest" | "oldest" | "az";
function formatDictationDate(ms: number): string {
- return new Date(ms).toLocaleString(undefined, {
- year: "numeric",
- month: "short",
- day: "numeric",
- hour: "numeric",
- minute: "2-digit",
- });
+ return new Date(ms).toLocaleString(
+ undefined,
+ withTimeFormat({
+ year: "numeric",
+ month: "short",
+ day: "numeric",
+ hour: "numeric",
+ minute: "2-digit",
+ }),
+ );
}
export function RecentDictationsView({
@@ -79,6 +83,7 @@ export function RecentDictationsView({
onBack: () => void;
}) {
const t = useT();
+ useTimeFormat();
const recentDictations = useVoiceSettingsStore((s) => s.recentDictations);
const removeRecentDictation = useVoiceSettingsStore(
(s) => s.removeRecentDictation,
diff --git a/studio/frontend/src/features/settings/components/update-studio-instructions.tsx b/studio/frontend/src/features/settings/components/update-studio-instructions.tsx
index 849299c4496..be0c604fcca 100644
--- a/studio/frontend/src/features/settings/components/update-studio-instructions.tsx
+++ b/studio/frontend/src/features/settings/components/update-studio-instructions.tsx
@@ -263,8 +263,8 @@ export function UpdateStudioInstructions({
{t("settings.about.update.title")}
</p>
) : null}
- {/* The check/update control and its explanation live in General, next
- to the version rows, so there is exactly one place to update from. */}
+ {/* The check/update control lives in General, next to the version
+ rows, so there is exactly one place to update from. */}
<UpdateDocsLinks />
</div>
);
diff --git a/studio/frontend/src/features/settings/settings-search.ts b/studio/frontend/src/features/settings/settings-search.ts
index 299f1d605ba..51c954210ed 100644
--- a/studio/frontend/src/features/settings/settings-search.ts
+++ b/studio/frontend/src/features/settings/settings-search.ts
@@ -20,6 +20,8 @@ export const SETTINGS_SEARCH_INDEX: Record<SettingsTab, TranslationKey[]> = {
"settings.appearance.language.title",
"settings.appearance.language.label",
"settings.appearance.language.spellCheck",
+ "settings.general.display.title",
+ "settings.general.display.timeFormat",
"settings.general.notifications.sectionTitle",
"settings.general.notifications.showLoadedModels",
"settings.general.notifications.updateReminders",
diff --git a/studio/frontend/src/features/settings/tabs/general-tab.tsx b/studio/frontend/src/features/settings/tabs/general-tab.tsx
index e73aaed5d1e..9e15c38e026 100644
--- a/studio/frontend/src/features/settings/tabs/general-tab.tsx
+++ b/studio/frontend/src/features/settings/tabs/general-tab.tsx
@@ -12,6 +12,13 @@ import {
DialogTitle,
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
+import {
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
+} from "@/components/ui/select";
import { Switch } from "@/components/ui/switch";
import { useChatRuntimeStore } from "@/features/chat";
// From the keys module, not the barrel or the store: both are in an import cycle with this file,
@@ -42,6 +49,12 @@ import {
setSpellCheck,
useSpellCheck,
} from "@/lib/spellcheck";
+import {
+ TIME_FORMAT_STORAGE_KEY,
+ type TimeFormat,
+ setTimeFormat,
+ useTimeFormat,
+} from "@/lib/time-format";
import { toast } from "@/lib/toast";
import { cn } from "@/lib/utils";
import { useEffect, useRef, useState } from "react";
@@ -74,10 +87,7 @@ import {
import { DesktopInstallTypeControl } from "../components/full-install-dialog";
import { ChangePasswordDialog } from "../components/change-password-dialog";
import { DesktopRepairControl } from "../components/desktop-repair-control";
-import {
- DesktopUpdateControl,
- DesktopUpdateNote,
-} from "../components/desktop-update-control";
+import { DesktopUpdateControl } from "../components/desktop-update-control";
import { DocumentsRagSection } from "../components/documents-rag-section";
import { LanguageSelect } from "../components/language-select";
import {
@@ -129,6 +139,7 @@ const PREFS_KEYS: string[] = [
INTERFACE_SCALE_STORAGE_KEY,
LOCALE_STORAGE_KEY,
SPELLCHECK_STORAGE_KEY,
+ TIME_FORMAT_STORAGE_KEY,
// UI state
"sidebar_pinned",
"sidebar_width",
@@ -229,6 +240,7 @@ export function GeneralTab() {
const hfTokenIsPersisting = useHfTokenStore((s) => s.isPersisting);
const showLoadedModels = useShowLoadedModels();
const spellCheck = useSpellCheck();
+ const timeFormat = useTimeFormat();
const [draftToken, setDraftToken] = useState(hfToken ?? "");
const [showToken, setShowToken] = useState(false);
@@ -521,7 +533,6 @@ export function GeneralTab() {
{isTauri ? (
<div data-settings-label={t("settings.about.updates")}>
<DesktopUpdateControl />
- <DesktopUpdateNote />
</div>
) : null}
<DesktopInstallTypeControl />
@@ -621,13 +632,41 @@ export function GeneralTab() {
)}
</SettingsSection>
- <SettingsSection title={t("settings.appearance.language.title")}>
+ <SettingsSection title={t("settings.general.display.title")}>
<SettingsRow
label={t("settings.appearance.language.label")}
description={t("settings.appearance.language.description")}
>
<LanguageSelect />
</SettingsRow>
+ <SettingsRow
+ label={t("settings.general.display.timeFormat")}
+ description={t("settings.general.display.timeFormatDescription")}
+ >
+ <Select
+ value={timeFormat}
+ onValueChange={(next) => setTimeFormat(next as TimeFormat)}
+ >
+ <SelectTrigger
+ size="sm"
+ className="w-48"
+ aria-label={t("settings.general.display.timeFormat")}
+ >
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent align="end">
+ <SelectItem value="system">
+ {t("settings.general.display.timeFormatSystem")}
+ </SelectItem>
+ <SelectItem value="12h">
+ {t("settings.general.display.timeFormat12")}
+ </SelectItem>
+ <SelectItem value="24h">
+ {t("settings.general.display.timeFormat24")}
+ </SelectItem>
+ </SelectContent>
+ </Select>
+ </SettingsRow>
<SettingsRow
label={t("settings.appearance.language.spellCheck")}
description={t("settings.appearance.language.spellCheckDescription")}
diff --git a/studio/frontend/src/i18n/locales/ar.ts b/studio/frontend/src/i18n/locales/ar.ts
index 9f95d290c44..5450621739c 100644
--- a/studio/frontend/src/i18n/locales/ar.ts
+++ b/studio/frontend/src/i18n/locales/ar.ts
@@ -1974,6 +1974,14 @@ export const ar = {
loadError: "تعذّر تحميل إعدادات اتصال الحسابات المُدارة.",
saveError: "تعذّر حفظ إعدادات اتصال الحسابات المُدارة.",
},
+ display: {
+ title: "العرض",
+ timeFormat: "تنسيق الوقت",
+ timeFormatDescription: "اعرض الأوقات بنظام 12 ساعة أو 24 ساعة.",
+ timeFormatSystem: "افتراضي النظام",
+ timeFormat12: "12 ساعة",
+ timeFormat24: "24 ساعة",
+ },
notifications: {
sectionTitle: "الإشعارات",
showLoadedModels: "بطاقة النماذج المحمّلة",
@@ -3568,8 +3576,6 @@ export const ar = {
repoCheckoutFallback:
"إذا كانت لا تزال لديك نسخة المستودع، شغّل المثبّت المحلي منها:",
restartAfterUpdate: "أعد تشغيل Unsloth بعد التحديث.",
- desktopManaged:
- "يتحقق تطبيق سطح المكتب تلقائيًا من توفر إصدارات جديدة. ويمكنك أيضًا التحقق من وجود تحديثات أو تثبيتها هنا في أي وقت.",
desktopReady: "تحديثات تطبيق سطح المكتب",
desktopReadyDescription:
"تحقق مما إذا كان يتوفر إصدار أحدث من تطبيق سطح المكتب.",
diff --git a/studio/frontend/src/i18n/locales/cs.ts b/studio/frontend/src/i18n/locales/cs.ts
index 244318d3265..8866cc1572c 100644
--- a/studio/frontend/src/i18n/locales/cs.ts
+++ b/studio/frontend/src/i18n/locales/cs.ts
@@ -2184,6 +2184,14 @@ export const cs = {
full: "Provádí každé volání nástroje bez ptaní a vypne sandbox pro kód, takže kód v Pythonu a terminálu může číst a měnit jakýkoli soubor, ke kterému má váš účet přístup.",
},
},
+ display: {
+ title: "Zobrazení",
+ timeFormat: "Formát času",
+ timeFormatDescription: "Zobrazovat čas ve 12hodinovém nebo 24hodinovém formátu.",
+ timeFormatSystem: "Podle systému",
+ timeFormat12: "12hodinový",
+ timeFormat24: "24hodinový",
+ },
notifications: {
sectionTitle: "Oznámení",
showLoadedModels: "Karta načtených modelů",
@@ -3886,8 +3894,6 @@ export const cs = {
repoCheckoutFallback:
"Pokud stále máte klon repozitáře, spusťte z něj místní instalátor:",
restartAfterUpdate: "Po aktualizaci Unsloth restartujte.",
- desktopManaged:
- "Desktopová aplikace kontroluje nové verze automaticky. Kontrolu nebo aktualizaci můžete kdykoli spustit i zde.",
desktopReady: "Aktualizace desktopové aplikace",
desktopReadyDescription:
"Zkontrolujte, zda je k dispozici novější verze desktopové aplikace.",
diff --git a/studio/frontend/src/i18n/locales/de.ts b/studio/frontend/src/i18n/locales/de.ts
index dc1a4943fcc..ca517dbc998 100644
--- a/studio/frontend/src/i18n/locales/de.ts
+++ b/studio/frontend/src/i18n/locales/de.ts
@@ -1995,6 +1995,14 @@ export const de = {
saveError:
"Verbindungseinstellungen für verwaltete Konten konnten nicht gespeichert werden.",
},
+ display: {
+ title: "Anzeige",
+ timeFormat: "Zeitformat",
+ timeFormatDescription: "Uhrzeiten im 12- oder 24-Stunden-Format anzeigen.",
+ timeFormatSystem: "Systemstandard",
+ timeFormat12: "12-Stunden",
+ timeFormat24: "24-Stunden",
+ },
notifications: {
sectionTitle: "Benachrichtigungen",
showLoadedModels: "Karte geladener Modelle",
@@ -3615,8 +3623,6 @@ export const de = {
repoCheckoutFallback:
"Wenn Sie den Repository-Checkout noch haben, führen Sie den lokalen Installer daraus aus:",
restartAfterUpdate: "Starten Sie Unsloth nach dem Update neu.",
- desktopManaged:
- "Die Desktop-App sucht automatisch nach neuen App-Versionen. Sie können hier auch jederzeit nach Updates suchen oder ein Update durchführen.",
desktopReady: "Updates für die Desktop-App",
desktopReadyDescription:
"Prüfen Sie, ob eine neuere Version der Desktop-App verfügbar ist.",
diff --git a/studio/frontend/src/i18n/locales/en.ts b/studio/frontend/src/i18n/locales/en.ts
index 22e1f11ca2f..a80d165ea78 100644
--- a/studio/frontend/src/i18n/locales/en.ts
+++ b/studio/frontend/src/i18n/locales/en.ts
@@ -2005,6 +2005,14 @@ export const en = {
"Runs every tool call without asking and turns off the code sandbox, so Python and terminal code can read and change any file your account can access.",
},
},
+ display: {
+ title: "Display",
+ timeFormat: "Time format",
+ timeFormatDescription: "Show times on a 12-hour or 24-hour clock.",
+ timeFormatSystem: "System default",
+ timeFormat12: "12-hour",
+ timeFormat24: "24-hour",
+ },
notifications: {
sectionTitle: "Notifications",
showLoadedModels: "Loaded models card",
@@ -3580,8 +3588,6 @@ export const en = {
repoCheckoutFallback:
"If you still have the repo checkout, run the local installer from it:",
restartAfterUpdate: "Restart Unsloth after updating.",
- desktopManaged:
- "The desktop app checks for new app versions automatically. You can also check or update here at any time.",
desktopReady: "Desktop app updates",
desktopReadyDescription:
"Check whether a newer desktop app version is available.",
diff --git a/studio/frontend/src/i18n/locales/es-419.ts b/studio/frontend/src/i18n/locales/es-419.ts
index c6a470721ef..bb823cb5de6 100644
--- a/studio/frontend/src/i18n/locales/es-419.ts
+++ b/studio/frontend/src/i18n/locales/es-419.ts
@@ -2199,6 +2199,14 @@ export const es419 = {
full: "Ejecuta todas las llamadas a herramientas sin preguntar y desactiva el sandbox de código, así que el código de Python y terminal puede leer y cambiar cualquier archivo al que tenga acceso tu cuenta.",
},
},
+ display: {
+ title: "Visualización",
+ timeFormat: "Formato de hora",
+ timeFormatDescription: "Muestra las horas en formato de 12 o 24 horas.",
+ timeFormatSystem: "Predeterminado del sistema",
+ timeFormat12: "12 horas",
+ timeFormat24: "24 horas",
+ },
notifications: {
sectionTitle: "Notificaciones",
showLoadedModels: "Tarjeta de modelos cargados",
@@ -3930,8 +3938,6 @@ export const es419 = {
repoCheckoutFallback:
"Si aún tienes el checkout del repositorio, ejecuta el instalador local desde ahí:",
restartAfterUpdate: "Reinicia Unsloth después de actualizar.",
- desktopManaged:
- "La app de escritorio busca nuevas versiones automáticamente. También puedes buscar o actualizar aquí en cualquier momento.",
desktopReady: "Actualizaciones de la app de escritorio",
desktopReadyDescription:
"Verifica si hay disponible una versión más reciente de la app de escritorio.",
diff --git a/studio/frontend/src/i18n/locales/es.ts b/studio/frontend/src/i18n/locales/es.ts
index f204277cb9a..9d8f1d7a9af 100644
--- a/studio/frontend/src/i18n/locales/es.ts
+++ b/studio/frontend/src/i18n/locales/es.ts
@@ -1991,6 +1991,14 @@ export const es = {
saveError:
"No se pudo guardar la configuración de conexiones de las cuentas gestionadas.",
},
+ display: {
+ title: "Visualización",
+ timeFormat: "Formato de hora",
+ timeFormatDescription: "Muestra las horas en formato de 12 o 24 horas.",
+ timeFormatSystem: "Predeterminado del sistema",
+ timeFormat12: "12 horas",
+ timeFormat24: "24 horas",
+ },
notifications: {
sectionTitle: "Notificaciones",
showLoadedModels: "Tarjeta de modelos cargados",
@@ -3609,8 +3617,6 @@ export const es = {
repoCheckoutFallback:
"Si aún tienes el checkout del repositorio, ejecuta el instalador local desde él:",
restartAfterUpdate: "Reinicia Unsloth después de actualizar.",
- desktopManaged:
- "La app de escritorio busca nuevas versiones automáticamente. También puedes buscar o instalar una actualización aquí en cualquier momento.",
desktopReady: "Actualizaciones de la app de escritorio",
desktopReadyDescription:
"Comprueba si hay disponible una versión más reciente de la app de escritorio.",
diff --git a/studio/frontend/src/i18n/locales/fa.ts b/studio/frontend/src/i18n/locales/fa.ts
index c1caa65f080..31532bcafc6 100644
--- a/studio/frontend/src/i18n/locales/fa.ts
+++ b/studio/frontend/src/i18n/locales/fa.ts
@@ -2158,6 +2158,14 @@ export const fa = {
full: "هر فراخوانی ابزار را بدون پرسیدن اجرا می‌کند و سندباکس کد را خاموش می‌کند، بنابراین کد Python و ترمینال می‌تواند هر فایلی را که حساب شما به آن دسترسی دارد بخواند و تغییر دهد.",
},
},
+ display: {
+ title: "نمایش",
+ timeFormat: "قالب زمان",
+ timeFormatDescription: "نمایش زمان به صورت ۱۲ ساعته یا ۲۴ ساعته.",
+ timeFormatSystem: "پیش‌فرض سیستم",
+ timeFormat12: "۱۲ ساعته",
+ timeFormat24: "۲۴ ساعته",
+ },
notifications: {
sectionTitle: "اعلان‌ها",
showLoadedModels: "کارت مدل‌های بارگذاری‌شده",
@@ -3855,8 +3863,6 @@ export const fa = {
"اگر هنوز checkout مخزن را دارید، نصب‌کنندهٔ محلی را از همان‌جا اجرا کنید:",
restartAfterUpdate:
"پس از به‌روزرسانی، Unsloth را دوباره راه‌اندازی کنید.",
- desktopManaged:
- "برنامهٔ دسکتاپ به‌طور خودکار نسخه‌های جدید را بررسی می‌کند. همچنین می‌توانید هر زمان از اینجا بررسی یا به‌روزرسانی کنید.",
desktopReady: "به‌روزرسانی‌های برنامهٔ دسکتاپ",
desktopReadyDescription:
"بررسی کنید که آیا نسخهٔ جدیدتری از برنامهٔ دسکتاپ در دسترس است.",
diff --git a/studio/frontend/src/i18n/locales/fr.ts b/studio/frontend/src/i18n/locales/fr.ts
index 42bf874d028..dc6e76ea56f 100644
--- a/studio/frontend/src/i18n/locales/fr.ts
+++ b/studio/frontend/src/i18n/locales/fr.ts
@@ -1993,6 +1993,14 @@ export const fr = {
saveError:
"Impossible d'enregistrer les paramètres de connexion des comptes gérés.",
},
+ display: {
+ title: "Affichage",
+ timeFormat: "Format de l'heure",
+ timeFormatDescription: "Afficher l'heure au format 12 heures ou 24 heures.",
+ timeFormatSystem: "Valeur par défaut du système",
+ timeFormat12: "12 heures",
+ timeFormat24: "24 heures",
+ },
notifications: {
sectionTitle: "Notifications",
showLoadedModels: "Carte des modèles chargés",
@@ -3616,8 +3624,6 @@ export const fr = {
repoCheckoutFallback:
"Si vous avez encore le checkout du dépôt, lancez l'installateur local depuis celui-ci :",
restartAfterUpdate: "Redémarrez Unsloth après la mise à jour.",
- desktopManaged:
- "L’application de bureau recherche automatiquement les nouvelles versions. Vous pouvez également rechercher ou installer une mise à jour ici à tout moment.",
desktopReady: "Mises à jour de l’application de bureau",
desktopReadyDescription:
"Vérifiez si une version plus récente de l’application de bureau est disponible.",
diff --git a/studio/frontend/src/i18n/locales/he.ts b/studio/frontend/src/i18n/locales/he.ts
index e51e38f2c71..f5e05b8ddba 100644
--- a/studio/frontend/src/i18n/locales/he.ts
+++ b/studio/frontend/src/i18n/locales/he.ts
@@ -2045,6 +2045,14 @@ export const he = {
full: "מריץ כל קריאה לכלי בלי לשאול ומכבה את ארגז החול של הקוד, כך שקוד Python ו-Terminal יכול לקרוא ולשנות כל קובץ שהחשבון שלך יכול לגשת אליו.",
},
},
+ display: {
+ title: "תצוגה",
+ timeFormat: "תבנית שעה",
+ timeFormatDescription: "הצגת שעות בתבנית של 12 או 24 שעות.",
+ timeFormatSystem: "ברירת המחדל של המערכת",
+ timeFormat12: "12 שעות",
+ timeFormat24: "24 שעות",
+ },
notifications: {
sectionTitle: "התראות",
showLoadedModels: "כרטיס מודלים טעונים",
@@ -3653,8 +3661,6 @@ export const he = {
repoCheckoutFallback:
"אם עותק המאגר עדיין ברשותך, הרץ מתוכו את תוכנית ההתקנה המקומית:",
restartAfterUpdate: "הפעל מחדש את Unsloth לאחר העדכון.",
- desktopManaged:
- "אפליקציית שולחן העבודה בודקת עדכונים באופן אוטומטי. תוכל גם לבדוק או לעדכן כאן בכל עת.",
desktopReady: "עדכוני אפליקציית שולחן עבודה",
desktopReadyDescription:
"בדוק האם קיימת גרסה חדשה יותר של אפליקציית שולחן העבודה.",
diff --git a/studio/frontend/src/i18n/locales/hi.ts b/studio/frontend/src/i18n/locales/hi.ts
index 83f1e1f3c7d..8e948965295 100644
--- a/studio/frontend/src/i18n/locales/hi.ts
+++ b/studio/frontend/src/i18n/locales/hi.ts
@@ -1978,6 +1978,14 @@ export const hi = {
loadError: "प्रबंधित खाता कनेक्शन सेटिंग्स लोड नहीं हो सकीं।",
saveError: "प्रबंधित खाता कनेक्शन सेटिंग्स सहेजी नहीं जा सकीं।",
},
+ display: {
+ title: "दिखावट",
+ timeFormat: "समय प्रारूप",
+ timeFormatDescription: "समय को 12-घंटे या 24-घंटे के प्रारूप में दिखाएँ।",
+ timeFormatSystem: "सिस्टम डिफ़ॉल्ट",
+ timeFormat12: "12-घंटे",
+ timeFormat24: "24-घंटे",
+ },
notifications: {
sectionTitle: "सूचनाएं",
showLoadedModels: "लोड किए गए मॉडल कार्ड",
@@ -3577,8 +3585,6 @@ export const hi = {
repoCheckoutFallback:
"यदि आपके पास अभी भी रेपो checkout है, तो उससे स्थानीय इंस्टॉलर चलाएं:",
restartAfterUpdate: "अपडेट करने के बाद Unsloth को पुनः आरंभ करें।",
- desktopManaged:
- "डेस्कटॉप ऐप नए ऐप संस्करणों की अपने-आप जाँच करता है। आप यहाँ कभी भी अपडेट की जाँच कर सकते हैं या अपडेट कर सकते हैं।",
desktopReady: "डेस्कटॉप ऐप अपडेट",
desktopReadyDescription:
"जाँचें कि डेस्कटॉप ऐप का कोई नया संस्करण उपलब्ध है या नहीं।",
diff --git a/studio/frontend/src/i18n/locales/id.ts b/studio/frontend/src/i18n/locales/id.ts
index 60e79629d43..31b0cfb87a2 100644
--- a/studio/frontend/src/i18n/locales/id.ts
+++ b/studio/frontend/src/i18n/locales/id.ts
@@ -2168,6 +2168,14 @@ export const id = {
full: "Menjalankan setiap panggilan alat tanpa meminta izin dan menonaktifkan sandbox kode, sehingga kode Python dan terminal dapat membaca dan mengubah file apa pun yang dapat diakses akun Anda.",
},
},
+ display: {
+ title: "Tampilan",
+ timeFormat: "Format waktu",
+ timeFormatDescription: "Tampilkan waktu dalam format 12 jam atau 24 jam.",
+ timeFormatSystem: "Default sistem",
+ timeFormat12: "12 jam",
+ timeFormat24: "24 jam",
+ },
notifications: {
sectionTitle: "Notifikasi",
showLoadedModels: "Kartu model yang dimuat",
@@ -3867,8 +3875,6 @@ export const id = {
repoCheckoutFallback:
"Jika Anda masih memiliki checkout repo, jalankan penginstal lokal dari sana:",
restartAfterUpdate: "Mulai ulang Unsloth setelah memperbarui.",
- desktopManaged:
- "Aplikasi desktop memeriksa versi aplikasi baru secara otomatis. Anda juga dapat memeriksa atau memperbarui di sini kapan saja.",
desktopReady: "Pembaruan aplikasi desktop",
desktopReadyDescription:
"Periksa apakah versi aplikasi desktop yang lebih baru tersedia.",
diff --git a/studio/frontend/src/i18n/locales/it.ts b/studio/frontend/src/i18n/locales/it.ts
index b2d56bb0063..22f70be90dd 100644
--- a/studio/frontend/src/i18n/locales/it.ts
+++ b/studio/frontend/src/i18n/locales/it.ts
@@ -1915,6 +1915,14 @@ export const it = {
"Esegue ogni chiamata agli strumenti senza chiedere e disattiva la sandbox del codice, così il codice Python e da terminale può leggere e modificare qualsiasi file accessibile al tuo account.",
},
},
+ display: {
+ title: "Visualizzazione",
+ timeFormat: "Formato ora",
+ timeFormatDescription: "Mostra gli orari nel formato a 12 o 24 ore.",
+ timeFormatSystem: "Predefinito di sistema",
+ timeFormat12: "12 ore",
+ timeFormat24: "24 ore",
+ },
notifications: {
sectionTitle: "Notifiche",
showLoadedModels: "Scheda dei modelli caricati",
@@ -3512,8 +3520,6 @@ export const it = {
repoCheckoutFallback:
"Se hai ancora il checkout del repository, esegui l'installer locale da lì:",
restartAfterUpdate: "Riavvia Unsloth dopo l'aggiornamento.",
- desktopManaged:
- "L'app desktop verifica automaticamente la presenza di nuove versioni. Puoi anche controllare o aggiornare qui in qualsiasi momento.",
desktopReady: "Aggiornamenti dell'app desktop",
desktopReadyDescription:
"Verifica se è disponibile una versione più recente dell'app desktop.",
diff --git a/studio/frontend/src/i18n/locales/ja.ts b/studio/frontend/src/i18n/locales/ja.ts
index 71431d5c8a9..aac92944ed9 100644
--- a/studio/frontend/src/i18n/locales/ja.ts
+++ b/studio/frontend/src/i18n/locales/ja.ts
@@ -1965,6 +1965,14 @@ export const ja = {
loadError: "管理対象アカウントの接続設定を読み込めませんでした。",
saveError: "管理対象アカウントの接続設定を保存できませんでした。",
},
+ display: {
+ title: "表示",
+ timeFormat: "時刻の形式",
+ timeFormatDescription: "時刻を12時間制または24時間制で表示します。",
+ timeFormatSystem: "システムのデフォルト",
+ timeFormat12: "12時間制",
+ timeFormat24: "24時間制",
+ },
notifications: {
sectionTitle: "通知",
showLoadedModels: "読み込み済みモデルのカード",
@@ -3537,8 +3545,6 @@ export const ja = {
"ソースまたは VCS パッケージからのインストールが検出されました。元のローカルパスまたは Git URL から再インストールしてください。",
repoCheckoutFallback: "リポジトリが手元に残っている場合は、そこからローカルインストーラーを実行してください:",
restartAfterUpdate: "アップデート後に Unsloth を再起動してください。",
- desktopManaged:
- "デスクトップアプリは新しいバージョンを自動的に確認します。ここからいつでも手動で確認またはアップデートできます。",
desktopReady: "デスクトップアプリのアップデート",
desktopReadyDescription:
"新しいバージョンのデスクトップアプリが利用可能か確認します。",
diff --git a/studio/frontend/src/i18n/locales/ko.ts b/studio/frontend/src/i18n/locales/ko.ts
index 1867a2a7f8c..d2e4364d5a3 100644
--- a/studio/frontend/src/i18n/locales/ko.ts
+++ b/studio/frontend/src/i18n/locales/ko.ts
@@ -1971,6 +1971,14 @@ export const ko = {
loadError: "관리 계정 연결 설정을 불러오지 못했습니다.",
saveError: "관리 계정 연결 설정을 저장하지 못했습니다.",
},
+ display: {
+ title: "표시",
+ timeFormat: "시간 형식",
+ timeFormatDescription: "시간을 12시간제 또는 24시간제로 표시합니다.",
+ timeFormatSystem: "시스템 기본값",
+ timeFormat12: "12시간제",
+ timeFormat24: "24시간제",
+ },
notifications: {
sectionTitle: "알림",
showLoadedModels: "로드된 모델 카드",
@@ -3558,8 +3566,6 @@ export const ko = {
repoCheckoutFallback:
"저장소 체크아웃이 아직 있다면 거기에서 로컬 설치 프로그램을 실행하세요:",
restartAfterUpdate: "업데이트 후 Unsloth를 다시 시작하세요.",
- desktopManaged:
- "데스크톱 앱은 새 앱 버전을 자동으로 확인합니다. 여기서 언제든지 업데이트를 확인하거나 설치할 수도 있습니다.",
desktopReady: "데스크톱 앱 업데이트",
desktopReadyDescription:
"새로운 데스크톱 앱 버전이 있는지 확인합니다.",
diff --git a/studio/frontend/src/i18n/locales/nl.ts b/studio/frontend/src/i18n/locales/nl.ts
index b81a7a2a6dd..e89d638bb94 100644
--- a/studio/frontend/src/i18n/locales/nl.ts
+++ b/studio/frontend/src/i18n/locales/nl.ts
@@ -2204,6 +2204,14 @@ export const nl = {
full: "Voert elke toolaanroep uit zonder te vragen en schakelt de codesandbox uit, zodat Python- en terminalcode elk bestand kunnen lezen en wijzigen waartoe je account toegang heeft.",
},
},
+ display: {
+ title: "Weergave",
+ timeFormat: "Tijdnotatie",
+ timeFormatDescription: "Toon tijden in 12-uurs- of 24-uursnotatie.",
+ timeFormatSystem: "Systeemstandaard",
+ timeFormat12: "12-uurs",
+ timeFormat24: "24-uurs",
+ },
notifications: {
sectionTitle: "Meldingen",
showLoadedModels: "Kaart met geladen modellen",
@@ -3915,8 +3923,6 @@ export const nl = {
repoCheckoutFallback:
"Als je de repository-checkout nog hebt, voer je daaruit het lokale installatieprogramma uit:",
restartAfterUpdate: "Start Unsloth opnieuw na het bijwerken.",
- desktopManaged:
- "De desktop-app controleert automatisch op nieuwe app-versies. Je kunt hier ook op elk moment controleren of bijwerken.",
desktopReady: "Updates van de desktop-app",
desktopReadyDescription:
"Controleren of er een nieuwere versie van de desktop-app beschikbaar is.",
diff --git a/studio/frontend/src/i18n/locales/pl.ts b/studio/frontend/src/i18n/locales/pl.ts
index 671f2fd443b..acbbddf12f1 100644
--- a/studio/frontend/src/i18n/locales/pl.ts
+++ b/studio/frontend/src/i18n/locales/pl.ts
@@ -2194,6 +2194,14 @@ export const pl = {
full: "Wykonuje każde wywołanie narzędzia bez pytania i wyłącza piaskownicę kodu, więc kod w Pythonie i terminalu może odczytywać i zmieniać każdy plik dostępny dla Twojego konta.",
},
},
+ display: {
+ title: "Wyświetlanie",
+ timeFormat: "Format godziny",
+ timeFormatDescription: "Pokazuj godziny w formacie 12- lub 24-godzinnym.",
+ timeFormatSystem: "Domyślny systemowy",
+ timeFormat12: "12-godzinny",
+ timeFormat24: "24-godzinny",
+ },
notifications: {
sectionTitle: "Powiadomienia",
showLoadedModels: "Karta wczytanych modeli",
@@ -3915,8 +3923,6 @@ export const pl = {
repoCheckoutFallback:
"Jeśli nadal masz kopię repozytorium, uruchom z niej lokalny instalator:",
restartAfterUpdate: "Po aktualizacji uruchom ponownie Unsloth.",
- desktopManaged:
- "Aplikacja komputerowa automatycznie sprawdza dostępność nowych wersji. W każdej chwili możesz też sprawdzić lub zaktualizować tutaj.",
desktopReady: "Aktualizacje aplikacji komputerowej",
desktopReadyDescription:
"Sprawdź, czy dostępna jest nowsza wersja aplikacji komputerowej.",
diff --git a/studio/frontend/src/i18n/locales/pt-br.ts b/studio/frontend/src/i18n/locales/pt-br.ts
index 09dd7937f52..c309f7bcb16 100644
--- a/studio/frontend/src/i18n/locales/pt-br.ts
+++ b/studio/frontend/src/i18n/locales/pt-br.ts
@@ -1982,6 +1982,14 @@ export const ptBR = {
saveError:
"Não foi possível salvar as configurações de conexão das contas gerenciadas.",
},
+ display: {
+ title: "Exibição",
+ timeFormat: "Formato de hora",
+ timeFormatDescription: "Mostrar horários no formato de 12 ou 24 horas.",
+ timeFormatSystem: "Padrão do sistema",
+ timeFormat12: "12 horas",
+ timeFormat24: "24 horas",
+ },
notifications: {
sectionTitle: "Notificações",
showLoadedModels: "Cartão de modelos carregados",
@@ -3584,8 +3592,6 @@ export const ptBR = {
repoCheckoutFallback:
"Se você ainda tiver a cópia local do repositório, execute o instalador local a partir dela:",
restartAfterUpdate: "Reinicie o Unsloth após a atualização.",
- desktopManaged:
- "O aplicativo de desktop verifica automaticamente se há novas versões. Você também pode verificar ou atualizar aqui a qualquer momento.",
desktopReady: "Atualizações do aplicativo de desktop",
desktopReadyDescription:
"Verifique se há uma versão mais recente do aplicativo de desktop.",
diff --git a/studio/frontend/src/i18n/locales/ru.ts b/studio/frontend/src/i18n/locales/ru.ts
index 69dba75702e..0b4d3150fb5 100644
--- a/studio/frontend/src/i18n/locales/ru.ts
+++ b/studio/frontend/src/i18n/locales/ru.ts
@@ -1980,6 +1980,14 @@ export const ru = {
saveError:
"Не удалось сохранить настройки подключений управляемых учётных записей.",
},
+ display: {
+ title: "Отображение",
+ timeFormat: "Формат времени",
+ timeFormatDescription: "Показывать время в 12- или 24-часовом формате.",
+ timeFormatSystem: "Как в системе",
+ timeFormat12: "12-часовой",
+ timeFormat24: "24-часовой",
+ },
notifications: {
sectionTitle: "Уведомления",
showLoadedModels: "Карточка загруженных моделей",
@@ -3582,8 +3590,6 @@ export const ru = {
repoCheckoutFallback:
"Если рабочая копия репозитория сохранилась, запустите из неё локальный установщик:",
restartAfterUpdate: "После обновления перезапустите Unsloth.",
- desktopManaged:
- "Настольное приложение автоматически проверяет наличие новых версий. Здесь также можно в любое время проверить наличие обновлений или установить их.",
desktopReady: "Обновления настольного приложения",
desktopReadyDescription:
"Проверьте, доступна ли более новая версия настольного приложения.",
diff --git a/studio/frontend/src/i18n/locales/sv.ts b/studio/frontend/src/i18n/locales/sv.ts
index 511d59de6f0..c04be5d2339 100644
--- a/studio/frontend/src/i18n/locales/sv.ts
+++ b/studio/frontend/src/i18n/locales/sv.ts
@@ -2105,6 +2105,14 @@ export const sv = {
full: "Kör varje verktygsanrop utan att fråga och stänger av kodsandlådan, så att Python- och terminalkod kan läsa och ändra alla filer som ditt konto har åtkomst till.",
},
},
+ display: {
+ title: "Visning",
+ timeFormat: "Tidsformat",
+ timeFormatDescription: "Visa tider i 12- eller 24-timmarsformat.",
+ timeFormatSystem: "Systemstandard",
+ timeFormat12: "12-timmars",
+ timeFormat24: "24-timmars",
+ },
notifications: {
sectionTitle: "Aviseringar",
showLoadedModels: "Kort för inlästa modeller",
@@ -3756,8 +3764,6 @@ export const sv = {
repoCheckoutFallback:
"Om du fortfarande har arkivets checkout kör du det lokala installationsprogrammet därifrån:",
restartAfterUpdate: "Starta om Unsloth efter uppdateringen.",
- desktopManaged:
- "Skrivbordsappen kontrollerar automatiskt nya appversioner. Du kan också kontrollera eller uppdatera här när som helst.",
desktopReady: "Uppdateringar för skrivbordsappen",
desktopReadyDescription:
"Kontrollera om en nyare version av skrivbordsappen är tillgänglig.",
diff --git a/studio/frontend/src/i18n/locales/th.ts b/studio/frontend/src/i18n/locales/th.ts
index 8c48d3e8807..7e348ef104f 100644
--- a/studio/frontend/src/i18n/locales/th.ts
+++ b/studio/frontend/src/i18n/locales/th.ts
@@ -2071,6 +2071,14 @@ export const th = {
full: "เรียกใช้เครื่องมือทุกครั้งโดยไม่ถามและปิดแซนด์บ็อกซ์โค้ด โค้ด Python และเทอร์มินัลจึงอ่านและเปลี่ยนแปลงไฟล์ใดก็ได้ที่บัญชีของคุณเข้าถึงได้",
},
},
+ display: {
+ title: "การแสดงผล",
+ timeFormat: "รูปแบบเวลา",
+ timeFormatDescription: "แสดงเวลาแบบ 12 ชั่วโมงหรือ 24 ชั่วโมง",
+ timeFormatSystem: "ค่าเริ่มต้นของระบบ",
+ timeFormat12: "12 ชั่วโมง",
+ timeFormat24: "24 ชั่วโมง",
+ },
notifications: {
sectionTitle: "การแจ้งเตือน",
showLoadedModels: "การ์ดโมเดลที่โหลดอยู่",
@@ -3701,8 +3709,6 @@ export const th = {
repoCheckoutFallback:
"หากคุณยังมีโฟลเดอร์ checkout ของ repo อยู่ ให้เรียกใช้ตัวติดตั้งภายในเครื่องจากโฟลเดอร์นั้น:",
restartAfterUpdate: "รีสตาร์ท Unsloth หลังอัปเดต",
- desktopManaged:
- "แอปเดสก์ท็อปจะตรวจหาเวอร์ชันใหม่ของแอปโดยอัตโนมัติ คุณยังตรวจหาหรืออัปเดตได้ที่นี่ทุกเมื่อ",
desktopReady: "การอัปเดตแอปเดสก์ท็อป",
desktopReadyDescription: "ตรวจสอบว่ามีแอปเดสก์ท็อปเวอร์ชันใหม่กว่าหรือไม่",
desktopChecking: "กำลังตรวจหาการอัปเดต",
diff --git a/studio/frontend/src/i18n/locales/tr.ts b/studio/frontend/src/i18n/locales/tr.ts
index 9fd687bfba2..c3ca9141b6c 100644
--- a/studio/frontend/src/i18n/locales/tr.ts
+++ b/studio/frontend/src/i18n/locales/tr.ts
@@ -2163,6 +2163,14 @@ export const tr = {
full: "Her araç çağrısını sormadan çalıştırır ve kod korumalı alanını kapatır; böylece Python ve terminal kodu, hesabınızın erişebildiği her dosyayı okuyabilir ve değiştirebilir.",
},
},
+ display: {
+ title: "Görünüm",
+ timeFormat: "Saat biçimi",
+ timeFormatDescription: "Saatleri 12 veya 24 saat biçiminde göster.",
+ timeFormatSystem: "Sistem varsayılanı",
+ timeFormat12: "12 saat",
+ timeFormat24: "24 saat",
+ },
notifications: {
sectionTitle: "Bildirimler",
showLoadedModels: "Yüklü modeller kartı",
@@ -3865,8 +3873,6 @@ export const tr = {
repoCheckoutFallback:
"Depo checkout'u hâlâ duruyorsa yerel yükleyiciyi oradan çalıştırın:",
restartAfterUpdate: "Güncellemeden sonra Unsloth'u yeniden başlatın.",
- desktopManaged:
- "Masaüstü uygulaması yeni uygulama sürümlerini otomatik olarak denetler. Ayrıca istediğiniz zaman buradan denetleyebilir veya güncelleyebilirsiniz.",
desktopReady: "Masaüstü uygulaması güncellemeleri",
desktopReadyDescription:
"Daha yeni bir masaüstü uygulaması sürümü olup olmadığını denetleyin.",
diff --git a/studio/frontend/src/i18n/locales/uk.ts b/studio/frontend/src/i18n/locales/uk.ts
index 1c069c04e09..ebaa393f50a 100644
--- a/studio/frontend/src/i18n/locales/uk.ts
+++ b/studio/frontend/src/i18n/locales/uk.ts
@@ -2189,6 +2189,14 @@ export const uk = {
full: "Виконує кожен виклик інструмента без запиту та вимикає пісочницю коду, тож код Python і термінала може читати й змінювати будь-який файл, доступний вашому обліковому запису.",
},
},
+ display: {
+ title: "Відображення",
+ timeFormat: "Формат часу",
+ timeFormatDescription: "Показувати час у 12- або 24-годинному форматі.",
+ timeFormatSystem: "Як у системі",
+ timeFormat12: "12-годинний",
+ timeFormat24: "24-годинний",
+ },
notifications: {
sectionTitle: "Сповіщення",
showLoadedModels: "Картка завантажених моделей",
@@ -3899,8 +3907,6 @@ export const uk = {
repoCheckoutFallback:
"Якщо у вас досі є checkout репозиторію, запустіть із нього локальний інсталятор:",
restartAfterUpdate: "Після оновлення перезапустіть Unsloth.",
- desktopManaged:
- "Застосунок для комп’ютера автоматично перевіряє наявність нових версій. Ви також можете будь-коли перевірити або оновити його тут.",
desktopReady: "Оновлення застосунку для комп’ютера",
desktopReadyDescription:
"Перевірте, чи доступна новіша версія застосунку для комп’ютера.",
diff --git a/studio/frontend/src/i18n/locales/vi.ts b/studio/frontend/src/i18n/locales/vi.ts
index 99012d2a6ea..ff98e282f40 100644
--- a/studio/frontend/src/i18n/locales/vi.ts
+++ b/studio/frontend/src/i18n/locales/vi.ts
@@ -2174,6 +2174,14 @@ export const vi = {
full: "Chạy mọi lệnh gọi công cụ mà không hỏi và tắt sandbox mã, nên mã Python và terminal có thể đọc và thay đổi bất kỳ tệp nào mà tài khoản của bạn có quyền truy cập.",
},
},
+ display: {
+ title: "Hiển thị",
+ timeFormat: "Định dạng giờ",
+ timeFormatDescription: "Hiển thị giờ theo định dạng 12 giờ hoặc 24 giờ.",
+ timeFormatSystem: "Mặc định hệ thống",
+ timeFormat12: "12 giờ",
+ timeFormat24: "24 giờ",
+ },
notifications: {
sectionTitle: "Thông báo",
showLoadedModels: "Thẻ mô hình đã nạp",
@@ -3870,8 +3878,6 @@ export const vi = {
repoCheckoutFallback:
"Nếu bạn vẫn còn bản checkout của kho mã, hãy chạy trình cài đặt cục bộ từ đó:",
restartAfterUpdate: "Khởi động lại Unsloth sau khi cập nhật.",
- desktopManaged:
- "Ứng dụng máy tính tự động kiểm tra phiên bản mới. Bạn cũng có thể kiểm tra hoặc cập nhật tại đây bất cứ lúc nào.",
desktopReady: "Cập nhật ứng dụng máy tính",
desktopReadyDescription:
"Kiểm tra xem có phiên bản ứng dụng máy tính mới hơn không.",
diff --git a/studio/frontend/src/i18n/locales/zh-CN.ts b/studio/frontend/src/i18n/locales/zh-CN.ts
index bd70d69b5d4..eace76f230e 100644
--- a/studio/frontend/src/i18n/locales/zh-CN.ts
+++ b/studio/frontend/src/i18n/locales/zh-CN.ts
@@ -1955,6 +1955,14 @@ export const zhCN = {
loadError: "无法加载受管账户的连接设置。",
saveError: "无法保存受管账户的连接设置。",
},
+ display: {
+ title: "显示",
+ timeFormat: "时间格式",
+ timeFormatDescription: "以 12 小时制或 24 小时制显示时间。",
+ timeFormatSystem: "跟随系统",
+ timeFormat12: "12 小时制",
+ timeFormat24: "24 小时制",
+ },
notifications: {
sectionTitle: "通知",
showLoadedModels: "已加载模型卡片",
@@ -3512,8 +3520,6 @@ export const zhCN = {
repoCheckoutFallback:
"如果仍保留仓库的代码检出目录,请在该目录中运行本地安装器:",
restartAfterUpdate: "更新后请重启 Unsloth。",
- desktopManaged:
- "桌面应用会自动检查新版本。你也可以随时在此检查或更新。",
desktopReady: "桌面应用更新",
desktopReadyDescription: "检查是否有更新的桌面应用版本。",
desktopChecking: "正在检查更新",
diff --git a/studio/frontend/src/i18n/locales/zh-TW.ts b/studio/frontend/src/i18n/locales/zh-TW.ts
index d94922ad97b..f14edda3c57 100644
--- a/studio/frontend/src/i18n/locales/zh-TW.ts
+++ b/studio/frontend/src/i18n/locales/zh-TW.ts
@@ -2058,6 +2058,14 @@ export const zhTW = {
full: "執行所有工具呼叫而不詢問,並關閉程式碼沙箱,因此 Python 與終端機程式碼可以讀取及變更您帳號能存取的任何檔案。",
},
},
+ display: {
+ title: "顯示",
+ timeFormat: "時間格式",
+ timeFormatDescription: "以 12 小時制或 24 小時制顯示時間。",
+ timeFormatSystem: "跟隨系統",
+ timeFormat12: "12 小時制",
+ timeFormat24: "24 小時制",
+ },
notifications: {
sectionTitle: "通知",
showLoadedModels: "已載入模型卡片",
@@ -3678,8 +3686,6 @@ export const zhTW = {
repoCheckoutFallback:
"如果您仍保有存放庫的 checkout,請從中執行本機安裝程式:",
restartAfterUpdate: "更新後請重新啟動 Unsloth。",
- desktopManaged:
- "桌面應用程式會自動檢查新版本。您也可以隨時在此檢查或更新。",
desktopReady: "桌面應用程式更新",
desktopReadyDescription: "檢查是否有較新的桌面應用程式版本。",
desktopChecking: "正在檢查更新",
diff --git a/studio/frontend/src/lib/format-message-date.ts b/studio/frontend/src/lib/format-message-date.ts
index a31b5c0c64e..f0d740b23fe 100644
--- a/studio/frontend/src/lib/format-message-date.ts
+++ b/studio/frontend/src/lib/format-message-date.ts
@@ -2,6 +2,7 @@
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
import type { Locale } from "@/i18n/messages";
+import { withTimeFormat } from "./time-format.ts";
/** "Today, 4:45 AM", "Yesterday, 9:12 PM", then the date, with the year only when it differs. */
export function formatMessageDate(
@@ -15,19 +16,25 @@ export function formatMessageDate(
): string {
const date = new Date(createdAt);
const today = new Date(now);
- const time = date.toLocaleTimeString(locale, {
- hour: "numeric",
- minute: "2-digit",
- });
+ const time = date.toLocaleTimeString(
+ locale,
+ withTimeFormat({ hour: "numeric", minute: "2-digit" }, locale),
+ );
const sameDay = (a: Date, b: Date) => a.toDateString() === b.toDateString();
if (sameDay(date, today)) return labels.today(time);
const yesterday = new Date(today.getFullYear(), today.getMonth(), today.getDate() - 1);
if (sameDay(date, yesterday)) return labels.yesterday(time);
- return date.toLocaleString(locale, {
- month: "short",
- day: "numeric",
- ...(date.getFullYear() !== today.getFullYear() && { year: "numeric" }),
- hour: "numeric",
- minute: "2-digit",
- });
+ return date.toLocaleString(
+ locale,
+ withTimeFormat(
+ {
+ month: "short",
+ day: "numeric",
+ ...(date.getFullYear() !== today.getFullYear() && { year: "numeric" }),
+ hour: "numeric",
+ minute: "2-digit",
+ },
+ locale,
+ ),
+ );
}
diff --git a/studio/frontend/src/lib/time-format.ts b/studio/frontend/src/lib/time-format.ts
new file mode 100644
index 00000000000..3eca0a09e1d
--- /dev/null
+++ b/studio/frontend/src/lib/time-format.ts
@@ -0,0 +1,102 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import { useSyncExternalStore } from "react";
+
+export const TIME_FORMAT_STORAGE_KEY = "unsloth_time_format";
+
+export type TimeFormat = "system" | "12h" | "24h";
+
+const listeners = new Set<() => void>();
+
+function isTimeFormat(value: unknown): value is TimeFormat {
+ return value === "system" || value === "12h" || value === "24h";
+}
+
+export function getTimeFormat(): TimeFormat {
+ try {
+ const stored = localStorage.getItem(TIME_FORMAT_STORAGE_KEY);
+ return isTimeFormat(stored) ? stored : "system";
+ } catch {
+ return "system";
+ }
+}
+
+export function setTimeFormat(next: TimeFormat): void {
+ try {
+ if (next === "system") {
+ localStorage.removeItem(TIME_FORMAT_STORAGE_KEY);
+ } else {
+ localStorage.setItem(TIME_FORMAT_STORAGE_KEY, next);
+ }
+ } catch {
+ // storage unavailable
+ }
+ notify();
+}
+
+function notify(): void {
+ for (const listener of listeners) {
+ listener();
+ }
+}
+
+function subscribe(listener: () => void): () => void {
+ listeners.add(listener);
+ return () => listeners.delete(listener);
+}
+
+export function useTimeFormat(): TimeFormat {
+ return useSyncExternalStore(subscribe, getTimeFormat, getTimeFormat);
+}
+
+export function watchTimeFormat(win: Window): void {
+ win.addEventListener("storage", (event) => {
+ if (event.key === TIME_FORMAT_STORAGE_KEY || event.key === null) {
+ notify();
+ }
+ });
+}
+
+type HourCycle = "h12" | "h23";
+
+const language = (tag: string) => tag.split("-")[0].toLowerCase();
+
+// The UI locale has no region (en-GB is "en"), so a shared language takes the browser's clock.
+function systemHourCycle(locale: string | undefined): HourCycle | undefined {
+ if (!locale) {
+ return undefined;
+ }
+ try {
+ const browser = new Intl.DateTimeFormat(undefined, {
+ hour: "numeric",
+ }).resolvedOptions();
+ if (language(browser.locale) !== language(locale)) {
+ return undefined;
+ }
+ return browser.hourCycle === "h11" || browser.hourCycle === "h12"
+ ? "h12"
+ : "h23";
+ } catch {
+ return undefined;
+ }
+}
+
+export function withTimeFormat(
+ options: Intl.DateTimeFormatOptions = {},
+ locale?: string,
+): Intl.DateTimeFormatOptions {
+ const format = getTimeFormat();
+ const hourCycle =
+ format === "12h"
+ ? "h12"
+ : format === "24h"
+ ? "h23"
+ : systemHourCycle(locale);
+ if (!hourCycle) {
+ return options;
+ }
+ // hour12 would outrank hourCycle.
+ const { hour12: _hour12, ...rest } = options;
+ return { ...rest, hourCycle };
+}
diff --git a/studio/frontend/src/main.tsx b/studio/frontend/src/main.tsx
index e24343267b4..9c79b5c0a9c 100644
--- a/studio/frontend/src/main.tsx
+++ b/studio/frontend/src/main.tsx
@@ -34,6 +34,7 @@ import { watchInputModality } from "./lib/input-modality";
import { watchMacStrayKeyText } from "./lib/mac-stray-key-text";
import { watchOverlayScrollbarGutter } from "./lib/overlay-scrollbar";
import { watchSpellCheck } from "./lib/spellcheck";
+import { watchTimeFormat } from "./lib/time-format";
markAppSessionStart();
setHubSessionRefresh(refreshSession);
@@ -85,6 +86,7 @@ watchInputModality(window);
// Before the first render, so a disabled spell check never flashes underlines.
watchSpellCheck(window);
+watchTimeFormat(window);
// The macOS app types a control character for a key the page leaves unhandled (#14764).
if (isTauri && /Mac/.test(navigator.platform)) {
diff --git a/studio/frontend/tests/general-settings-token-sync.test.ts b/studio/frontend/tests/general-settings-token-sync.test.ts
index 9884181e816..f51aa5b9ae2 100644
--- a/studio/frontend/tests/general-settings-token-sync.test.ts
+++ b/studio/frontend/tests/general-settings-token-sync.test.ts
@@ -108,6 +108,7 @@ function generalTab(initialToken: string) {
"@/components/ui/button": componentStub,
"@/components/ui/dialog": componentStub,
"@/components/ui/input": { Input: "Input" },
+ "@/components/ui/select": componentStub,
"@/components/ui/switch": componentStub,
"@/features/chat": {
useChatRuntimeStore: Object.assign(
@@ -152,6 +153,11 @@ function generalTab(initialToken: string) {
setSpellCheck: noop,
useSpellCheck: () => true,
},
+ "@/lib/time-format": {
+ TIME_FORMAT_STORAGE_KEY: "unsloth_time_format",
+ setTimeFormat: noop,
+ useTimeFormat: () => "system",
+ },
"@/lib/toast": { toast: { success: noop, error: noop } },
"@/lib/utils": {
cn: (...values: unknown[]) => values.filter(Boolean).join(" "),
diff --git a/studio/frontend/tests/time-format.test.ts b/studio/frontend/tests/time-format.test.ts
new file mode 100644
index 00000000000..5036c8cd138
--- /dev/null
+++ b/studio/frontend/tests/time-format.test.ts
@@ -0,0 +1,81 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import assert from "node:assert/strict";
+import test from "node:test";
+import {
+ TIME_FORMAT_STORAGE_KEY,
+ getTimeFormat,
+ setTimeFormat,
+ withTimeFormat,
+} from "../src/lib/time-format.ts";
+import { formatMessageDate } from "../src/lib/format-message-date.ts";
+
+const store = new Map<string, string>();
+(globalThis as { localStorage?: unknown }).localStorage = {
+ getItem: (key: string) => store.get(key) ?? null,
+ setItem: (key: string, value: string) => {
+ store.set(key, value);
+ },
+ removeItem: (key: string) => {
+ store.delete(key);
+ },
+};
+
+const at = new Date(2026, 8, 25, 21, 5);
+const labels = {
+ today: (time: string) => time,
+ yesterday: (time: string) => time,
+};
+const browser = new Intl.DateTimeFormat(undefined, {
+ hour: "numeric",
+}).resolvedOptions();
+const browserLanguage = browser.locale.split("-")[0];
+const otherLanguage = browserLanguage === "de" ? "fr" : "de";
+
+test.afterEach(() => store.clear());
+
+test("an explicit 12- or 24-hour choice applies in every language", () => {
+ setTimeFormat("24h");
+ assert.equal(
+ formatMessageDate(at.getTime(), at.getTime(), "en", labels),
+ "21:05",
+ );
+ setTimeFormat("12h");
+ assert.equal(
+ formatMessageDate(at.getTime(), at.getTime(), "de", labels),
+ "9:05 PM",
+ );
+});
+
+test("system default follows the browser's clock when the app speaks its language", () => {
+ const expected =
+ browser.hourCycle === "h11" || browser.hourCycle === "h12" ? "h12" : "h23";
+ assert.equal(
+ withTimeFormat({ hour: "numeric" }, browserLanguage).hourCycle,
+ expected,
+ );
+});
+
+test("system default leaves another language's own clock alone", () => {
+ const options = { hour: "numeric", minute: "2-digit" } as const;
+ assert.deepEqual(withTimeFormat(options, otherLanguage), options);
+ assert.deepEqual(withTimeFormat(options), options);
+});
+
+test("hour12 cannot outrank the chosen clock", () => {
+ setTimeFormat("24h");
+ assert.deepEqual(withTimeFormat({ hour: "numeric", hour12: true }), {
+ hour: "numeric",
+ hourCycle: "h23",
+ });
+});
+
+test("system default is stored as no value, and junk reads as system", () => {
+ setTimeFormat("24h");
+ assert.equal(store.get(TIME_FORMAT_STORAGE_KEY), "24h");
+ setTimeFormat("system");
+ assert.equal(store.has(TIME_FORMAT_STORAGE_KEY), false);
+ store.set(TIME_FORMAT_STORAGE_KEY, "36h");
+ assert.equal(getTimeFormat(), "system");
+});