feat: rebrand to ConvertX-CN, fix TypeScript error, add docs

- Fix TypeScript TS2345 error in i18n/service.ts by parsing cookie from header
- Rebrand all ConvertX references to ConvertX-CN
- Change default language from en to zh-TW
- Fix footer to always display English 'Powered by ConvertX-CN'
- Update GitHub links to pi-docket/ConvertX-CN
- Add /docs folder with documentation:
  - getting-started.md
  - configuration.md
  - converters.md
  - i18n.md
- Update all locale files with new branding
This commit is contained in:
Your Name 2026-01-20 10:29:17 +08:00
parent a6770c0d51
commit 53b83b425f
18 changed files with 315 additions and 41 deletions

View file

@ -73,7 +73,7 @@ export const user = new Elysia()
}
return (
<BaseHtml title="ConvertX | Setup" webroot={WEBROOT} locale={locale}>
<BaseHtml title="ConvertX-CN | Setup" webroot={WEBROOT} locale={locale}>
<main
class={`
mx-auto w-full max-w-4xl flex-1 px-2
@ -117,7 +117,7 @@ export const user = new Elysia()
text-accent-500 underline
hover:text-accent-400
`}
href="https://github.com/C4illin/ConvertX"
href="https://github.com/pi-docket/ConvertX-CN"
>
{t("setup", "github")}
</a>
@ -134,7 +134,7 @@ export const user = new Elysia()
}
return (
<BaseHtml webroot={WEBROOT} title="ConvertX | Register" locale={locale}>
<BaseHtml webroot={WEBROOT} title="ConvertX-CN | Register" locale={locale}>
<>
<Header
webroot={WEBROOT}
@ -258,7 +258,7 @@ export const user = new Elysia()
}
return (
<BaseHtml webroot={WEBROOT} title="ConvertX | Login" locale={locale}>
<BaseHtml webroot={WEBROOT} title="ConvertX-CN | Login" locale={locale}>
<>
<Header
webroot={WEBROOT}
@ -394,7 +394,7 @@ export const user = new Elysia()
}
return (
<BaseHtml webroot={WEBROOT} title="ConvertX | Account" locale={locale}>
<BaseHtml webroot={WEBROOT} title="ConvertX-CN | Account" locale={locale}>
<>
<Header
webroot={WEBROOT}