- 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>
160 lines
4.8 KiB
JavaScript
160 lines
4.8 KiB
JavaScript
// === CONTENU DE TEST POUR LA COMPATIBILITÉ ===
|
|
|
|
window.ContentModules = window.ContentModules || {};
|
|
|
|
// Contenu avec seulement 2 mots (devrait être incompatible avec whack-a-mole)
|
|
window.ContentModules.TestMinimalContent = {
|
|
id: "test-minimal-content",
|
|
name: "Test Minimal (2 mots)",
|
|
description: "Contenu minimal pour tester la compatibilité",
|
|
difficulty: "easy",
|
|
language: "en-US",
|
|
|
|
vocabulary: {
|
|
"hello": "bonjour",
|
|
"world": "monde"
|
|
}
|
|
};
|
|
|
|
// Contenu riche (devrait être compatible avec tous les jeux)
|
|
window.ContentModules.TestRichContent = {
|
|
id: "test-rich-content",
|
|
name: "Test Riche (complet)",
|
|
description: "Contenu riche pour tester la compatibilité maximale",
|
|
difficulty: "medium",
|
|
|
|
vocabulary: {
|
|
"apple": {
|
|
translation: "pomme",
|
|
prononciation: "apple",
|
|
type: "noun",
|
|
pronunciation: "audio/apple.mp3"
|
|
},
|
|
"book": {
|
|
translation: "livre",
|
|
prononciation: "book",
|
|
type: "noun"
|
|
},
|
|
"car": {
|
|
translation: "voiture",
|
|
prononciation: "car",
|
|
type: "noun"
|
|
},
|
|
"dog": {
|
|
translation: "chien",
|
|
prononciation: "dog",
|
|
type: "noun"
|
|
},
|
|
"eat": {
|
|
translation: "manger",
|
|
prononciation: "eat",
|
|
type: "verb"
|
|
},
|
|
"friend": {
|
|
translation: "ami",
|
|
prononciation: "friend",
|
|
type: "noun"
|
|
},
|
|
"good": {
|
|
translation: "bon",
|
|
prononciation: "good",
|
|
type: "adjective"
|
|
},
|
|
"house": {
|
|
translation: "maison",
|
|
prononciation: "house",
|
|
type: "noun"
|
|
}
|
|
},
|
|
|
|
sentences: [
|
|
{
|
|
english: "I have a red apple",
|
|
french: "J'ai une pomme rouge",
|
|
prononciation: "ai hav a red apple"
|
|
},
|
|
{
|
|
english: "The dog is in the house",
|
|
french: "Le chien est dans la maison",
|
|
prononciation: "ze dog iz in ze house"
|
|
},
|
|
{
|
|
english: "My friend has a car",
|
|
french: "Mon ami a une voiture",
|
|
prononciation: "mai friend haz a car"
|
|
},
|
|
{
|
|
english: "I like to read books",
|
|
french: "J'aime lire des livres",
|
|
prononciation: "ai laik tu rid books"
|
|
},
|
|
{
|
|
english: "This is a good book",
|
|
french: "C'est un bon livre",
|
|
prononciation: "zis iz a gud book"
|
|
}
|
|
],
|
|
|
|
dialogues: [
|
|
{
|
|
title: "Au restaurant",
|
|
conversation: [
|
|
{ speaker: "Waiter", english: "What would you like to eat?", french: "Que voulez-vous manger ?" },
|
|
{ speaker: "Customer", english: "I would like an apple", french: "Je voudrais une pomme" },
|
|
{ speaker: "Waiter", english: "Good choice!", french: "Bon choix !" }
|
|
]
|
|
}
|
|
],
|
|
|
|
fillInBlanks: [
|
|
{
|
|
sentence: "I have a red _____",
|
|
options: ["apple", "book", "car", "dog"],
|
|
correctAnswer: "apple",
|
|
explanation: "Apple fits the context"
|
|
},
|
|
{
|
|
sentence: "The _____ is good",
|
|
options: ["book", "apple", "house", "friend"],
|
|
correctAnswer: "book",
|
|
explanation: "Books can be described as good"
|
|
}
|
|
],
|
|
|
|
grammar: {
|
|
articles: {
|
|
title: "Articles (a, an, the)",
|
|
explanation: "Use 'a' before consonants, 'an' before vowels",
|
|
examples: [
|
|
{ english: "a book", french: "un livre" },
|
|
{ english: "an apple", french: "une pomme" }
|
|
]
|
|
}
|
|
},
|
|
|
|
audio: {
|
|
withText: [
|
|
{
|
|
title: "Vocabulary pronunciation",
|
|
transcript: "Apple, book, car, dog, eat, friend, good, house",
|
|
translation: "Pomme, livre, voiture, chien, manger, ami, bon, maison"
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
// Contenu avec seulement des phrases (bon pour text-reader, limité pour memory-match)
|
|
window.ContentModules.TestSentenceOnly = {
|
|
id: "test-sentence-only",
|
|
name: "Test Phrases Seulement",
|
|
description: "Contenu avec seulement des phrases pour tester la compatibilité spécialisée",
|
|
difficulty: "medium",
|
|
|
|
sentences: [
|
|
{ english: "The weather is nice today", french: "Le temps est beau aujourd'hui" },
|
|
{ english: "I am going to school", french: "Je vais à l'école" },
|
|
{ english: "She likes to read books", french: "Elle aime lire des livres" },
|
|
{ english: "We are learning English", french: "Nous apprenons l'anglais" },
|
|
{ english: "They play football every day", french: "Ils jouent au football tous les jours" }
|
|
]
|
|
}; |