feat(i18n): wire header strings to translations across locales

This commit is contained in:
openhands
2026-10-17 18:50:54 +02:00
parent a40669b130
commit 050fcdf25b
28 changed files with 430 additions and 342 deletions
+6 -3
View File
@@ -1,6 +1,9 @@
"use client";
import { useTranslations } from "next-intl";
export function RoomQuickEntry() {
const t = useTranslations("header");
return (
<form
action="/client"
@@ -19,8 +22,8 @@ export function RoomQuickEntry() {
<input
type="number"
name="roomId"
placeholder="Room ID"
aria-label="Room ID"
placeholder={t("roomId")}
aria-label={t("roomId")}
min={1}
className="w-20 rounded-lg border px-2 py-1 text-xs font-medium"
style={{
@@ -39,7 +42,7 @@ export function RoomQuickEntry() {
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
Go
{t("go")}
</button>
</form>
);