@cloudhal/astro-renderer 0.6.3 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/astro-env.d.ts +9 -0
- package/dist/src/cloudflare-entry.d.ts +10 -0
- package/dist/src/cloudflare-entry.js +117 -8
- package/dist/src/feeds.js +2 -1
- package/dist/src/integration.js +34 -5
- package/dist/src/locales.js +2 -1
- package/dist/src/markdown.js +9 -11
- package/dist/src/resolver.d.ts +7 -0
- package/dist/src/resolver.js +12 -0
- package/dist/src/runtime-workerd.d.ts +32 -0
- package/dist/src/runtime-workerd.js +92 -16
- package/dist/src/runtime.d.ts +20 -0
- package/dist/src/runtime.js +24 -0
- package/dist/src/status-entry.d.ts +66 -0
- package/dist/src/status-entry.js +193 -0
- package/dist/src/status-hook.d.ts +36 -0
- package/dist/src/status-hook.js +141 -0
- package/dist/src/status-html.d.ts +51 -0
- package/dist/src/status-html.js +157 -0
- package/dist/src/status-middleware.d.ts +6 -0
- package/dist/src/status-middleware.js +61 -0
- package/dist/src/status-page.d.ts +94 -0
- package/dist/src/status-page.js +323 -0
- package/dist/src/status-serve.d.ts +56 -0
- package/dist/src/status-serve.js +140 -0
- package/dist/src/status-strings/ar.d.ts +2 -0
- package/dist/src/status-strings/ar.js +34 -0
- package/dist/src/status-strings/catalog.d.ts +8 -0
- package/dist/src/status-strings/catalog.js +52 -0
- package/dist/src/status-strings/de.d.ts +2 -0
- package/dist/src/status-strings/de.js +34 -0
- package/dist/src/status-strings/en.d.ts +46 -0
- package/dist/src/status-strings/en.js +47 -0
- package/dist/src/status-strings/es.d.ts +2 -0
- package/dist/src/status-strings/es.js +34 -0
- package/dist/src/status-strings/fa.d.ts +2 -0
- package/dist/src/status-strings/fa.js +34 -0
- package/dist/src/status-strings/fr.d.ts +2 -0
- package/dist/src/status-strings/fr.js +34 -0
- package/dist/src/status-strings/he.d.ts +2 -0
- package/dist/src/status-strings/he.js +34 -0
- package/dist/src/status-strings/hi.d.ts +2 -0
- package/dist/src/status-strings/hi.js +34 -0
- package/dist/src/status-strings/id.d.ts +2 -0
- package/dist/src/status-strings/id.js +34 -0
- package/dist/src/status-strings/it.d.ts +2 -0
- package/dist/src/status-strings/it.js +34 -0
- package/dist/src/status-strings/ja.d.ts +2 -0
- package/dist/src/status-strings/ja.js +34 -0
- package/dist/src/status-strings/ko.d.ts +2 -0
- package/dist/src/status-strings/ko.js +34 -0
- package/dist/src/status-strings/nl.d.ts +2 -0
- package/dist/src/status-strings/nl.js +34 -0
- package/dist/src/status-strings/pl.d.ts +2 -0
- package/dist/src/status-strings/pl.js +34 -0
- package/dist/src/status-strings/pt-BR.d.ts +2 -0
- package/dist/src/status-strings/pt-BR.js +34 -0
- package/dist/src/status-strings/ru.d.ts +2 -0
- package/dist/src/status-strings/ru.js +34 -0
- package/dist/src/status-strings/tr.d.ts +2 -0
- package/dist/src/status-strings/tr.js +34 -0
- package/dist/src/status-strings/uk.d.ts +2 -0
- package/dist/src/status-strings/uk.js +34 -0
- package/dist/src/status-strings/zh-Hans.d.ts +2 -0
- package/dist/src/status-strings/zh-Hans.js +34 -0
- package/package.json +23 -7
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the Site Worker entry and the dev middleware need around `statusPage` (RFC-0043 §1.4,
|
|
3
|
+
* §1.6, §1.8): which paths get a page rather than the theme's own answer, the page's locale from
|
|
4
|
+
* the request's host or path prefix, and the site data each state may show. Worker-safe.
|
|
5
|
+
*/
|
|
6
|
+
import type { Site } from "@cloudhal/core-contracts";
|
|
7
|
+
import type { SiteState, StatusPageInput, StatusTheme } from "./status-page.js";
|
|
8
|
+
/** Feeds, sitemaps, `llms.txt`, search JSON, manifests: machines read these (§2.3). */
|
|
9
|
+
export declare const MACHINE_PATH: RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* True for a path that gets the status page before the first publish (§2.3): everything a
|
|
12
|
+
* person opens in a browser. `robots.txt`, media, static assets, `/.well-known/`, the
|
|
13
|
+
* operator endpoints, comment endpoints and machine paths keep their own answers.
|
|
14
|
+
*/
|
|
15
|
+
export declare function isStatusPagePath(pathname: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* How the entry's state step treats a path (§2.3, §2.5): `page` gets the status page, `machine`
|
|
18
|
+
* (feeds, sitemaps, `llms.txt`, search JSON) a short plain or JSON answer where the state calls
|
|
19
|
+
* for one, `undefined` keeps its own answer.
|
|
20
|
+
*/
|
|
21
|
+
export declare function statusPathKind(pathname: string): "page" | "machine" | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Decision 12: a response served despite a preview token that did not verify (media, and paths
|
|
24
|
+
* the state step leaves to the theme) is kept out of the edge cache and says only that the link
|
|
25
|
+
* is invalid; why it failed (expired, signature, another site, previews off) is never echoed.
|
|
26
|
+
*/
|
|
27
|
+
export declare function markInvalidPreview(headers: Headers): void;
|
|
28
|
+
/** What choosing the locale needs of a site (`localeRequest` reads nothing else). */
|
|
29
|
+
export interface LocaleSite {
|
|
30
|
+
readonly locales: readonly string[];
|
|
31
|
+
readonly defaultLocale: string;
|
|
32
|
+
readonly localization?: Site["localization"] | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** The path without trailing slashes (`/` for the root), in one linear pass: request text. */
|
|
35
|
+
export declare function trimTrailingSlashes(pathname: string): string;
|
|
36
|
+
/** §1.4: the locale of the request's host or path prefix when it is the site's, else the default. */
|
|
37
|
+
export declare function statusLocale(site: LocaleSite, host: string, pathname: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* §1.3: the site's look as the status page may use it — `brand` (else `seed`), `surface` and
|
|
40
|
+
* `text` when they are `#rrggbb`, and the `typePairing` choice as a system font stack. Read from
|
|
41
|
+
* the published snapshot's site node only; everything else in `theme.config` is ignored.
|
|
42
|
+
*/
|
|
43
|
+
export declare function statusTheme(site: Pick<Site, "theme">): StatusTheme | undefined;
|
|
44
|
+
/** The site's logo when it is a same-origin media URL (§1.6). */
|
|
45
|
+
export declare function statusLogo(site: Pick<Site, "brand">): string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* §1.6: the site data a state may show. `live` is the site node as it is now (the name only);
|
|
48
|
+
* `published` the published snapshot's, which also brings the logo and the theme tokens.
|
|
49
|
+
*/
|
|
50
|
+
export declare function statusInput(state: SiteState, sites: {
|
|
51
|
+
live?: Site | undefined;
|
|
52
|
+
published?: Site | undefined;
|
|
53
|
+
}, request: {
|
|
54
|
+
host: string;
|
|
55
|
+
pathname: string;
|
|
56
|
+
}, now: number): StatusPageInput;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the Site Worker entry and the dev middleware need around `statusPage` (RFC-0043 §1.4,
|
|
3
|
+
* §1.6, §1.8): which paths get a page rather than the theme's own answer, the page's locale from
|
|
4
|
+
* the request's host or path prefix, and the site data each state may show. Worker-safe.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { isCommentsPath } from "./comments.js";
|
|
8
|
+
import { localeRequest } from "./locales.js";
|
|
9
|
+
import { matchMediaRoute } from "./media-route.js";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/** Feeds, sitemaps, `llms.txt`, search JSON, manifests: machines read these (§2.3). */
|
|
13
|
+
export const MACHINE_PATH = /\.(?:xml|txt|json|rss|atom|webmanifest)$/i;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* True for a path that gets the status page before the first publish (§2.3): everything a
|
|
17
|
+
* person opens in a browser. `robots.txt`, media, static assets, `/.well-known/`, the
|
|
18
|
+
* operator endpoints, comment endpoints and machine paths keep their own answers.
|
|
19
|
+
*/
|
|
20
|
+
export function isStatusPagePath(pathname ) {
|
|
21
|
+
return !keepsOwnAnswer(pathname) && !MACHINE_PATH.test(pathname);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** `robots.txt`, media, static assets, `/.well-known/`, operator and comment endpoints. */
|
|
25
|
+
function keepsOwnAnswer(pathname ) {
|
|
26
|
+
return (
|
|
27
|
+
pathname === "/robots.txt" ||
|
|
28
|
+
matchMediaRoute(pathname) !== undefined ||
|
|
29
|
+
/^\/(?:_astro|_cloudhal|__cloudhal|\.well-known)\//.test(pathname) ||
|
|
30
|
+
isCommentsPath(pathname)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* How the entry's state step treats a path (§2.3, §2.5): `page` gets the status page, `machine`
|
|
36
|
+
* (feeds, sitemaps, `llms.txt`, search JSON) a short plain or JSON answer where the state calls
|
|
37
|
+
* for one, `undefined` keeps its own answer.
|
|
38
|
+
*/
|
|
39
|
+
export function statusPathKind(pathname ) {
|
|
40
|
+
if (keepsOwnAnswer(pathname)) return undefined;
|
|
41
|
+
return MACHINE_PATH.test(pathname) ? "machine" : "page";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Decision 12: a response served despite a preview token that did not verify (media, and paths
|
|
46
|
+
* the state step leaves to the theme) is kept out of the edge cache and says only that the link
|
|
47
|
+
* is invalid; why it failed (expired, signature, another site, previews off) is never echoed.
|
|
48
|
+
*/
|
|
49
|
+
export function markInvalidPreview(headers ) {
|
|
50
|
+
headers.set("cloudflare-cdn-cache-control", "no-store");
|
|
51
|
+
headers.set("x-cloudhal-preview-error", "invalid");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** What choosing the locale needs of a site (`localeRequest` reads nothing else). */
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/** The path without trailing slashes (`/` for the root), in one linear pass: request text. */
|
|
62
|
+
export function trimTrailingSlashes(pathname ) {
|
|
63
|
+
let end = pathname.length;
|
|
64
|
+
while (end > 0 && pathname.charCodeAt(end - 1) === 47) end--;
|
|
65
|
+
return end === 0 ? "/" : pathname.slice(0, end);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** §1.4: the locale of the request's host or path prefix when it is the site's, else the default. */
|
|
69
|
+
export function statusLocale(site , host , pathname ) {
|
|
70
|
+
const path = trimTrailingSlashes(pathname);
|
|
71
|
+
try {
|
|
72
|
+
return localeRequest(site , host, path).locale;
|
|
73
|
+
} catch {
|
|
74
|
+
return site.defaultLocale || "en";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
const HEX = /^#[0-9a-f]{6}$/i;
|
|
79
|
+
const FONTS = {
|
|
80
|
+
editorial: "serif",
|
|
81
|
+
classic: "serif",
|
|
82
|
+
technical: "mono",
|
|
83
|
+
system: "sans",
|
|
84
|
+
modern: "sans",
|
|
85
|
+
humanist: "sans",
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* §1.3: the site's look as the status page may use it — `brand` (else `seed`), `surface` and
|
|
90
|
+
* `text` when they are `#rrggbb`, and the `typePairing` choice as a system font stack. Read from
|
|
91
|
+
* the published snapshot's site node only; everything else in `theme.config` is ignored.
|
|
92
|
+
*/
|
|
93
|
+
export function statusTheme(site ) {
|
|
94
|
+
const config = (site.theme.config ?? {}) ;
|
|
95
|
+
const color = (key ) => {
|
|
96
|
+
const v = config[key];
|
|
97
|
+
return typeof v === "string" && HEX.test(v) ? v.toLowerCase() : undefined;
|
|
98
|
+
};
|
|
99
|
+
const pairing = config.typePairing;
|
|
100
|
+
const theme = {
|
|
101
|
+
brand: color("brand") ?? color("seed"),
|
|
102
|
+
surface: color("surface"),
|
|
103
|
+
text: color("text"),
|
|
104
|
+
font: typeof pairing === "string" ? FONTS[pairing] : undefined,
|
|
105
|
+
};
|
|
106
|
+
return Object.values(theme).some((v) => v !== undefined) ? theme : undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** The site's logo when it is a same-origin media URL (§1.6). */
|
|
110
|
+
export function statusLogo(site ) {
|
|
111
|
+
const src = site.brand?.logo?.src;
|
|
112
|
+
return src?.startsWith("/media/") ? src : undefined;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* §1.6: the site data a state may show. `live` is the site node as it is now (the name only);
|
|
117
|
+
* `published` the published snapshot's, which also brings the logo and the theme tokens.
|
|
118
|
+
*/
|
|
119
|
+
export function statusInput(
|
|
120
|
+
state ,
|
|
121
|
+
sites ,
|
|
122
|
+
request ,
|
|
123
|
+
now ,
|
|
124
|
+
) {
|
|
125
|
+
const site = sites.published ?? sites.live;
|
|
126
|
+
const locale = site ? statusLocale(site, request.host, request.pathname) : "en";
|
|
127
|
+
if (state === "unavailable" || !site) return { locale, now };
|
|
128
|
+
// `error`: the name of a site this request already read, nothing else (§1.6).
|
|
129
|
+
if (state === "error") return { locale, now, site: { name: site.name } };
|
|
130
|
+
const showsBrand = sites.published !== undefined && state !== "not-published";
|
|
131
|
+
return {
|
|
132
|
+
locale,
|
|
133
|
+
now,
|
|
134
|
+
site: {
|
|
135
|
+
name: site.name,
|
|
136
|
+
...(showsBrand && sites.published ? { logo: statusLogo(sites.published) } : {}),
|
|
137
|
+
},
|
|
138
|
+
...(showsBrand && sites.published ? { theme: statusTheme(sites.published) } : {}),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): ar status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: b5c519cedb1faeba
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "قريبًا",
|
|
9
|
+
body: "لم يُنشر هذا الموقع بعد. عُد للزيارة قريبًا.",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "سنعود قريبًا",
|
|
13
|
+
body: "هذا الموقع قيد الصيانة. شكرًا لصبرك.",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "قريبًا",
|
|
17
|
+
body: "لم يُفتح هذا الموقع بعد. عُد للزيارة قريبًا.",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "غير متاح مؤقتًا",
|
|
21
|
+
body: "يتعذر الوصول إلى هذا الموقع الآن. يُرجى المحاولة مجددًا بعد بضع دقائق.",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "حدث خطأ ما",
|
|
25
|
+
body: "تعذر عرض هذه الصفحة. يُرجى المحاولة مجددًا بعد قليل.",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "انتهت صلاحية رابط المعاينة هذا",
|
|
29
|
+
body: "اطلب رابطًا جديدًا لعرض هذا الإصدار.",
|
|
30
|
+
},
|
|
31
|
+
backBy: "نعود بحلول {time}",
|
|
32
|
+
reference: "المرجع: {reference}",
|
|
33
|
+
builtWith: "صُنع باستخدام Cloudhal",
|
|
34
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type StatusMessages } from "./en.js";
|
|
2
|
+
export interface StatusCatalogEntry {
|
|
3
|
+
readonly messages: StatusMessages;
|
|
4
|
+
readonly dir: "ltr" | "rtl";
|
|
5
|
+
/** The tag `Intl` formats with when it differs from the locale (Western digits, ADR-0033). */
|
|
6
|
+
readonly intl?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const STATUS_CATALOG: Readonly<Record<string, StatusCatalogEntry>>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034, RFC-0043 §1.5): every registered language's
|
|
2
|
+
// status-page messages with its writing direction and `Intl` tag from Studio's locale registry.
|
|
3
|
+
// Do not edit: add a language to `apps/studio/src/i18n/locales.ts` and import its catalogs.
|
|
4
|
+
|
|
5
|
+
import { messages as ar } from "./ar.js";
|
|
6
|
+
import { messages as de } from "./de.js";
|
|
7
|
+
import { en, } from "./en.js";
|
|
8
|
+
import { messages as es } from "./es.js";
|
|
9
|
+
import { messages as fa } from "./fa.js";
|
|
10
|
+
import { messages as fr } from "./fr.js";
|
|
11
|
+
import { messages as he } from "./he.js";
|
|
12
|
+
import { messages as hi } from "./hi.js";
|
|
13
|
+
import { messages as id } from "./id.js";
|
|
14
|
+
import { messages as it } from "./it.js";
|
|
15
|
+
import { messages as ja } from "./ja.js";
|
|
16
|
+
import { messages as ko } from "./ko.js";
|
|
17
|
+
import { messages as nl } from "./nl.js";
|
|
18
|
+
import { messages as pl } from "./pl.js";
|
|
19
|
+
import { messages as pt_BR } from "./pt-BR.js";
|
|
20
|
+
import { messages as ru } from "./ru.js";
|
|
21
|
+
import { messages as tr } from "./tr.js";
|
|
22
|
+
import { messages as uk } from "./uk.js";
|
|
23
|
+
import { messages as zh_Hans } from "./zh-Hans.js";
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export const STATUS_CATALOG = {
|
|
33
|
+
en: { messages: en, dir: "ltr" },
|
|
34
|
+
tr: { messages: tr, dir: "ltr" },
|
|
35
|
+
de: { messages: de, dir: "ltr" },
|
|
36
|
+
es: { messages: es, dir: "ltr" },
|
|
37
|
+
fr: { messages: fr, dir: "ltr" },
|
|
38
|
+
it: { messages: it, dir: "ltr" },
|
|
39
|
+
"pt-BR": { messages: pt_BR, dir: "ltr" },
|
|
40
|
+
nl: { messages: nl, dir: "ltr" },
|
|
41
|
+
pl: { messages: pl, dir: "ltr" },
|
|
42
|
+
ru: { messages: ru, dir: "ltr" },
|
|
43
|
+
uk: { messages: uk, dir: "ltr" },
|
|
44
|
+
ja: { messages: ja, dir: "ltr" },
|
|
45
|
+
ko: { messages: ko, dir: "ltr" },
|
|
46
|
+
"zh-Hans": { messages: zh_Hans, dir: "ltr" },
|
|
47
|
+
hi: { messages: hi, dir: "ltr" },
|
|
48
|
+
id: { messages: id, dir: "ltr" },
|
|
49
|
+
ar: { messages: ar, dir: "rtl", intl: "ar-u-nu-latn" },
|
|
50
|
+
fa: { messages: fa, dir: "rtl", intl: "fa-u-nu-latn" },
|
|
51
|
+
he: { messages: he, dir: "rtl" },
|
|
52
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): de status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: 96c78422069956fb
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "Demnächst",
|
|
9
|
+
body: "Diese Website ist noch nicht veröffentlicht. Schauen Sie bald wieder vorbei.",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "Wir sind bald zurück",
|
|
13
|
+
body: "Diese Website wird gerade gewartet. Vielen Dank für Ihre Geduld.",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "Demnächst",
|
|
17
|
+
body: "Diese Website ist noch nicht geöffnet. Schauen Sie bald wieder vorbei.",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "Vorübergehend nicht erreichbar",
|
|
21
|
+
body: "Diese Website ist gerade nicht erreichbar. Bitte versuchen Sie es in ein paar Minuten erneut.",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "Etwas ist schiefgelaufen",
|
|
25
|
+
body: "Diese Seite konnte nicht angezeigt werden. Bitte versuchen Sie es gleich noch einmal.",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "Dieser Vorschaulink ist abgelaufen",
|
|
29
|
+
body: "Bitten Sie um einen neuen Link, um diese Version zu sehen.",
|
|
30
|
+
},
|
|
31
|
+
backBy: "Zurück bis {time}",
|
|
32
|
+
reference: "Referenz: {reference}",
|
|
33
|
+
builtWith: "Erstellt mit Cloudhal",
|
|
34
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words of the status pages (RFC-0043 §1.5): English is the source of truth for the keys,
|
|
3
|
+
* edited here by hand; every other registered language is generated by `pnpm i18n:import` from
|
|
4
|
+
* `.i18n/<locale>/status.json` (ADR-0034) and `catalog.ts` lists them all. Messages are ICU
|
|
5
|
+
* MessageFormat 1 restricted to simple `{argument}`s: nothing here counts or selects, so the
|
|
6
|
+
* renderer substitutes them itself and no compiler ships in the site Worker.
|
|
7
|
+
*/
|
|
8
|
+
export declare const en: {
|
|
9
|
+
/** Before the first publish (503): the site's name may sit above it. */
|
|
10
|
+
notPublished: {
|
|
11
|
+
title: string;
|
|
12
|
+
body: string;
|
|
13
|
+
};
|
|
14
|
+
/** Maintenance mode with the `maintenance` wording (503). */
|
|
15
|
+
maintenance: {
|
|
16
|
+
title: string;
|
|
17
|
+
body: string;
|
|
18
|
+
};
|
|
19
|
+
/** Maintenance mode with the `coming-soon` wording: a published site kept private until launch (503). */
|
|
20
|
+
comingSoon: {
|
|
21
|
+
title: string;
|
|
22
|
+
body: string;
|
|
23
|
+
};
|
|
24
|
+
/** The Worker serves no site, or its store cannot be read (503). */
|
|
25
|
+
unavailable: {
|
|
26
|
+
title: string;
|
|
27
|
+
body: string;
|
|
28
|
+
};
|
|
29
|
+
/** A render failure (500); the page shows a reference id a visitor can quote. */
|
|
30
|
+
error: {
|
|
31
|
+
title: string;
|
|
32
|
+
body: string;
|
|
33
|
+
};
|
|
34
|
+
/** An expired, forged or otherwise invalid preview link (410). */
|
|
35
|
+
previewExpired: {
|
|
36
|
+
title: string;
|
|
37
|
+
body: string;
|
|
38
|
+
};
|
|
39
|
+
/** When maintenance ends; {time} is a date and time in the site's time zone. */
|
|
40
|
+
backBy: string;
|
|
41
|
+
/** The error page's request id; {reference} is the id a visitor can quote to the owner. */
|
|
42
|
+
reference: string;
|
|
43
|
+
/** The footer of the built-in page. */
|
|
44
|
+
builtWith: string;
|
|
45
|
+
};
|
|
46
|
+
export type StatusMessages = typeof en;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words of the status pages (RFC-0043 §1.5): English is the source of truth for the keys,
|
|
3
|
+
* edited here by hand; every other registered language is generated by `pnpm i18n:import` from
|
|
4
|
+
* `.i18n/<locale>/status.json` (ADR-0034) and `catalog.ts` lists them all. Messages are ICU
|
|
5
|
+
* MessageFormat 1 restricted to simple `{argument}`s: nothing here counts or selects, so the
|
|
6
|
+
* renderer substitutes them itself and no compiler ships in the site Worker.
|
|
7
|
+
*/
|
|
8
|
+
export const en = {
|
|
9
|
+
/** Before the first publish (503): the site's name may sit above it. */
|
|
10
|
+
notPublished: {
|
|
11
|
+
title: "Coming soon",
|
|
12
|
+
body: "This site isn't published yet. Check back soon.",
|
|
13
|
+
},
|
|
14
|
+
/** Maintenance mode with the `maintenance` wording (503). */
|
|
15
|
+
maintenance: {
|
|
16
|
+
title: "We'll be back soon",
|
|
17
|
+
body: "This site is down for maintenance. Thanks for your patience.",
|
|
18
|
+
},
|
|
19
|
+
/** Maintenance mode with the `coming-soon` wording: a published site kept private until launch (503). */
|
|
20
|
+
comingSoon: {
|
|
21
|
+
title: "Coming soon",
|
|
22
|
+
body: "This site isn't open yet. Check back soon.",
|
|
23
|
+
},
|
|
24
|
+
/** The Worker serves no site, or its store cannot be read (503). */
|
|
25
|
+
unavailable: {
|
|
26
|
+
title: "Temporarily unavailable",
|
|
27
|
+
body: "This site can't be reached right now. Please try again in a few minutes.",
|
|
28
|
+
},
|
|
29
|
+
/** A render failure (500); the page shows a reference id a visitor can quote. */
|
|
30
|
+
error: {
|
|
31
|
+
title: "Something went wrong",
|
|
32
|
+
body: "This page couldn't be shown. Please try again in a moment.",
|
|
33
|
+
},
|
|
34
|
+
/** An expired, forged or otherwise invalid preview link (410). */
|
|
35
|
+
previewExpired: {
|
|
36
|
+
title: "This preview link has expired",
|
|
37
|
+
body: "Ask for a new link to see this version.",
|
|
38
|
+
},
|
|
39
|
+
/** When maintenance ends; {time} is a date and time in the site's time zone. */
|
|
40
|
+
backBy: "Back by {time}",
|
|
41
|
+
/** The error page's request id; {reference} is the id a visitor can quote to the owner. */
|
|
42
|
+
reference: "Reference: {reference}",
|
|
43
|
+
/** The footer of the built-in page. */
|
|
44
|
+
builtWith: "Built with Cloudhal",
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): es status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: 328d0dacfe8b0e76
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "Próximamente",
|
|
9
|
+
body: "Este sitio aún no está publicado. Vuelve pronto.",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "Volveremos pronto",
|
|
13
|
+
body: "Este sitio está en mantenimiento. Gracias por tu paciencia.",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "Próximamente",
|
|
17
|
+
body: "Este sitio aún no está abierto. Vuelve pronto.",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "Temporalmente no disponible",
|
|
21
|
+
body: "No es posible acceder a este sitio en este momento. Inténtalo de nuevo en unos minutos.",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "Algo salió mal",
|
|
25
|
+
body: "No se pudo mostrar esta página. Inténtalo de nuevo en un momento.",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "Este enlace de vista previa ha caducado",
|
|
29
|
+
body: "Pide un enlace nuevo para ver esta versión.",
|
|
30
|
+
},
|
|
31
|
+
backBy: "Volvemos el {time}",
|
|
32
|
+
reference: "Referencia: {reference}",
|
|
33
|
+
builtWith: "Creado con Cloudhal",
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): fa status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: 9902597705f57558
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "بهزودی",
|
|
9
|
+
body: "این سایت هنوز منتشر نشده است. بهزودی دوباره سر بزنید.",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "بهزودی برمیگردیم",
|
|
13
|
+
body: "این سایت در حال تعمیر و نگهداری است. از شکیبایی شما سپاسگزاریم.",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "بهزودی",
|
|
17
|
+
body: "این سایت هنوز باز نشده است. بهزودی دوباره سر بزنید.",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "موقتاً در دسترس نیست",
|
|
21
|
+
body: "در حال حاضر نمیتوان به این سایت دسترسی داشت. لطفاً چند دقیقه دیگر دوباره تلاش کنید.",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "مشکلی پیش آمد",
|
|
25
|
+
body: "این صفحه نمایش داده نشد. لطفاً کمی بعد دوباره تلاش کنید.",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "این پیوند پیشنمایش منقضی شده است",
|
|
29
|
+
body: "برای دیدن این نسخه، پیوند تازهای درخواست کنید.",
|
|
30
|
+
},
|
|
31
|
+
backBy: "تا {time} برمیگردیم",
|
|
32
|
+
reference: "شناسه پیگیری: {reference}",
|
|
33
|
+
builtWith: "ساختهشده با Cloudhal",
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): fr status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: 3766e010edaa51e7
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "Bientôt disponible",
|
|
9
|
+
body: "Ce site n'est pas encore publié. Revenez bientôt.",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "Nous revenons bientôt",
|
|
13
|
+
body: "Ce site est en maintenance. Merci de votre patience.",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "Bientôt disponible",
|
|
17
|
+
body: "Ce site n'est pas encore ouvert. Revenez bientôt.",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "Temporairement indisponible",
|
|
21
|
+
body: "Ce site est inaccessible pour le moment. Veuillez réessayer dans quelques minutes.",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "Un problème est survenu",
|
|
25
|
+
body: "Cette page n'a pas pu être affichée. Veuillez réessayer dans un instant.",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "Ce lien d'aperçu a expiré",
|
|
29
|
+
body: "Demandez un nouveau lien pour voir cette version.",
|
|
30
|
+
},
|
|
31
|
+
backBy: "De retour le {time}",
|
|
32
|
+
reference: "Référence : {reference}",
|
|
33
|
+
builtWith: "Créé avec Cloudhal",
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): he status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: 14a7126c4a0192c8
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "בקרוב",
|
|
9
|
+
body: "האתר הזה עדיין לא פורסם. חזרו לבקר בקרוב.",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "נחזור בקרוב",
|
|
13
|
+
body: "האתר הזה נמצא בתחזוקה. תודה על הסבלנות.",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "בקרוב",
|
|
17
|
+
body: "האתר הזה עדיין לא נפתח. חזרו לבקר בקרוב.",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "לא זמין באופן זמני",
|
|
21
|
+
body: "אי אפשר להגיע לאתר כרגע. נסו שוב בעוד כמה דקות.",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "משהו השתבש",
|
|
25
|
+
body: "לא ניתן היה להציג את הדף הזה. נסו שוב בעוד רגע.",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "תוקף קישור התצוגה המקדימה פג",
|
|
29
|
+
body: "בקשו קישור חדש כדי לראות את הגרסה הזו.",
|
|
30
|
+
},
|
|
31
|
+
backBy: "נחזור עד {time}",
|
|
32
|
+
reference: "מספר אסמכתה: {reference}",
|
|
33
|
+
builtWith: "נבנה עם Cloudhal",
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by `pnpm i18n:import` (ADR-0034): hi status page messages.
|
|
2
|
+
// Do not edit: change the translation file and import it; only English is edited here.
|
|
3
|
+
// hash: a36645c8efdccd2c
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export const messages = {
|
|
7
|
+
notPublished: {
|
|
8
|
+
title: "जल्द आ रहा है",
|
|
9
|
+
body: "यह साइट अभी प्रकाशित नहीं हुई है। जल्द ही दोबारा देखें।",
|
|
10
|
+
},
|
|
11
|
+
maintenance: {
|
|
12
|
+
title: "हम जल्द वापस आएंगे",
|
|
13
|
+
body: "यह साइट रखरखाव के लिए बंद है। आपके धैर्य के लिए धन्यवाद।",
|
|
14
|
+
},
|
|
15
|
+
comingSoon: {
|
|
16
|
+
title: "जल्द आ रहा है",
|
|
17
|
+
body: "यह साइट अभी खुली नहीं है। जल्द ही दोबारा देखें।",
|
|
18
|
+
},
|
|
19
|
+
unavailable: {
|
|
20
|
+
title: "अस्थायी रूप से अनुपलब्ध",
|
|
21
|
+
body: "इस साइट तक अभी नहीं पहुँचा जा सकता। कृपया कुछ मिनट बाद फिर से कोशिश करें।",
|
|
22
|
+
},
|
|
23
|
+
error: {
|
|
24
|
+
title: "कुछ गलत हो गया",
|
|
25
|
+
body: "यह पेज नहीं दिखाया जा सका। कृपया थोड़ी देर बाद फिर से कोशिश करें।",
|
|
26
|
+
},
|
|
27
|
+
previewExpired: {
|
|
28
|
+
title: "यह पूर्वावलोकन लिंक समाप्त हो गया है",
|
|
29
|
+
body: "यह संस्करण देखने के लिए नया लिंक माँगें।",
|
|
30
|
+
},
|
|
31
|
+
backBy: "{time} तक वापस",
|
|
32
|
+
reference: "संदर्भ: {reference}",
|
|
33
|
+
builtWith: "Cloudhal से बनाया गया",
|
|
34
|
+
};
|