This repository contains the source code for the NYU Shanghai Robotics Club website. It is built with React and TypeScript using Vite for fast development and builds.
- Client-side routing with React Router
- English and Chinese localization powered by
react-i18next - Modular components for header, footer and individual pages
.
├── public/ # static assets copied as-is
├── src/
│ ├── components/ # shared UI components
│ ├── pages/ # page components used by routes
│ ├── i18n/ # locale files and i18n setup
│ └── main.tsx # application entry point
├── index.html # Vite HTML entry
└── package.json # npm scripts and dependencies
- Install dependencies
npm install
- Start a development server with hot-reload
npm run dev
- Create a production build
npm run build
- Preview the production build locally
npm run preview
Locale files live in src/i18n/ and contain English (en.json) and Chinese (zh.json) translations.
Use the t('key') function from react-i18next inside components to render localized text.
This project is intended for the NYU Shanghai Robotics Club and does not yet include a specific license.