feat(i18n): wire header strings to translations across locales
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user