返回 CodeWhale
states.ts
根目录 / web / lib / i18n / dictionaries / en / states.ts
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: "We all make typos.",
21 notFoundBody:
22 "This page doesn’t exist yet.\nNeither does this game.",
23 notFoundHomeLink: "Return to base",
24 notFoundPosterAlt:
25 "A blue whale in tactical gear on the fictional Codwhale: Modern Whalefare game poster.",
26 unavailableTitle: "The live record has not loaded",
27 unavailableBody:
28 "The source did not answer the last refresh, or this page has not refreshed since it was built. Nothing is shown in its place.",
29
30 offlineTitle: "You are offline",
31 offlineBody: "Actions are paused until the connection returns. Nothing shown here is refreshing.",
32 reconnectingTitle: "Reconnecting…",
33 reconnectingBody: "Checking the connection (attempt {attempt}).",
34 degradedTitle: "The connection is unstable",
35 degradedBody: "The server did not answer the last check. What you see may be stale.",
36 onlineTitle: "Back online",
37 onlineBody: "The connection is restored.",
38 retryNow: "Retry now",
39 dismiss: "Dismiss",
40 lastChecked: "Last checked {time}",
41 };
42
42 lines TYPESCRIPT