PopLab AI: https://poplab.ai
PopLab AI Docs: https://docs.poplab.ai
This is a multilingual documentation website built with Next.js and MDX, supporting Chinese, English, and Japanese.
npm install
# or using pnpm
pnpm installnpm run dev
# or using pnpm
pnpm devnpm run build
# or using pnpm
pnpm buildThe project uses automated internationalization synchronization scripts with the following commands:
npm run gen-i18n
# or using pnpm
pnpm gen-i18nnpm run gen-i18n:watch
# or using pnpm
pnpm gen-i18n:watch- Create and edit source files in the
/src/app/originfolder - Run
npm run gen-i18n:watchto start real-time monitoring - When files are saved, the script automatically syncs to other language directories (
en,zh-CN,ja-JP) - Manually translate content for each language version as needed
.mdx- MDX files.tsx- TypeScript React files.ts- TypeScript files
en→export const locale = 'en'zh-CN→export const locale = 'zh-CN'ja-JP→export const locale = 'ja-JP'
- Framework: Next.js 14
- Styling: Tailwind CSS
- Content: MDX
- Language: TypeScript
- Theming: next-themes
- Search: FlexSearch
- Animation: Framer Motion
src/
├── app/ # Next.js App Router
│ ├── origin/ # Source files directory
│ ├── en/ # English documentation
│ ├── zh-CN/ # Chinese documentation
│ └── ja-JP/ # Japanese documentation
├── components/ # React components
├── lib/ # Utility functions
├── mdx/ # MDX configuration
└── styles/ # Style files