diff --git a/src/app/page.js b/src/app/page.js index d625a20..9c95aaf 100644 --- a/src/app/page.js +++ b/src/app/page.js @@ -1,28 +1,31 @@ +import { useTranslations } from "next-intl"; import Image from "next/image"; export default function Home() { + const t = useTranslations("app"); + return (
Next.js logo
  1. - Get started by editing{" "} - - src/app/page.js - - . -
  2. -
  3. - Save and see your changes instantly. + {t("get-started-editing", { + component0: ( + + {t("get-started-editing_component0")} + + ), + })}
  4. +
  5. {t("save-and-see-changes")}
@@ -35,11 +38,11 @@ export default function Home() { Vercel logomark - Deploy now + {t("deploy-now")} - Read our docs + {t("read-our-docs")}
@@ -61,11 +64,11 @@ export default function Home() { File icon - Learn + {t("learn")} - Examples + {t("examples")} - Go to nextjs.org → + {t("go-to-nextjs-org")}
diff --git a/src/messages/en.json b/src/messages/en.json new file mode 100644 index 0000000..90337e0 --- /dev/null +++ b/src/messages/en.json @@ -0,0 +1,17 @@ +{ + "app": { + "nextjs-logo": "Next.js logo", + "get-started-editing_component0": "src/app/page.js", + "get-started-editing": "Get started by editing {component0} .", + "save-and-see-changes": "Save and see your changes instantly.", + "deploy-now": " Deploy now", + "vercel-logomark": "Vercel logomark", + "read-our-docs": "Read our docs", + "learn": " Learn", + "file-icon": "File icon", + "examples": " Examples", + "window-icon": "Window icon", + "go-to-nextjs-org": " Go to nextjs.org →", + "globe-icon": "Globe icon" + } +}