Files
forumlify/package.json
T
lezi-fun 0562dd735a feat: i18n (i18next + react-i18next) zh/en + hydration fixes
- i18next + react-i18next: zh/en locales, language detection
  (localStorage > navigator > zh), settings language switcher
- Components i18n'd: Navbar, Feed, NewPost, Modals, SettingsPage,
  SettingsProfile, AccountSecurity, RecoveryCodes
- Fix hydration mismatch (spinner restart): forum name via cookie
  (Server Component reads cookie, SSR outputs name, no inline script
  DOM injection); remove createPortal in RecoveryCodes modal; i18n
  sync init (initImmediate) so SSR/CSR text matches
- LoadingScreen: React-state name rendering (no script-injected nodes)
- Fix double spinner in Feed; DM icon emoji → SVG in ConversationList
2026-08-11 11:32:15 +08:00

33 lines
1.0 KiB
JSON

{
"name": "forumlify",
"version": "2.0.0",
"description": "Forumlify - 简洁优雅的现代社区系统 (Next.js)",
"private": true,
"scripts": {
"build": "node scripts/build.js",
"dev": "next dev -H 0.0.0.0",
"start": "node scripts/start.js",
"test": "node --test --test-concurrency=1 \"test/*.test.js\"",
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
"upload": "opennextjs-cloudflare build && opennextjs-cloudflare upload",
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts"
},
"dependencies": {
"aws4fetch": "^1.0.20",
"bcryptjs": "^3.0.3",
"i18next": "^26.3.6",
"jsonwebtoken": "^9.0.2",
"marked": "^18.0.9",
"next": "16",
"pg": "^8.11.3",
"react": "19",
"react-dom": "19",
"react-i18next": "^17.0.11"
},
"devDependencies": {
"@opennextjs/cloudflare": "^1.20.2",
"puppeteer-core": "^25.5.0",
"wrangler": "^4.120.0"
}
}