From 05cb3c87ca387be41aceb5ccad978c6848a56f70 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Fri, 13 Mar 2026 06:48:38 -0500 Subject: chore(app): i18n sync (#17283) --- packages/ui/src/components/basic-tool.tsx | 5 ++++- packages/ui/src/components/file-search.tsx | 11 +++++++---- .../ui/src/components/line-comment-annotations.tsx | 8 +++++--- packages/ui/src/components/message-part.tsx | 20 +++++++++++--------- packages/ui/src/components/tool-error-card.tsx | 16 ++++++++++------ packages/ui/src/i18n/ar.ts | 12 ++++++++++++ packages/ui/src/i18n/br.ts | 12 ++++++++++++ packages/ui/src/i18n/bs.ts | 12 ++++++++++++ packages/ui/src/i18n/da.ts | 12 ++++++++++++ packages/ui/src/i18n/de.ts | 12 ++++++++++++ packages/ui/src/i18n/en.ts | 13 +++++++++++++ packages/ui/src/i18n/es.ts | 12 ++++++++++++ packages/ui/src/i18n/fr.ts | 12 ++++++++++++ packages/ui/src/i18n/ja.ts | 12 ++++++++++++ packages/ui/src/i18n/ko.ts | 12 ++++++++++++ packages/ui/src/i18n/no.ts | 12 ++++++++++++ packages/ui/src/i18n/pl.ts | 12 ++++++++++++ packages/ui/src/i18n/ru.ts | 12 ++++++++++++ packages/ui/src/i18n/th.ts | 12 ++++++++++++ packages/ui/src/i18n/tr.ts | 12 ++++++++++++ packages/ui/src/i18n/zh.ts | 12 ++++++++++++ packages/ui/src/i18n/zht.ts | 12 ++++++++++++ packages/ui/src/pierre/selection-bridge.ts | 9 ++++++--- 23 files changed, 248 insertions(+), 26 deletions(-) (limited to 'packages/ui') diff --git a/packages/ui/src/components/basic-tool.tsx b/packages/ui/src/components/basic-tool.tsx index 3f009f4e0..0b2c1e1ce 100644 --- a/packages/ui/src/components/basic-tool.tsx +++ b/packages/ui/src/components/basic-tool.tsx @@ -1,5 +1,6 @@ import { createEffect, For, Match, on, onCleanup, Show, Switch, type JSX } from "solid-js" import { animate, type AnimationPlaybackControls } from "motion" +import { useI18n } from "../context/i18n" import { createStore } from "solid-js/store" import { Collapsible } from "./collapsible" import type { IconProps } from "./icon" @@ -233,12 +234,14 @@ export function GenericTool(props: { hideDetails?: boolean input?: Record }) { + const i18n = useI18n() + return ( void onNext: () => void }) { + const i18n = useI18n() + return (
props.onInput(e.currentTarget.value)} @@ -40,7 +43,7 @@ export function FileSearchBar(props: { type="button" class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong disabled:opacity-40 disabled:pointer-events-none" disabled={props.count() === 0} - aria-label="Previous match" + aria-label={i18n.t("ui.fileSearch.previousMatch")} onClick={props.onPrev} > @@ -49,7 +52,7 @@ export function FileSearchBar(props: { type="button" class="size-6 grid place-items-center rounded text-text-weak hover:bg-surface-base-hover hover:text-text-strong disabled:opacity-40 disabled:pointer-events-none" disabled={props.count() === 0} - aria-label="Next match" + aria-label={i18n.t("ui.fileSearch.nextMatch")} onClick={props.onNext} > @@ -58,7 +61,7 @@ export function FileSearchBar(props: {