|
|
--- |
|
|
title: Piper Academy |
|
|
emoji: 🔥 |
|
|
colorFrom: red |
|
|
colorTo: purple |
|
|
sdk: docker |
|
|
pinned: false |
|
|
license: mit |
|
|
--- |
|
|
|
|
|
# How to develop |
|
|
|
|
|
```bash |
|
|
git clone ... |
|
|
npm i |
|
|
npm run start -- --locale ru |
|
|
``` |
|
|
|
|
|
Check folders `docs` and `blog` |
|
|
|
|
|
|
|
|
# How to translate |
|
|
|
|
|
Add `.env` |
|
|
|
|
|
```bash |
|
|
CROWDIN_PERSONAL_TOKEN=xxxYYY |
|
|
``` |
|
|
|
|
|
Generate files for translation |
|
|
|
|
|
```bash |
|
|
npm run write-translations |
|
|
``` |
|
|
|
|
|
Upload files to Crowdin |
|
|
|
|
|
```bash |
|
|
npm upload |
|
|
``` |
|
|
|
|
|
Translate files in Crowdin UI. |
|
|
|
|
|
Download files |
|
|
|
|
|
```bash |
|
|
npm run download |
|
|
``` |
|
|
|
|
|
Test locale |
|
|
|
|
|
```bash |
|
|
npm start -- --locale ru |
|
|
``` |
|
|
|
|
|
Check more details here https://docusaurus.io/docs/3.4.0/i18n/crowdin |
|
|
|
|
|
# Troubleshooting |
|
|
|
|
|
Remove cache |
|
|
|
|
|
```bash |
|
|
rm -rf .docusaurus build |
|
|
``` |