Class_generator/js/content/example-minimal.js
StillHammer 475006e912 Add Word Discovery game with auto-play TTS and Settings system
- New Word Discovery game with image support and practice phases
- Auto-play TTS on word appearance with speed control (0.7x-1.1x)
- Complete Settings page with TTS controls and debug interface
- Language standardization with BCP 47 codes (en-US, zh-CN, fr-FR)
- Media fallback handling for missing images and audio
- Settings Manager with voice selection and debug tools

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 14:39:08 +08:00

59 lines
1.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Example content module with minimal data (no images, some missing pronunciation)
window.ContentModules = window.ContentModules || {};
window.ContentModules.ExampleMinimal = {
name: "Minimal Vocabulary Test",
description: "Test content with missing images and audio",
difficulty: "easy",
language: "en-US",
// Vocabulary with mixed availability of features
vocabulary: {
"hello": {
translation: "bonjour",
pronunciation: "həˈloʊ",
type: "greeting"
// No image
},
"goodbye": {
translation: "au revoir",
type: "greeting"
// No image, no pronunciation
},
"water": {
translation: "eau",
pronunciation: "ˈːtər",
type: "noun"
// No image
},
"food": {
translation: "nourriture",
type: "noun"
// No image, no pronunciation
},
"happy": {
translation: "heureux",
pronunciation: "ˈhæpi",
type: "adjective"
// No image
},
"sad": {
translation: "triste",
type: "adjective"
// No image, no pronunciation
}
},
// Backward compatibility for other games
sentences: [
{
english: "Hello, how are you?",
chinese: "Bonjour, comment allez-vous?",
prononciation: "həˈloʊ haʊ ɑr ju"
},
{
english: "I need some water",
chinese: "J'ai besoin d'eau",
prononciation: "aɪ nid sʌm ˈːtər"
}
]
};