- 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>
59 lines
1.6 KiB
JavaScript
59 lines
1.6 KiB
JavaScript
// 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: "ˈwɔː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 ˈwɔːtər"
|
||
}
|
||
]
|
||
}; |