create-claudecraft 1.0.0 → 2.0.0
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/README.md +43 -178
- package/bin/cli.js +186 -1
- package/dist/answers.d.ts +269 -0
- package/dist/answers.js +215 -0
- package/dist/ink-prompts.d.ts +90 -12
- package/dist/ink-prompts.js +371 -330
- package/dist/lettering.d.ts +2 -0
- package/dist/lettering.js +28 -0
- package/lib/apps.mjs +141 -0
- package/lib/github.mjs +24 -0
- package/lib/init.mjs +153 -0
- package/lib/ports.mjs +56 -0
- package/lib/scaffold.mjs +218 -0
- package/lib/upgrade.mjs +164 -0
- package/package.json +39 -33
- package/templates/astro/.editorconfig +15 -0
- package/templates/astro/.env.example +2 -0
- package/templates/astro/.github/workflows/ci.yml +37 -0
- package/templates/astro/.github/workflows/deploy.yml +46 -0
- package/templates/astro/.nvmrc +1 -0
- package/templates/astro/.prettierignore +10 -0
- package/templates/astro/.prettierrc.json +7 -0
- package/templates/astro/.vscode/extensions.json +3 -0
- package/templates/astro/.vscode/settings.json +12 -0
- package/templates/astro/AGENTS.md +100 -0
- package/templates/astro/README.md +42 -0
- package/templates/astro/_CLAUDE.md +1 -0
- package/templates/astro/_claude/launch.json +13 -0
- package/templates/astro/_claude/settings.json +22 -0
- package/templates/astro/_codex/environments/environment.toml +20 -0
- package/templates/astro/_gitignore +31 -0
- package/templates/astro/_npmrc +8 -0
- package/templates/astro/_super.engineering/config.json +8 -0
- package/templates/astro/_zed/tasks.json +5 -0
- package/templates/astro/astro.config.mjs +111 -0
- package/templates/astro/docs/README.md +7 -0
- package/templates/astro/docs/decisions.md +3 -0
- package/templates/astro/docs/inbox.md +7 -0
- package/templates/astro/docs/kit/agent-apps.md +15 -0
- package/templates/astro/docs/kit/analytics.md +13 -0
- package/templates/astro/docs/kit/deploy.md +9 -0
- package/templates/astro/docs/kit/images.md +10 -0
- package/templates/astro/docs/kit/languages.md +8 -0
- package/templates/astro/docs/kit/local.md +16 -0
- package/templates/astro/docs/kit/seo.md +15 -0
- package/templates/astro/docs/kit/structure.md +40 -0
- package/templates/astro/docs/kit/upgrade.md +19 -0
- package/templates/astro/functions/_middleware.js +25 -0
- package/templates/astro/intent.md +40 -0
- package/templates/astro/package.json +46 -0
- package/templates/astro/public/_headers +17 -0
- package/templates/astro/public/_routes.json +5 -0
- package/templates/astro/public/apple-touch-icon.png +0 -0
- package/templates/astro/public/favicon-16.png +0 -0
- package/templates/astro/public/favicon-32.png +0 -0
- package/templates/astro/public/favicon.ico +0 -0
- package/templates/astro/public/favicon.svg +4 -0
- package/templates/astro/public/icon-192.png +0 -0
- package/templates/astro/public/icon-512.png +0 -0
- package/templates/astro/public/og-image.png +0 -0
- package/templates/astro/scripts/chrome.mjs +138 -0
- package/templates/astro/scripts/deploy.sh +69 -0
- package/templates/astro/scripts/generate-icons.mjs +73 -0
- package/templates/astro/scripts/generate-og.mjs +66 -0
- package/templates/astro/scripts/lint-copy.mjs +67 -0
- package/templates/astro/scripts/local-domain.mjs +115 -0
- package/templates/astro/scripts/markdown-pages.mjs +142 -0
- package/templates/astro/scripts/og-template.html +73 -0
- package/templates/astro/scripts/shared.mjs +33 -0
- package/templates/astro/scripts/verify-build.mjs +283 -0
- package/templates/astro/scripts/verify.mjs +19 -0
- package/templates/astro/site.config.mjs +85 -0
- package/templates/astro/src/components/Analytics.astro +49 -0
- package/templates/astro/src/components/Consent.astro +52 -0
- package/templates/astro/src/components/Counter.tsx +20 -0
- package/templates/astro/src/data/README.md +18 -0
- package/templates/astro/src/dev/styleguide.astro +43 -0
- package/templates/astro/src/env.d.ts +1 -0
- package/templates/astro/src/i18n/ar.json +29 -0
- package/templates/astro/src/i18n/de.json +29 -0
- package/templates/astro/src/i18n/en.json +29 -0
- package/templates/astro/src/i18n/es.json +29 -0
- package/templates/astro/src/i18n/fr.json +29 -0
- package/templates/astro/src/i18n/he.json +29 -0
- package/templates/astro/src/i18n/hi.json +29 -0
- package/templates/astro/src/i18n/index.ts +80 -0
- package/templates/astro/src/i18n/it.json +29 -0
- package/templates/astro/src/i18n/ja.json +29 -0
- package/templates/astro/src/i18n/ko.json +29 -0
- package/templates/astro/src/i18n/nl.json +29 -0
- package/templates/astro/src/i18n/pl.json +29 -0
- package/templates/astro/src/i18n/pt-br.json +29 -0
- package/templates/astro/src/i18n/ro.json +29 -0
- package/templates/astro/src/i18n/ru.json +29 -0
- package/templates/astro/src/i18n/sv.json +29 -0
- package/templates/astro/src/i18n/tr.json +29 -0
- package/templates/astro/src/i18n/uk.json +29 -0
- package/templates/astro/src/i18n/zh-cn.json +29 -0
- package/templates/astro/src/layouts/BaseLayout.astro +205 -0
- package/templates/astro/src/lib/cn.ts +7 -0
- package/templates/astro/src/lib/consent.ts +32 -0
- package/templates/astro/src/lib/seo.ts +18 -0
- package/templates/astro/src/lib/theme.ts +5 -0
- package/templates/astro/src/pages/404.astro +7 -0
- package/templates/astro/src/pages/[...locale]/404.astro +25 -0
- package/templates/astro/src/pages/[...locale]/about.astro +25 -0
- package/templates/astro/src/pages/[...locale]/index.astro +30 -0
- package/templates/astro/src/pages/[...locale]/privacy.astro +28 -0
- package/templates/astro/src/pages/robots.txt.ts +16 -0
- package/templates/astro/src/pages/site.webmanifest.ts +26 -0
- package/templates/astro/src/styles/global.css +163 -0
- package/templates/astro/t3.json +22 -0
- package/templates/astro/tsconfig.json +13 -0
- package/templates/astro/wrangler.toml +8 -0
- package/templates/react/.editorconfig +15 -0
- package/templates/react/.env.example +2 -0
- package/templates/react/.nvmrc +1 -0
- package/templates/react/.prettierignore +11 -0
- package/templates/react/.prettierrc.json +5 -0
- package/templates/react/.vscode/extensions.json +3 -0
- package/templates/react/.vscode/settings.json +4 -0
- package/templates/react/AGENTS.md +64 -0
- package/templates/react/README.md +31 -0
- package/templates/react/_CLAUDE.md +1 -0
- package/templates/react/_claude/launch.json +13 -0
- package/templates/react/_claude/settings.json +21 -0
- package/templates/react/_codex/environments/environment.toml +20 -0
- package/templates/react/_gitignore +17 -0
- package/templates/react/_npmrc +8 -0
- package/templates/react/_super.engineering/config.json +8 -0
- package/templates/react/_zed/tasks.json +5 -0
- package/templates/react/docs/decisions.md +3 -0
- package/templates/react/docs/inbox.md +7 -0
- package/templates/react/index.html +14 -0
- package/templates/react/package.json +47 -0
- package/templates/react/public/favicon.svg +5 -0
- package/templates/react/scripts/lint-copy.mjs +46 -0
- package/templates/react/scripts/lint-tokens.mjs +44 -0
- package/templates/react/scripts/local-domain.mjs +115 -0
- package/templates/react/scripts/verify.mjs +20 -0
- package/templates/react/site.config.mjs +23 -0
- package/templates/react/src/App.test.tsx +15 -0
- package/templates/react/src/App.tsx +21 -0
- package/templates/react/src/components/ErrorBoundary.tsx +42 -0
- package/templates/react/src/components/SkipLink.tsx +10 -0
- package/templates/react/src/config/site.ts +5 -0
- package/templates/react/src/lib/cn.ts +7 -0
- package/templates/react/src/main.tsx +13 -0
- package/templates/react/src/pages/HomePage.tsx +71 -0
- package/templates/react/src/pages/NotFoundPage.tsx +21 -0
- package/templates/react/src/styles/global.css +96 -0
- package/templates/react/src/test-setup.ts +1 -0
- package/templates/react/t3.json +22 -0
- package/templates/{base → react}/tsconfig.json +3 -3
- package/templates/react/vite.config.ts +26 -0
- package/templates/shared/_claude/hooks/design-lint.mjs +67 -0
- package/templates/shared/_claude/skills/design-quality/SKILL.md +113 -0
- package/templates/shared/_claude/skills/design-quality/references/composition-palette.md +87 -0
- package/templates/shared/_claude/skills/design-quality/references/copy-tells.md +49 -0
- package/templates/shared/_claude/skills/design-quality/references/visual-critic.md +75 -0
- package/templates/shared/design.md +148 -0
- package/templates/shared/intent.md +28 -0
- package/dist/constants.d.ts +0 -71
- package/dist/constants.js +0 -128
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -229
- package/dist/prompts.d.ts +0 -16
- package/dist/prompts.js +0 -434
- package/dist/scaffold.d.ts +0 -19
- package/dist/scaffold.js +0 -303
- package/dist/ui.d.ts +0 -27
- package/dist/ui.js +0 -254
- package/templates/app/App.tsx +0 -21
- package/templates/base/CLAUDE.md +0 -332
- package/templates/base/eslint.config.js +0 -28
- package/templates/base/index.html +0 -17
- package/templates/base/package.json +0 -43
- package/templates/base/postcss.config.js +0 -6
- package/templates/base/tailwind.config.js +0 -81
- package/templates/base/vite.config.ts +0 -16
- package/templates/commands/brainstorm.md +0 -6
- package/templates/commands/build.md +0 -41
- package/templates/commands/execute-plan.md +0 -6
- package/templates/commands/lint.md +0 -41
- package/templates/commands/ralph.md +0 -113
- package/templates/commands/typecheck.md +0 -44
- package/templates/commands/write-plan.md +0 -6
- package/templates/components/ErrorBoundary.tsx +0 -49
- package/templates/components/ui/Button.tsx +0 -60
- package/templates/components/ui/CodeBlock.tsx +0 -46
- package/templates/components/ui/CopyCommand.tsx +0 -38
- package/templates/components/ui/FilePreview.tsx +0 -46
- package/templates/components/ui/SkipLink.tsx +0 -7
- package/templates/components/ui/ThemeSelector.tsx +0 -41
- package/templates/components/ui/UICarousel.tsx +0 -309
- package/templates/context/ThemeContext.tsx +0 -61
- package/templates/homepage/HomePage.tsx +0 -534
- package/templates/homepage/NotFoundPage.tsx +0 -17
- package/templates/hooks/README.md +0 -82
- package/templates/hooks/check-branch.js +0 -27
- package/templates/hooks/typecheck-after-edit.js +0 -51
- package/templates/index.css +0 -67
- package/templates/lib/utils.ts +0 -9
- package/templates/main.tsx +0 -16
- package/templates/settings/MCP_SETUP.md +0 -76
- package/templates/settings/settings.json +0 -16
- package/templates/settings/settings.local.json +0 -37
- package/templates/skills/design/a11y-audit/SKILL.md +0 -173
- package/templates/skills/design/design-polish/SKILL.md +0 -75
- package/templates/skills/design/figma-to-code/SKILL.md +0 -157
- package/templates/skills/design/json-ld/SKILL.md +0 -125
- package/templates/skills/design/microcopy/SKILL.md +0 -197
- package/templates/skills/design/og-image/SKILL.md +0 -157
- package/templates/skills/design/ralph-wiggum-loops/SKILL.md +0 -299
- package/templates/skills/design/react-best-practices/SKILL.md +0 -106
- package/templates/skills/design/react-best-practices/references/react-performance-guidelines.md +0 -143
- package/templates/skills/design/seo-review/SKILL.md +0 -96
- package/templates/skills/design/sitemap-generator/SKILL.md +0 -66
- package/templates/skills/design/testing-patterns/SKILL.md +0 -276
- package/templates/skills/design/ui-skills/SKILL.md +0 -85
- package/templates/skills/design/visual-iteration/SKILL.md +0 -88
- package/templates/skills/workflow/brainstorming/SKILL.md +0 -54
- package/templates/skills/workflow/dispatching-parallel-agents/SKILL.md +0 -180
- package/templates/skills/workflow/executing-plans/SKILL.md +0 -76
- package/templates/skills/workflow/finishing-a-development-branch/SKILL.md +0 -200
- package/templates/skills/workflow/receiving-code-review/SKILL.md +0 -213
- package/templates/skills/workflow/requesting-code-review/SKILL.md +0 -105
- package/templates/skills/workflow/requesting-code-review/code-reviewer.md +0 -146
- package/templates/skills/workflow/subagent-driven-development/SKILL.md +0 -240
- package/templates/skills/workflow/subagent-driven-development/code-quality-reviewer-prompt.md +0 -20
- package/templates/skills/workflow/subagent-driven-development/implementer-prompt.md +0 -78
- package/templates/skills/workflow/subagent-driven-development/spec-reviewer-prompt.md +0 -61
- package/templates/skills/workflow/systematic-debugging/CREATION-LOG.md +0 -119
- package/templates/skills/workflow/systematic-debugging/SKILL.md +0 -296
- package/templates/skills/workflow/systematic-debugging/condition-based-waiting-example.ts +0 -158
- package/templates/skills/workflow/systematic-debugging/condition-based-waiting.md +0 -115
- package/templates/skills/workflow/systematic-debugging/defense-in-depth.md +0 -122
- package/templates/skills/workflow/systematic-debugging/find-polluter.sh +0 -63
- package/templates/skills/workflow/systematic-debugging/root-cause-tracing.md +0 -169
- package/templates/skills/workflow/systematic-debugging/test-academic.md +0 -14
- package/templates/skills/workflow/systematic-debugging/test-pressure-1.md +0 -58
- package/templates/skills/workflow/systematic-debugging/test-pressure-2.md +0 -68
- package/templates/skills/workflow/systematic-debugging/test-pressure-3.md +0 -69
- package/templates/skills/workflow/test-driven-development/SKILL.md +0 -371
- package/templates/skills/workflow/test-driven-development/testing-anti-patterns.md +0 -299
- package/templates/skills/workflow/using-git-worktrees/SKILL.md +0 -217
- package/templates/skills/workflow/using-superpowers/SKILL.md +0 -87
- package/templates/skills/workflow/verification-before-completion/SKILL.md +0 -139
- package/templates/skills/workflow/writing-plans/SKILL.md +0 -116
- package/templates/skills/workflow/writing-skills/SKILL.md +0 -655
- package/templates/skills/workflow/writing-skills/anthropic-best-practices.md +0 -1150
- package/templates/skills/workflow/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
- package/templates/skills/workflow/writing-skills/graphviz-conventions.dot +0 -172
- package/templates/skills/workflow/writing-skills/persuasion-principles.md +0 -187
- package/templates/skills/workflow/writing-skills/render-graphs.js +0 -168
- package/templates/skills/workflow/writing-skills/testing-skills-with-subagents.md +0 -384
- package/templates/types/index.ts +0 -17
- /package/templates/{vite-env.d.ts → react/src/vite-env.d.ts} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Español",
|
|
4
|
+
"english": "Spanish",
|
|
5
|
+
"hreflang": "es",
|
|
6
|
+
"ogLocale": "es_ES",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Saltar al contenido",
|
|
13
|
+
"language": "Idioma",
|
|
14
|
+
"about": "Acerca de",
|
|
15
|
+
"aboutTitle": "Acerca de {site}",
|
|
16
|
+
"aboutDescription": "Qué es {site} y para quién es.",
|
|
17
|
+
"notFoundTitle": "Página no encontrada",
|
|
18
|
+
"notFoundBody": "Esta página no existe. El resto del sitio sigue aquí.",
|
|
19
|
+
"backHome": "Volver a {site}",
|
|
20
|
+
"ogAlt": "Imagen para compartir de {site}",
|
|
21
|
+
"consentBody": "Las cookies de analítica distinguen a quien vuelve de quien llega por primera vez. ¿Las permites?",
|
|
22
|
+
"consentYes": "Permitir",
|
|
23
|
+
"consentNo": "Rechazar",
|
|
24
|
+
"consentOpen": "Ajustes de cookies",
|
|
25
|
+
"privacy": "Privacidad",
|
|
26
|
+
"privacyDescription": "Qué registra {site} sobre una visita y a quién preguntar por ello.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Français",
|
|
4
|
+
"english": "French",
|
|
5
|
+
"hreflang": "fr",
|
|
6
|
+
"ogLocale": "fr_FR",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Aller au contenu",
|
|
13
|
+
"language": "Langue",
|
|
14
|
+
"about": "À propos",
|
|
15
|
+
"aboutTitle": "À propos de {site}",
|
|
16
|
+
"aboutDescription": "Ce qu’est {site} et à qui il s’adresse.",
|
|
17
|
+
"notFoundTitle": "Page introuvable",
|
|
18
|
+
"notFoundBody": "Cette page n’existe pas. Le reste du site est toujours là.",
|
|
19
|
+
"backHome": "Retour à {site}",
|
|
20
|
+
"ogAlt": "Image de partage de {site}",
|
|
21
|
+
"consentBody": "Les cookies d’analyse distinguent un visiteur qui revient d’un nouveau. Les autoriser ?",
|
|
22
|
+
"consentYes": "Autoriser",
|
|
23
|
+
"consentNo": "Refuser",
|
|
24
|
+
"consentOpen": "Réglages des cookies",
|
|
25
|
+
"privacy": "Confidentialité",
|
|
26
|
+
"privacyDescription": "Ce que {site} enregistre d’une visite, et à qui s’adresser à ce sujet.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "עברית",
|
|
4
|
+
"english": "Hebrew",
|
|
5
|
+
"hreflang": "he",
|
|
6
|
+
"ogLocale": "he_IL",
|
|
7
|
+
"dir": "rtl",
|
|
8
|
+
"font": "system"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "דילוג לתוכן",
|
|
13
|
+
"language": "שפה",
|
|
14
|
+
"about": "אודות",
|
|
15
|
+
"aboutTitle": "אודות {site}",
|
|
16
|
+
"aboutDescription": "מה זה {site} ולמי הוא מיועד.",
|
|
17
|
+
"notFoundTitle": "הדף לא נמצא",
|
|
18
|
+
"notFoundBody": "הדף הזה לא קיים. שאר האתר עדיין כאן.",
|
|
19
|
+
"backHome": "חזרה אל {site}",
|
|
20
|
+
"ogAlt": "תמונת שיתוף של {site}",
|
|
21
|
+
"consentBody": "קובצי Cookie לניתוח מבחינים בין מבקר חוזר למבקר חדש. לאשר אותם?",
|
|
22
|
+
"consentYes": "אישור",
|
|
23
|
+
"consentNo": "דחייה",
|
|
24
|
+
"consentOpen": "הגדרות Cookie",
|
|
25
|
+
"privacy": "פרטיות",
|
|
26
|
+
"privacyDescription": "מה {site} רושם על ביקור, ולמי פונים בשאלות.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "हिन्दी",
|
|
4
|
+
"english": "Hindi",
|
|
5
|
+
"hreflang": "hi",
|
|
6
|
+
"ogLocale": "hi_IN",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "system"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "मुख्य सामग्री पर जाएँ",
|
|
13
|
+
"language": "भाषा",
|
|
14
|
+
"about": "परिचय",
|
|
15
|
+
"aboutTitle": "{site} के बारे में",
|
|
16
|
+
"aboutDescription": "{site} क्या है और किसके लिए है।",
|
|
17
|
+
"notFoundTitle": "पेज नहीं मिला",
|
|
18
|
+
"notFoundBody": "यह पेज मौजूद नहीं है। बाकी साइट अब भी यहीं है।",
|
|
19
|
+
"backHome": "{site} पर वापस जाएँ",
|
|
20
|
+
"ogAlt": "{site} का शेयर कार्ड",
|
|
21
|
+
"consentBody": "एनालिटिक्स कुकीज़ लौटने वाले विज़िटर को नए से अलग पहचानती हैं। अनुमति दें?",
|
|
22
|
+
"consentYes": "अनुमति दें",
|
|
23
|
+
"consentNo": "अस्वीकार करें",
|
|
24
|
+
"consentOpen": "कुकी सेटिंग",
|
|
25
|
+
"privacy": "गोपनीयता",
|
|
26
|
+
"privacyDescription": "{site} किसी विज़िट के बारे में क्या दर्ज करता है, और इस बारे में किससे पूछें।",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { getRelativeLocaleUrl } from 'astro:i18n';
|
|
2
|
+
import { defaultLocale, locales, siteName, siteUrl } from '../../site.config.mjs';
|
|
3
|
+
|
|
4
|
+
export { defaultLocale, locales };
|
|
5
|
+
|
|
6
|
+
type Catalog = {
|
|
7
|
+
meta: {
|
|
8
|
+
name: string;
|
|
9
|
+
english: string;
|
|
10
|
+
hreflang: string;
|
|
11
|
+
ogLocale: string;
|
|
12
|
+
dir: 'ltr' | 'rtl';
|
|
13
|
+
/** 'system' for scripts the site's font lacks (Arabic, Hebrew, Devanagari, CJK). */
|
|
14
|
+
font: 'mono' | 'system';
|
|
15
|
+
};
|
|
16
|
+
description: string;
|
|
17
|
+
ui: Record<string, string>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const catalogs = new Map(
|
|
21
|
+
Object.entries(import.meta.glob<Catalog>('./*.json', { eager: true, import: 'default' })).map(
|
|
22
|
+
([file, catalog]) => [file.slice('./'.length, -'.json'.length), catalog],
|
|
23
|
+
),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
function catalog(locale: string) {
|
|
27
|
+
const found = catalogs.get(locale);
|
|
28
|
+
if (!found) throw new Error(`Missing src/i18n/${locale}.json for a locale in site.config.mjs.`);
|
|
29
|
+
return found;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const uiKeys = (locale: string) => Object.keys(catalog(locale).ui).sort().join(', ');
|
|
33
|
+
for (const locale of locales) {
|
|
34
|
+
if (uiKeys(locale) !== uiKeys(defaultLocale)) {
|
|
35
|
+
throw new Error(`src/i18n/${locale}.json must have the same ui keys as ${defaultLocale}.json.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Native name, hreflang, Open Graph locale, text direction and font. */
|
|
40
|
+
export const meta = (locale: string) => catalog(locale).meta;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The site name for text in a locale. Right-to-left locales get Unicode isolates (U+2068…U+2069)
|
|
44
|
+
* so a Latin name keeps its punctuation in place, including in <title> and meta where markup like
|
|
45
|
+
* <bdi> cannot go.
|
|
46
|
+
*/
|
|
47
|
+
export const siteNameFor = (locale: string) =>
|
|
48
|
+
meta(locale).dir === 'rtl' ? `\u2068${siteName}\u2069` : siteName;
|
|
49
|
+
|
|
50
|
+
/** The locale's description and ui strings, with {site} filled in by siteNameFor(locale). */
|
|
51
|
+
export function copy(locale: string): Record<string, string> {
|
|
52
|
+
const { description, ui } = catalog(locale);
|
|
53
|
+
const site = siteNameFor(locale);
|
|
54
|
+
const strings = Object.entries(ui).map(([key, text]) => [key, text.replaceAll('{site}', () => site)]);
|
|
55
|
+
return { description, ...Object.fromEntries(strings) };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** A page's path in a locale: ('de', '/about/') → '/de/about/'. The default locale has no prefix. */
|
|
59
|
+
export const localePath = (locale: string, path = '/') =>
|
|
60
|
+
getRelativeLocaleUrl(locale, path.replace(/^\//, ''));
|
|
61
|
+
|
|
62
|
+
/** A path without its locale prefix: '/de/about/' → '/about/'. */
|
|
63
|
+
export function pagePath(pathname: string) {
|
|
64
|
+
const [, first = '', ...rest] = pathname.split('/');
|
|
65
|
+
return first !== defaultLocale && locales.includes(first) ? `/${rest.join('/')}` : pathname;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** The same page in every locale, default first, with its relative path and absolute URL. */
|
|
69
|
+
export const versions = (path: string) =>
|
|
70
|
+
locales.map((locale) => {
|
|
71
|
+
const localized = localePath(locale, path);
|
|
72
|
+
return { locale, ...meta(locale), path: localized, url: new URL(localized, siteUrl).href };
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/** getStaticPaths for pages in src/pages/[...locale]/. The default locale renders at the root. */
|
|
76
|
+
export const localeStaticPaths = () =>
|
|
77
|
+
locales.map((locale) => ({
|
|
78
|
+
params: { locale: locale === defaultLocale ? undefined : locale },
|
|
79
|
+
props: { locale },
|
|
80
|
+
}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Italiano",
|
|
4
|
+
"english": "Italian",
|
|
5
|
+
"hreflang": "it",
|
|
6
|
+
"ogLocale": "it_IT",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Vai al contenuto",
|
|
13
|
+
"language": "Lingua",
|
|
14
|
+
"about": "Informazioni",
|
|
15
|
+
"aboutTitle": "Informazioni su {site}",
|
|
16
|
+
"aboutDescription": "Cos’è {site} e a chi si rivolge.",
|
|
17
|
+
"notFoundTitle": "Pagina non trovata",
|
|
18
|
+
"notFoundBody": "Questa pagina non esiste. Il resto del sito è ancora qui.",
|
|
19
|
+
"backHome": "Torna a {site}",
|
|
20
|
+
"ogAlt": "Immagine di anteprima di {site}",
|
|
21
|
+
"consentBody": "I cookie di analisi distinguono chi torna da chi arriva per la prima volta. Li consenti?",
|
|
22
|
+
"consentYes": "Consenti",
|
|
23
|
+
"consentNo": "Rifiuta",
|
|
24
|
+
"consentOpen": "Impostazioni dei cookie",
|
|
25
|
+
"privacy": "Privacy e dati",
|
|
26
|
+
"privacyDescription": "Che cosa registra {site} di una visita e a chi chiedere.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "日本語",
|
|
4
|
+
"english": "Japanese",
|
|
5
|
+
"hreflang": "ja",
|
|
6
|
+
"ogLocale": "ja_JP",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "system"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "本文へスキップ",
|
|
13
|
+
"language": "言語",
|
|
14
|
+
"about": "概要",
|
|
15
|
+
"aboutTitle": "{site}について",
|
|
16
|
+
"aboutDescription": "{site}とは何か、誰のためのサイトか。",
|
|
17
|
+
"notFoundTitle": "ページが見つかりません",
|
|
18
|
+
"notFoundBody": "お探しのページは存在しません。ほかのページは引き続きご覧いただけます。",
|
|
19
|
+
"backHome": "{site}に戻る",
|
|
20
|
+
"ogAlt": "{site}のシェア画像",
|
|
21
|
+
"consentBody": "分析用Cookieは、再訪問と初回訪問を見分けます。許可しますか?",
|
|
22
|
+
"consentYes": "許可する",
|
|
23
|
+
"consentNo": "拒否する",
|
|
24
|
+
"consentOpen": "Cookie設定",
|
|
25
|
+
"privacy": "プライバシー",
|
|
26
|
+
"privacyDescription": "{site}が訪問について記録する内容と、問い合わせ先。",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "한국어",
|
|
4
|
+
"english": "Korean",
|
|
5
|
+
"hreflang": "ko",
|
|
6
|
+
"ogLocale": "ko_KR",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "system"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "본문으로 건너뛰기",
|
|
13
|
+
"language": "언어",
|
|
14
|
+
"about": "소개",
|
|
15
|
+
"aboutTitle": "{site} 소개",
|
|
16
|
+
"aboutDescription": "{site}: 어떤 곳이고 누구를 위한 곳인지.",
|
|
17
|
+
"notFoundTitle": "페이지를 찾을 수 없습니다",
|
|
18
|
+
"notFoundBody": "이 페이지는 존재하지 않습니다. 사이트의 나머지 페이지는 그대로 있습니다.",
|
|
19
|
+
"backHome": "{site} 홈으로 돌아가기",
|
|
20
|
+
"ogAlt": "{site} 공유 이미지",
|
|
21
|
+
"consentBody": "분석 쿠키는 다시 온 방문자와 새 방문자를 구분합니다. 허용할까요?",
|
|
22
|
+
"consentYes": "허용",
|
|
23
|
+
"consentNo": "거부",
|
|
24
|
+
"consentOpen": "쿠키 설정",
|
|
25
|
+
"privacy": "개인정보",
|
|
26
|
+
"privacyDescription": "{site}가 방문에 대해 기록하는 내용과 문의할 곳.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Nederlands",
|
|
4
|
+
"english": "Dutch",
|
|
5
|
+
"hreflang": "nl",
|
|
6
|
+
"ogLocale": "nl_NL",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Direct naar de inhoud",
|
|
13
|
+
"language": "Taal",
|
|
14
|
+
"about": "Over",
|
|
15
|
+
"aboutTitle": "Over {site}",
|
|
16
|
+
"aboutDescription": "Wat {site} is en voor wie.",
|
|
17
|
+
"notFoundTitle": "Pagina niet gevonden",
|
|
18
|
+
"notFoundBody": "Deze pagina bestaat niet. De rest van de site is er gewoon nog.",
|
|
19
|
+
"backHome": "Terug naar {site}",
|
|
20
|
+
"ogAlt": "Deelafbeelding van {site}",
|
|
21
|
+
"consentBody": "Analytische cookies onderscheiden een terugkerende bezoeker van een nieuwe. Toestaan?",
|
|
22
|
+
"consentYes": "Toestaan",
|
|
23
|
+
"consentNo": "Weigeren",
|
|
24
|
+
"consentOpen": "Cookie-instellingen",
|
|
25
|
+
"privacy": "Privacybeleid",
|
|
26
|
+
"privacyDescription": "Wat {site} over een bezoek vastlegt, en bij wie je daarover terechtkunt.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Polski",
|
|
4
|
+
"english": "Polish",
|
|
5
|
+
"hreflang": "pl",
|
|
6
|
+
"ogLocale": "pl_PL",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Przejdź do treści",
|
|
13
|
+
"language": "Język",
|
|
14
|
+
"about": "O stronie",
|
|
15
|
+
"aboutTitle": "O stronie {site}",
|
|
16
|
+
"aboutDescription": "Czym jest {site} i dla kogo.",
|
|
17
|
+
"notFoundTitle": "Nie znaleziono strony",
|
|
18
|
+
"notFoundBody": "Ta strona nie istnieje. Reszta serwisu wciąż tu jest.",
|
|
19
|
+
"backHome": "Wróć do {site}",
|
|
20
|
+
"ogAlt": "Grafika podglądu: {site}",
|
|
21
|
+
"consentBody": "Analityczne pliki cookie odróżniają powracających odwiedzających od nowych. Zezwolić?",
|
|
22
|
+
"consentYes": "Zezwól",
|
|
23
|
+
"consentNo": "Odrzuć",
|
|
24
|
+
"consentOpen": "Ustawienia cookie",
|
|
25
|
+
"privacy": "Prywatność",
|
|
26
|
+
"privacyDescription": "Co {site} zapisuje o wizycie i kogo o to zapytać.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Português (Brasil)",
|
|
4
|
+
"english": "Portuguese (Brazil)",
|
|
5
|
+
"hreflang": "pt-BR",
|
|
6
|
+
"ogLocale": "pt_BR",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Pular para o conteúdo",
|
|
13
|
+
"language": "Idioma",
|
|
14
|
+
"about": "Sobre",
|
|
15
|
+
"aboutTitle": "Sobre {site}",
|
|
16
|
+
"aboutDescription": "O que é {site} e para quem é.",
|
|
17
|
+
"notFoundTitle": "Página não encontrada",
|
|
18
|
+
"notFoundBody": "Esta página não existe. O restante do site continua aqui.",
|
|
19
|
+
"backHome": "Voltar para {site}",
|
|
20
|
+
"ogAlt": "Imagem de compartilhamento de {site}",
|
|
21
|
+
"consentBody": "Os cookies de análise distinguem quem volta de quem chega pela primeira vez. Permitir?",
|
|
22
|
+
"consentYes": "Permitir",
|
|
23
|
+
"consentNo": "Recusar",
|
|
24
|
+
"consentOpen": "Configurações de cookies",
|
|
25
|
+
"privacy": "Privacidade",
|
|
26
|
+
"privacyDescription": "O que {site} registra sobre uma visita e a quem perguntar.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Română",
|
|
4
|
+
"english": "Romanian",
|
|
5
|
+
"hreflang": "ro",
|
|
6
|
+
"ogLocale": "ro_RO",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Sari la conținut",
|
|
13
|
+
"language": "Limbă",
|
|
14
|
+
"about": "Despre",
|
|
15
|
+
"aboutTitle": "Despre {site}",
|
|
16
|
+
"aboutDescription": "Ce este {site} și cui i se adresează.",
|
|
17
|
+
"notFoundTitle": "Pagina nu a fost găsită",
|
|
18
|
+
"notFoundBody": "Această pagină nu există. Restul site-ului e tot aici.",
|
|
19
|
+
"backHome": "Înapoi la {site}",
|
|
20
|
+
"ogAlt": "Imagine de previzualizare pentru {site}",
|
|
21
|
+
"consentBody": "Cookie-urile de analiză deosebesc un vizitator care revine de unul nou. Le permiți?",
|
|
22
|
+
"consentYes": "Permit",
|
|
23
|
+
"consentNo": "Refuz",
|
|
24
|
+
"consentOpen": "Setări cookie-uri",
|
|
25
|
+
"privacy": "Confidențialitate",
|
|
26
|
+
"privacyDescription": "Ce înregistrează {site} despre o vizită și pe cine întrebi.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Русский",
|
|
4
|
+
"english": "Russian",
|
|
5
|
+
"hreflang": "ru",
|
|
6
|
+
"ogLocale": "ru_RU",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Перейти к содержимому",
|
|
13
|
+
"language": "Язык",
|
|
14
|
+
"about": "О сайте",
|
|
15
|
+
"aboutTitle": "О сайте {site}",
|
|
16
|
+
"aboutDescription": "Что такое {site} и для кого он.",
|
|
17
|
+
"notFoundTitle": "Страница не найдена",
|
|
18
|
+
"notFoundBody": "Такой страницы нет. Остальной сайт на месте.",
|
|
19
|
+
"backHome": "Вернуться на {site}",
|
|
20
|
+
"ogAlt": "Изображение для соцсетей: {site}",
|
|
21
|
+
"consentBody": "Аналитические cookie отличают вернувшегося посетителя от нового. Разрешить?",
|
|
22
|
+
"consentYes": "Разрешить",
|
|
23
|
+
"consentNo": "Отклонить",
|
|
24
|
+
"consentOpen": "Настройки cookie",
|
|
25
|
+
"privacy": "Конфиденциальность",
|
|
26
|
+
"privacyDescription": "Что {site} записывает о посещении и к кому обратиться с вопросом.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Svenska",
|
|
4
|
+
"english": "Swedish",
|
|
5
|
+
"hreflang": "sv",
|
|
6
|
+
"ogLocale": "sv_SE",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Hoppa till innehållet",
|
|
13
|
+
"language": "Språk",
|
|
14
|
+
"about": "Om",
|
|
15
|
+
"aboutTitle": "Om {site}",
|
|
16
|
+
"aboutDescription": "Vad {site} är och vem den är till för.",
|
|
17
|
+
"notFoundTitle": "Sidan hittades inte",
|
|
18
|
+
"notFoundBody": "Den här sidan finns inte. Resten av webbplatsen finns kvar.",
|
|
19
|
+
"backHome": "Tillbaka till {site}",
|
|
20
|
+
"ogAlt": "Delningsbild för {site}",
|
|
21
|
+
"consentBody": "Analyskakor skiljer en återkommande besökare från en ny. Tillåta dem?",
|
|
22
|
+
"consentYes": "Tillåt",
|
|
23
|
+
"consentNo": "Neka",
|
|
24
|
+
"consentOpen": "Kakinställningar",
|
|
25
|
+
"privacy": "Integritet",
|
|
26
|
+
"privacyDescription": "Vad {site} sparar om ett besök, och vem du kan fråga.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Türkçe",
|
|
4
|
+
"english": "Turkish",
|
|
5
|
+
"hreflang": "tr",
|
|
6
|
+
"ogLocale": "tr_TR",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "İçeriğe geç",
|
|
13
|
+
"language": "Dil",
|
|
14
|
+
"about": "Hakkında",
|
|
15
|
+
"aboutTitle": "{site} hakkında",
|
|
16
|
+
"aboutDescription": "{site} nedir ve kimin içindir.",
|
|
17
|
+
"notFoundTitle": "Sayfa bulunamadı",
|
|
18
|
+
"notFoundBody": "Bu sayfa mevcut değil. Sitenin geri kalanı hâlâ burada.",
|
|
19
|
+
"backHome": "{site} ana sayfasına dön",
|
|
20
|
+
"ogAlt": "{site} paylaşım görseli",
|
|
21
|
+
"consentBody": "Analiz çerezleri, geri gelen ziyaretçiyi yenisinden ayırır. İzin veriyor musunuz?",
|
|
22
|
+
"consentYes": "İzin ver",
|
|
23
|
+
"consentNo": "Reddet",
|
|
24
|
+
"consentOpen": "Çerez ayarları",
|
|
25
|
+
"privacy": "Gizlilik",
|
|
26
|
+
"privacyDescription": "{site} bir ziyaret hakkında neyi kaydeder ve bunu kime sorabilirsiniz.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "Українська",
|
|
4
|
+
"english": "Ukrainian",
|
|
5
|
+
"hreflang": "uk",
|
|
6
|
+
"ogLocale": "uk_UA",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "mono"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "Перейти до вмісту",
|
|
13
|
+
"language": "Мова",
|
|
14
|
+
"about": "Про сайт",
|
|
15
|
+
"aboutTitle": "Про сайт {site}",
|
|
16
|
+
"aboutDescription": "Що таке {site} і для кого він.",
|
|
17
|
+
"notFoundTitle": "Сторінку не знайдено",
|
|
18
|
+
"notFoundBody": "Такої сторінки не існує. Решта сайту на місці.",
|
|
19
|
+
"backHome": "Повернутися на {site}",
|
|
20
|
+
"ogAlt": "Зображення для соцмереж: {site}",
|
|
21
|
+
"consentBody": "Аналітичні cookie відрізняють відвідувача, який повернувся, від нового. Дозволити?",
|
|
22
|
+
"consentYes": "Дозволити",
|
|
23
|
+
"consentNo": "Відхилити",
|
|
24
|
+
"consentOpen": "Налаштування cookie",
|
|
25
|
+
"privacy": "Конфіденційність",
|
|
26
|
+
"privacyDescription": "Що {site} записує про відвідування і до кого звернутися із запитанням.",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"name": "简体中文",
|
|
4
|
+
"english": "Chinese (Simplified)",
|
|
5
|
+
"hreflang": "zh-CN",
|
|
6
|
+
"ogLocale": "zh_CN",
|
|
7
|
+
"dir": "ltr",
|
|
8
|
+
"font": "system"
|
|
9
|
+
},
|
|
10
|
+
"description": "{{ONE_SENTENCE}}",
|
|
11
|
+
"ui": {
|
|
12
|
+
"skipToContent": "跳到正文",
|
|
13
|
+
"language": "语言",
|
|
14
|
+
"about": "关于",
|
|
15
|
+
"aboutTitle": "关于{site}",
|
|
16
|
+
"aboutDescription": "介绍{site}是什么、面向哪些人。",
|
|
17
|
+
"notFoundTitle": "找不到页面",
|
|
18
|
+
"notFoundBody": "此页面不存在。网站的其他内容仍可正常访问。",
|
|
19
|
+
"backHome": "返回{site}",
|
|
20
|
+
"ogAlt": "{site}分享图",
|
|
21
|
+
"consentBody": "分析 Cookie 用于区分回访者和新访客。允许吗?",
|
|
22
|
+
"consentYes": "允许",
|
|
23
|
+
"consentNo": "拒绝",
|
|
24
|
+
"consentOpen": "Cookie 设置",
|
|
25
|
+
"privacy": "隐私",
|
|
26
|
+
"privacyDescription": "{site} 记录访问的哪些信息,以及向谁询问。",
|
|
27
|
+
"privacyBody": "Privacy text to write: name who runs {site}, each analytics tool it loads, what each records, and how to reach you."
|
|
28
|
+
}
|
|
29
|
+
}
|