Commit avant changement d'agent vers devstral

This commit is contained in:
2025-11-13 17:00:47 +01:00
parent a09b73e4f1
commit cc1d6880a7
25 changed files with 2903 additions and 89 deletions

65
test-i18n.sh Executable file
View File

@ -0,0 +1,65 @@
#!/bin/bash
# Test script - Check compilation
set -e
echo "🧪 Testing Personotes i18n implementation..."
echo ""
# Check Go files
echo "✓ Checking Go syntax..."
go fmt ./...
echo " Go files formatted"
# Check if locales exist
echo ""
echo "✓ Checking translation files..."
if [ -f "locales/en.json" ]; then
echo " ✓ locales/en.json exists"
else
echo " ✗ locales/en.json missing"
exit 1
fi
if [ -f "locales/fr.json" ]; then
echo " ✓ locales/fr.json exists"
else
echo " ✗ locales/fr.json missing"
exit 1
fi
# Validate JSON files
echo ""
echo "✓ Validating JSON files..."
if command -v jq &> /dev/null; then
jq empty locales/en.json && echo " ✓ en.json is valid JSON"
jq empty locales/fr.json && echo " ✓ fr.json is valid JSON"
else
echo " ⚠ jq not installed, skipping JSON validation"
fi
# Check JavaScript files
echo ""
echo "✓ Checking JavaScript files..."
if [ -f "frontend/src/i18n.js" ]; then
echo " ✓ frontend/src/i18n.js exists"
else
echo " ✗ frontend/src/i18n.js missing"
exit 1
fi
if [ -f "frontend/src/language-manager.js" ]; then
echo " ✓ frontend/src/language-manager.js exists"
else
echo " ✗ frontend/src/language-manager.js missing"
exit 1
fi
echo ""
echo "✅ All checks passed!"
echo ""
echo "Next steps:"
echo "1. cd frontend && npm run build"
echo "2. go run ./cmd/server"
echo "3. Open http://localhost:8080"
echo "4. Click ⚙️ Settings > Autre tab > Select language"