diff options
| author | Leitwolf11 | 2026-11-17 15:12:16 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-17 15:12:16 +0300 |
| commit | 0036d3f1348f13dda83f97cba8a0a135abe5a7da (patch) | |
| tree | 6e29aa1a79b993b31409050b4bdff34dc12414b0 /apps/web/lib/localization.ts | |
| parent | 477625cd75db2295d0f05bce206d9ea1b5b13ef2 (diff) | |
| download | progmaweb-site/not-found.tar.gz | |
Give an unknown address a page of the site, in the visitor's languagesite/not-found
progmasoft.com/example.txt showed Next's own "404: This page could not be
found" with two titles. Every host now answers such an address with the
header and the footer of the site around one sentence, "We are sorry, the
page you requested cannot be found.", and a line on why, in the language
of the visitor, with the status 404 and no index (app/not-found.tsx,
notFound messages in every locale).
On product.progmasoft.com an unknown address reaches the page of a
product and asks for the not-found page; its metadata now gives the
not-found title too, not the bare site name.
Tests: every host answers /example.txt with 404, the sentence, the header
and the footer, one title, and no sideways scroll; the page speaks German
with a German cookie. 160 layout tests pass; tsc, eslint, 42 unit tests
and the build pass.
Claude-Session: https://claude.ai/code/session_01Ji7xZMYjc4zankoc7hGBE1
Diffstat (limited to 'apps/web/lib/localization.ts')
| -rw-r--r-- | apps/web/lib/localization.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/web/lib/localization.ts b/apps/web/lib/localization.ts index f2a012f..e1c1c83 100644 --- a/apps/web/lib/localization.ts +++ b/apps/web/lib/localization.ts @@ -163,6 +163,11 @@ export const messages = { dark: "Dark", language: "Language", }, + notFound: { + title: "We are sorry, the page you requested cannot be found.", + text: "The address may be misspelled, or the page you are looking for is no longer available.", + pageTitle: "Page not found", + }, footer: { summary: "Developer tools and data infrastructure built with durable contracts.", @@ -424,6 +429,11 @@ export const messages = { dark: "Dunkel", language: "Sprache", }, + notFound: { + title: "Es tut uns leid, die angeforderte Seite wurde nicht gefunden.", + text: "Die Adresse ist vielleicht falsch geschrieben, oder die gesuchte Seite ist nicht mehr verfügbar.", + pageTitle: "Seite nicht gefunden", + }, footer: { summary: "Entwicklerwerkzeuge und Dateninfrastruktur auf der Grundlage beständiger Verträge.", @@ -689,6 +699,11 @@ export const messages = { dark: "Тёмная", language: "Язык", }, + notFound: { + title: "К сожалению, запрошенная страница не найдена.", + text: "Возможно, адрес написан с ошибкой или страница, которую вы ищете, больше недоступна.", + pageTitle: "Страница не найдена", + }, footer: { summary: "Инструменты разработчика и инфраструктура данных, построенные на надёжных контрактах.", @@ -953,6 +968,11 @@ export const messages = { dark: "כהה", language: "שפה", }, + notFound: { + title: "מצטערים, הדף שביקשת לא נמצא.", + text: "ייתכן שהכתובת שגויה, או שהדף שחיפשת כבר אינו זמין.", + pageTitle: "הדף לא נמצא", + }, footer: { summary: "כלי פיתוח ותשתית נתונים, הבנויים על חוזים יציבים.", products: "מוצרים", |