Appearance
Getting Started
This is a guide for your VitePress documentation.
Running Translation
Debug & Test Setup
First, verify your translation setup is working:
bash
npm run debugThis will check:
- ✅ Node.js environment
- ✅ Dependencies installed
- ✅ Translation API connectivity
- ✅ File structure
- ✅ CSS markdown files
- ✅ Output directories
- ✅ Markdown parsing
- ✅ Package.json scripts
Translate CSS Tutorials
Once debug passes, translate your CSS tutorials:
bash
# Translate to Khmer
npm run translate:css:km
# Translate to Chinese
npm run translate:css:zh
# Translate to Japanese
npm run translate:css:ja
# Or translate to multiple languages at once
npm run translate -- --lang km,zh,jaCheck Translated Files
After translation completes, check the output:
bash
# View translated Khmer files
ls -la docs/km/
# View translated Chinese files
ls -la docs/zh/
# View translated Japanese files
ls -la docs/ja/Troubleshooting
If you encounter errors:
Check dependencies:
bashnpm installRun debug with verbose output:
bashnpm run debug -- --verboseTest single file translation:
bashnpm run translate:css -- --lang km --file docs/css/basics/intro.md --verboseCheck translation log:
bashnpm run translate:css:km 2>&1 | tee translation.log