Apply i18n

This commit is contained in:
Takeshi Kimata
2024-05-05 18:39:05 +09:00
parent b0f3852bb2
commit ce078bb132
9 changed files with 157 additions and 39 deletions

View File

@@ -1,13 +1,31 @@
import RunsPage from "./RunsPage";
import { useTranslations } from "next-intl";
export default function Page({
params,
}: {
params: { projectId: string; locale: string };
}) {
const t = useTranslations("Runs");
const messages = {
runs: t("runs"),
id: t("id"),
name: t("name"),
description: t("description"),
lastUpdate: t("last_update"),
actions: t("actions"),
newRun: t("new_run"),
deleteRun: t("delete_run"),
noRunsFound: t("no_runs_found"),
};
return (
<>
<RunsPage projectId={params.projectId} locale={params.locale} />
<RunsPage
projectId={params.projectId}
locale={params.locale}
messages={messages}
/>
</>
);
}