Files
TREK/shared/src/i18n/zh/help.ts
T
Maurice e91f592f22 feat(help): embed the TREK wiki as an in-app help centre
Add a Help section (profile menu, /help) that renders the GitHub wiki inside
TREK. /api/help fetches the wiki markdown — the nav from _Sidebar.md, pages,
and proxied images — from GitHub and caches it (1h TTL, serves stale on
outage), so it auto-syncs on wiki edits with no redeploy and the client never
calls GitHub directly. The page is styled to match TREK with a section
sidebar, search and react-markdown; wiki [[links]] are rewritten to in-app
routes and HTML-comment placeholders are stripped. Page state lives in a
useHelp() hook per the page pattern. Adds nav.help and a help namespace
across all locales.
2026-06-29 18:32:58 +02:00

14 lines
454 B
TypeScript

import type { TranslationStrings } from '../types';
// English fallback until 'zh' is translated.
const help: TranslationStrings = {
'help.title': "Help & Docs",
'help.search': "Search docs…",
'help.contents': "Contents",
'help.noResults': "No matching pages.",
'help.errorTitle': "Couldn't load this page",
'help.errorBody': "The help content is fetched from the TREK wiki. Check your connection and try again.",
};
export default help;