fix(app): missing i18n keys

This commit is contained in:
Adam
2026-01-21 10:42:26 -06:00
parent ab3d412a81
commit 850d50eb64
12 changed files with 159 additions and 80 deletions

View File

@@ -847,8 +847,8 @@ export default function Layout(props: ParentProps) {
},
{
id: "settings.open",
title: "Open settings",
category: "Settings",
title: language.t("command.settings.open"),
category: language.t("command.category.settings"),
keybind: "mod+comma",
onSelect: () => openSettings(),
},
@@ -1573,12 +1573,12 @@ export default function Layout(props: ParentProps) {
keybind={command.keybind("session.archive")}
gutter={8}
>
<IconButton
icon="archive"
variant="ghost"
onClick={() => archiveSession(props.session)}
aria-label="Archive session"
/>
<IconButton
icon="archive"
variant="ghost"
onClick={() => archiveSession(props.session)}
aria-label={language.t("command.session.archive")}
/>
</TooltipKeybind>
</div>
</div>
@@ -1759,7 +1759,7 @@ export default function Layout(props: ParentProps) {
icon="dot-grid"
variant="ghost"
class="size-6 rounded-md"
aria-label="More options"
aria-label={language.t("common.moreOptions")}
/>
</Tooltip>
<DropdownMenu.Portal>
@@ -1808,7 +1808,7 @@ export default function Layout(props: ParentProps) {
variant="ghost"
class="size-6 rounded-md"
onClick={() => navigate(`/${slug()}/session`)}
aria-label="New session"
aria-label={language.t("command.session.new")}
/>
</TooltipKeybind>
</div>
@@ -2122,7 +2122,7 @@ export default function Layout(props: ParentProps) {
variant="ghost"
size="large"
onClick={chooseProject}
aria-label="Open project"
aria-label={language.t("command.project.open")}
/>
</Tooltip>
</div>
@@ -2142,7 +2142,7 @@ export default function Layout(props: ParentProps) {
variant="ghost"
size="large"
onClick={openSettings}
aria-label="Settings"
aria-label={language.t("sidebar.settings")}
/>
</TooltipKeybind>
<Tooltip placement={sidebarProps.mobile ? "bottom" : "right"} value={language.t("sidebar.help")}>
@@ -2151,7 +2151,7 @@ export default function Layout(props: ParentProps) {
variant="ghost"
size="large"
onClick={() => platform.openLink("https://opencode.ai/desktop-feedback")}
aria-label="Help"
aria-label={language.t("sidebar.help")}
/>
</Tooltip>
</div>
@@ -2202,7 +2202,7 @@ export default function Layout(props: ParentProps) {
icon="dot-grid"
variant="ghost"
class="shrink-0 size-6 rounded-md opacity-0 group-hover/project:opacity-100 data-[expanded]:opacity-100 data-[expanded]:bg-surface-base-active"
aria-label="Project options"
aria-label={language.t("common.moreOptions")}
/>
<DropdownMenu.Portal>
<DropdownMenu.Content class="mt-1">

View File

@@ -1366,7 +1366,7 @@ export default function Page() {
window.history.replaceState(null, "", window.location.href.replace(/#.*$/, ""))
}}
>
Jump to latest
{language.t("session.messages.jumpToLatest")}
</Button>
</div>
</Show>
@@ -2017,9 +2017,11 @@ export default function Page() {
style={{ color: "rgba(239, 68, 68, 0.8)" }}
/>
<div class="text-center" style={{ color: "rgba(255, 255, 255, 0.7)" }}>
<div class="text-14-semibold mb-1">Connection Lost</div>
<div class="text-14-semibold mb-1">
{language.t("terminal.connectionLost.title")}
</div>
<div class="text-12-regular" style={{ color: "rgba(255, 255, 255, 0.5)" }}>
The terminal connection was interrupted. This can happen when the server restarts.
{language.t("terminal.connectionLost.description")}
</div>
</div>
<button
@@ -2037,7 +2039,7 @@ export default function Page() {
}
onClick={() => setDismissed(true)}
>
Dismiss
{language.t("common.dismiss")}
</button>
</div>
</Show>