This repository contains the source code for Polang’s website and also serves as a real-world example of how to use the library. Feel free to explore the codebase and see how each Polang component—such as the Provider, Translation Hook, and LocaleSelect—is implemented in practice.
If you want to learn more about the library's API, refer to the Polang repository.
You need Node.js 22.x or later.
- Clone the repository:
git clone https://github.com/compilorama/polang-website.git
cd polang-website- Install dependencies:
npm install- Start the development server:
npm startThe app will be available at http://localhost:5173.
| Command | Description |
|---|---|
npm test |
Run the test suite |
npm run format |
Check and report code formatting issues via ESLint |
npm run build |
Build the app for production into the dist/ folder |