| 1 | import type { StatesDict } from "../types"; |
| 2 | |
| 3 | /** |
| 4 | * English reference dictionary for shared surface states: empty, loading, |
| 5 | * error, retry, recovery, not-found, and the connection banner. Every |
| 6 | * data-bearing page renders these through `components/surface-state.tsx` |
| 7 | * rather than inventing its own wording. |
| 8 | */ |
| 9 | export const states: StatesDict = { |
| 10 | loadingLabel: "Loading…", |
| 11 | emptyTitle: "Nothing here yet", |
| 12 | emptyBody: "There is no record to show. Nothing has been invented to fill the space.", |
| 13 | errorTitle: "This page did not finish loading", |
| 14 | errorBody: |
| 15 | "Something failed on the way here. Nothing you did was lost; try again, and if it keeps failing, report it.", |
| 16 | retry: "Try again", |
| 17 | reload: "Reload the page", |
| 18 | homeLink: "Back to the home page", |
| 19 | docsIndexLink: "Open the documentation index", |
| 20 | notFoundTitle: "There is no page at this address", |
| 21 | notFoundBody: |
| 22 | "The link may be old, or the page may have moved. The documentation index lists every current page.", |
| 23 | unavailableTitle: "The live record has not loaded", |
| 24 | unavailableBody: |
| 25 | "The source did not answer the last refresh, or this page has not refreshed since it was built. Nothing is shown in its place.", |
| 26 | |
| 27 | offlineTitle: "You are offline", |
| 28 | offlineBody: "Actions are paused until the connection returns. Nothing shown here is refreshing.", |
| 29 | reconnectingTitle: "Reconnecting…", |
| 30 | reconnectingBody: "Checking the connection (attempt {attempt}).", |
| 31 | degradedTitle: "The connection is unstable", |
| 32 | degradedBody: "The server did not answer the last check. What you see may be stale.", |
| 33 | onlineTitle: "Back online", |
| 34 | onlineBody: "The connection is restored.", |
| 35 | retryNow: "Retry now", |
| 36 | dismiss: "Dismiss", |
| 37 | lastChecked: "Last checked {time}", |
| 38 | }; |
| 39 |