From f037ee90639c1872a1219f6d01e2c141dc7def7e Mon Sep 17 00:00:00 2001 From: sultanbek_askaruly Date: Fri, 19 Jun 2026 07:27:28 +0000 Subject: [PATCH] add language switcher (EN/RU/KK) with full i18n support --- contact.html | 41 ++--- css/style.css | 33 +++- exercises.html | 45 ++--- grammar.html | 49 ++--- index.html | 101 +++++------ js/lang.js | 434 +++++++++++++++++++++++++++++++++++++++++++++ progress.html | 25 +-- pronunciation.html | 113 ++++++------ reading.html | 25 +-- tests.html | 27 +-- vocabulary.html | 43 ++--- 11 files changed, 705 insertions(+), 231 deletions(-) create mode 100644 js/lang.js diff --git a/contact.html b/contact.html index 78922b6..a2e932f 100644 --- a/contact.html +++ b/contact.html @@ -17,15 +17,15 @@ @@ -33,8 +33,8 @@ @@ -42,29 +42,30 @@
- - + +
- - + +
- - + +
- -
Thank you! Your message has been received.
+ +
Thank you! Your message has been received.
+ diff --git a/css/style.css b/css/style.css index a2928d7..eacc0a0 100644 --- a/css/style.css +++ b/css/style.css @@ -1336,7 +1336,38 @@ footer a:hover { /* ===== MOBILE ===== */ @media (max-width: 768px) { - .menu-toggle { +.lang-switcher { + display: flex; + gap: 2px; + margin-left: 12px; +} + +.lang-btn { + background: none; + border: 1px solid var(--gold-dark); + color: var(--parchment-dark); + font-family: 'Cinzel', serif; + font-size: 11px; + font-weight: 600; + padding: 4px 8px; + cursor: pointer; + transition: all 0.3s; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.lang-btn:hover { + color: var(--gold); + background: rgba(201, 168, 76, 0.1); +} + +.lang-btn.active { + background: var(--gold); + color: var(--night); + border-color: var(--gold); +} + +.menu-toggle { display: block; } diff --git a/exercises.html b/exercises.html index 5a7e024..1902148 100644 --- a/exercises.html +++ b/exercises.html @@ -17,15 +17,15 @@ @@ -33,8 +33,8 @@ @@ -50,7 +50,7 @@ - +
@@ -63,7 +63,7 @@ - +
@@ -76,7 +76,7 @@ - +
@@ -88,7 +88,7 @@
- +
@@ -100,7 +100,7 @@
- +
@@ -112,7 +112,7 @@
- +
@@ -124,7 +124,7 @@
- +
@@ -136,7 +136,7 @@
- +
@@ -149,7 +149,7 @@
School →
Friend →
- +
@@ -162,7 +162,7 @@ - +
@@ -171,10 +171,11 @@ + diff --git a/grammar.html b/grammar.html index 5662712..4a3242b 100644 --- a/grammar.html +++ b/grammar.html @@ -17,15 +17,15 @@ @@ -33,8 +33,8 @@ @@ -42,8 +42,8 @@
-

Present Simple

-

Present Simple is used for habits, routines, and general facts.

+

Present Simple

+

Present Simple is used for habits, routines, and general facts.

Subject + V / V+s (he/she/it)
  • I study English every day.
  • @@ -53,8 +53,8 @@
-

Past Simple

-

Past Simple is used for completed actions in the past.

+

Past Simple

+

Past Simple is used for completed actions in the past.

Subject + V-ed (regular) / V2 (irregular)
  • I visited my grandmother yesterday.
  • @@ -64,8 +64,8 @@
-

Future Simple (will)

-

Future Simple is used for predictions, promises, and spontaneous decisions.

+

Future Simple (will)

+

Future Simple is used for predictions, promises, and spontaneous decisions.

Subject + will + V
  • I will call you tomorrow.
  • @@ -75,8 +75,8 @@
-

Articles: a / an / the

-

Use a before consonant sounds, an before vowel sounds, and the for specific things.

+

Articles: a / an / the

+

Use a before consonant sounds, an before vowel sounds, and the for specific things.

a + consonant sound  |  an + vowel sound  |  the + specific
  • I have a book.
  • @@ -86,8 +86,8 @@
-

Pronouns

-

Pronouns replace nouns. They can be subject or object pronouns.

+

Pronouns

+

Pronouns replace nouns. They can be subject or object pronouns.

I / you / he / she / it / we / they (subject)
  • She is a student.
  • @@ -97,8 +97,8 @@
-

Prepositions

-

Prepositions show relationships of time, place, and direction.

+

Prepositions

+

Prepositions show relationships of time, place, and direction.

in / on / at / under / next to / between
@@ -33,62 +33,62 @@
-
⚡ Welcome to Hogwarts School of English
-

Master the Magic of English

-

Discover vocabulary, grammar, exercises, reading, and tests — your magical journey to speaking English begins now.

+
⚡ Welcome to Hogwarts School of English
+

Master the Magic of English

+

Discover vocabulary, grammar, exercises, reading, and tests — your magical journey to speaking English begins now.

-

Your Magical Subjects

-

Like a wizard at Hogwarts, master every branch of English magic.

+

Your Magical Subjects

+

Like a wizard at Hogwarts, master every branch of English magic.

📖
-

Vocabulary

-

Learn new words with translations and example sentences. Over 20 words to start with!

- Explore Words +

Vocabulary

+

Learn new words with translations and example sentences. Over 20 words to start with!

+ Explore Words
📝
-

Grammar

-

Simple explanations of English grammar with formulas and examples. Present Simple, Past Simple, and more.

- Study Grammar +

Grammar

+

Simple explanations of English grammar with formulas and examples. Present Simple, Past Simple, and more.

+ Study Grammar
💪
-

Exercises

-

Practice what you learn with fun exercises. Choose answers, fill gaps, and translate sentences.

- Practice Now +

Exercises

+

Practice what you learn with fun exercises. Choose answers, fill gaps, and translate sentences.

+ Practice Now
📊
-

Tests

-

Check your knowledge with a full test. 10 questions to test your vocabulary, grammar, and reading.

- Take a Test +

Tests

+

Check your knowledge with a full test. 10 questions to test your vocabulary, grammar, and reading.

+ Take a Test
📚
-

Reading

-

Read short and simple texts in English. Each text has questions to check your understanding.

- Start Reading +

Reading

+

Read short and simple texts in English. Each text has questions to check your understanding.

+ Start Reading
🗣️
-

Pronunciation

-

Listen to words and phrases spoken aloud. Practice your pronunciation and improve your speaking skills.

- Start Speaking +

Pronunciation

+

Listen to words and phrases spoken aloud. Practice your pronunciation and improve your speaking skills.

+ Start Speaking
📊
-

My Progress

-

Track your XP, level, and completed activities. Watch yourself improve from Beginner to Advanced!

- View Progress +

My Progress

+

Track your XP, level, and completed activities. Watch yourself improve from Beginner to Advanced!

+ View Progress
@@ -97,36 +97,36 @@
-

✨ The Chamber of Progress Awaits

-

Every great wizard started with their first spell. Begin your English magic today!

+

✨ The Chamber of Progress Awaits

+

Every great wizard started with their first spell. Begin your English magic today!

-

The Four Houses

-

Choose your path — every house has its own strength in learning English.

+

The Four Houses

+

Choose your path — every house has its own strength in learning English.

🦁
-

Gryffindor

-

Brave and bold — take risks with new words and speak English without fear. Perfect for conversation practice!

+

Gryffindor

+

Brave and bold — take risks with new words and speak English without fear. Perfect for conversation practice!

🐍
-

Slytherin

-

Ambitious and determined — master grammar rules and achieve high scores on every test.

+

Slytherin

+

Ambitious and determined — master grammar rules and achieve high scores on every test.

🦅
-

Ravenclaw

-

Wise and curious — dive deep into reading texts and expand your vocabulary with every lesson.

+

Ravenclaw

+

Wise and curious — dive deep into reading texts and expand your vocabulary with every lesson.

🦡
-

Hufflepuff

-

Loyal and patient — practice daily, build your streak, and grow step by step.

+

Hufflepuff

+

Loyal and patient — practice daily, build your streak, and grow step by step.

@@ -134,10 +134,11 @@ + diff --git a/js/lang.js b/js/lang.js new file mode 100644 index 0000000..d81a797 --- /dev/null +++ b/js/lang.js @@ -0,0 +1,434 @@ +var LANG = {}; + +LANG.en = { + // Nav + 'nav-home': 'Home', + 'nav-vocabulary': 'Vocabulary', + 'nav-grammar': 'Grammar', + 'nav-pronunciation': 'Pronunciation', + 'nav-exercises': 'Exercises', + 'nav-tests': 'Tests', + 'nav-reading': 'Reading', + 'nav-progress': 'Progress', + 'nav-contact': 'Contact', + + // Hero + 'hero-badge': '⚡ Welcome to Hogwarts School of English', + 'hero-title': 'Master the Magic of English', + 'hero-subtitle': 'Discover vocabulary, grammar, exercises, reading, and tests — your magical journey to speaking English begins now.', + 'btn-begin': '🔮 Begin Your Journey', + 'btn-try': '✨ Try a Spell (Exercise)', + + // Index sections + 'section-subjects-title': 'Your Magical Subjects', + 'section-subjects-subtitle': 'Like a wizard at Hogwarts, master every branch of English magic.', + + 'card-vocab-title': 'Vocabulary', + 'card-vocab-desc': 'Learn new words with translations and example sentences. Over 20 words to start with!', + 'card-vocab-btn': 'Explore Words', + 'card-grammar-title': 'Grammar', + 'card-grammar-desc': 'Simple explanations of English grammar with formulas and examples.', + 'card-grammar-btn': 'Study Grammar', + 'card-exercises-title': 'Exercises', + 'card-exercises-desc': 'Practice what you learn with fun exercises. Choose answers, fill gaps, and translate.', + 'card-exercises-btn': 'Practice Now', + 'card-tests-title': 'Tests', + 'card-tests-desc': 'Check your knowledge with a full test. 10 questions to test your skills.', + 'card-tests-btn': 'Take a Test', + 'card-reading-title': 'Reading', + 'card-reading-desc': 'Read short and simple texts in English. Each text has questions.', + 'card-reading-btn': 'Start Reading', + 'card-pronunciation-title': 'Pronunciation', + 'card-pronunciation-desc': 'Listen to words spoken aloud. Practice and improve your speaking.', + 'card-pronunciation-btn': 'Start Speaking', + 'card-progress-title': 'My Progress', + 'card-progress-desc': 'Track your XP, level, and completed activities. Watch yourself improve!', + 'card-progress-btn': 'View Progress', + + // Houses + 'section-houses-title': 'The Four Houses', + 'section-houses-subtitle': 'Choose your path — every house has its own strength in learning English.', + 'house-gryffindor-title': 'Gryffindor', + 'house-gryffindor-desc': 'Brave and bold — take risks with new words and speak English without fear.', + 'house-slytherin-title': 'Slytherin', + 'house-slytherin-desc': 'Ambitious and determined — master grammar rules and achieve high scores.', + 'house-ravenclaw-title': 'Ravenclaw', + 'house-ravenclaw-desc': 'Wise and curious — dive deep into reading and expand your vocabulary.', + 'house-hufflepuff-title': 'Hufflepuff', + 'house-hufflepuff-desc': 'Loyal and patient — practice daily, build your streak, and grow step by step.', + + // Motivation + 'motivation-title': '✨ The Chamber of Progress Awaits', + 'motivation-desc': 'Every great wizard started with their first spell. Begin your English magic today!', + + // Page headers + 'page-vocabulary-title': 'Vocabulary', + 'page-vocabulary-desc': 'Learn 20+ common English words with translations and examples.', + 'page-grammar-title': 'Grammar', + 'page-grammar-desc': 'Simple explanations of English grammar with formulas and examples.', + 'page-pronunciation-title': 'Pronunciation', + 'page-pronunciation-desc': 'Listen, repeat, and improve your English pronunciation.', + 'page-exercises-title': 'Exercises', + 'page-exercises-desc': 'Practice your English with these fun exercises.', + 'page-tests-title': 'English Test', + 'page-tests-desc': 'Test your knowledge with 10 questions. Choose the correct answer for each question.', + 'page-reading-title': 'Reading', + 'page-reading-desc': 'Read short texts in English and check your understanding.', + 'page-progress-title': 'My Progress', + 'page-progress-desc': 'Track your learning journey and see how much you\'ve achieved.', + 'page-contact-title': 'Contact Us', + 'page-contact-desc': 'Have a question or suggestion? Send us a message!', + + // Footer + 'footer-text': 'Made for learning English.', + 'footer-by': 'English Easy', + + // Tests + 'test-check': 'Check Result', + 'test-result': 'Keep learning and try again!', + + // Contact form + 'form-name': 'Name', + 'form-name-placeholder': 'Your name', + 'form-email': 'Email', + 'form-email-placeholder': 'your@email.com', + 'form-message': 'Message', + 'form-message-placeholder': 'Write your message here...', + 'form-send': 'Send Message', + 'form-thankyou': 'Thank you! Your message has been received.', + + // Pronunciation tips + 'pron-tip': '💡 Tip: Click Listen to hear the word, then repeat it out loud. Use Slow to hear it spoken slowly. Practice every day!', + 'pron-common-words': 'Common Words', + 'pron-common-phrases': 'Common Phrases', + 'pron-tips': 'Pronunciation Tips', + 'pron-dictation': 'Dictation Practice', + 'pron-dictation-desc': 'Listen to the word, then type what you hear.', + 'pron-th-sound': '👄 The "th" Sound', + 'pron-th-desc': 'Put your tongue between your teeth and blow air.', + 'pron-r-sound': '🗣️ The "r" Sound', + 'pron-r-desc': 'In English, the tongue does not touch the top of the mouth.', + 'pron-stress': '🎵 Word Stress', + 'pron-stress-desc': 'English words have one stressed syllable. Say it louder and longer.', + 'pron-listen': '🔊 Listen', + 'pron-slow': '🐢 Slow', + 'btn-check': 'Check', + 'btn-all': 'All', + 'btn-school': 'School', + 'btn-family': 'Family', + 'btn-food': 'Food', + 'btn-daily': 'Daily Routine', + 'btn-hobbies': 'Hobbies', + 'vocab-english': 'English', + 'vocab-translation': 'Translation', + 'vocab-example': 'Example Sentence', + + // Grammar + 'grammar-present-simple': 'Present Simple', + 'grammar-present-simple-desc': 'Present Simple is used for habits, routines, and general facts.', + 'grammar-past-simple': 'Past Simple', + 'grammar-past-simple-desc': 'Past Simple is used for completed actions in the past.', + 'grammar-future-simple': 'Future Simple (will)', + 'grammar-future-simple-desc': 'Future Simple is used for predictions, promises, and spontaneous decisions.', + 'grammar-articles': 'Articles: a / an / the', + 'grammar-articles-desc': 'Use a before consonant sounds, an before vowel sounds, and the for specific things.', + 'grammar-pronouns': 'Pronouns', + 'grammar-pronouns-desc': 'Pronouns replace nouns. They can be subject or object pronouns.', + 'grammar-prepositions': 'Prepositions', + 'grammar-prepositions-desc': 'Prepositions show relationships of time, place, and direction.', +}; + +LANG.ru = { + 'nav-home': 'Главная', + 'nav-vocabulary': 'Словарь', + 'nav-grammar': 'Грамматика', + 'nav-pronunciation': 'Произношение', + 'nav-exercises': 'Упражнения', + 'nav-tests': 'Тесты', + 'nav-reading': 'Чтение', + 'nav-progress': 'Прогресс', + 'nav-contact': 'Контакты', + + 'hero-badge': '⚡ Добро пожаловать в Школу Английского Хогвартс', + 'hero-title': 'Освой Магию Английского', + 'hero-subtitle': 'Словарь, грамматика, упражнения, чтение и тесты — твоё волшебное путешествие в мир английского начинается сейчас.', + 'btn-begin': '🔮 Начать Путешествие', + 'btn-try': '✨ Попробовать Заклинание', + + 'section-subjects-title': 'Твои Волшебные Предметы', + 'section-subjects-subtitle': 'Как волшебник в Хогвартсе, освой каждую ветвь английской магии.', + + 'card-vocab-title': 'Словарь', + 'card-vocab-desc': 'Учи новые слова с переводом и примерами. Более 20 слов для начала!', + 'card-vocab-btn': 'Изучить Слова', + 'card-grammar-title': 'Грамматика', + 'card-grammar-desc': 'Простые объяснения английской грамматики с формулами и примерами.', + 'card-grammar-btn': 'Изучить', + 'card-exercises-title': 'Упражнения', + 'card-exercises-desc': 'Практикуйся с весёлыми упражнениями. Выбирай ответы и переводи предложения.', + 'card-exercises-btn': 'Тренироваться', + 'card-tests-title': 'Тесты', + 'card-tests-desc': 'Проверь свои знания. 10 вопросов, чтобы оценить твой уровень.', + 'card-tests-btn': 'Пройти Тест', + 'card-reading-title': 'Чтение', + 'card-reading-desc': 'Читай короткие тексты на английском. К каждому есть вопросы.', + 'card-reading-btn': 'Начать Чтение', + 'card-pronunciation-title': 'Произношение', + 'card-pronunciation-desc': 'Слушай слова вслух. Тренируй произношение и улучшай речь.', + 'card-pronunciation-btn': 'Начать Говорить', + 'card-progress-title': 'Мой Прогресс', + 'card-progress-desc': 'Отслеживай XP, уровень и выполненные задания. Смотри, как растёшь!', + 'card-progress-btn': 'Смотреть', + + 'section-houses-title': 'Четыре Факультета', + 'section-houses-subtitle': 'Выбери свой путь — у каждого факультета своя сила в изучении английского.', + 'house-gryffindor-title': 'Гриффиндор', + 'house-gryffindor-desc': 'Храбрые и смелые — рискуй с новыми словами и говори по-английски без страха.', + 'house-slytherin-title': 'Слизерин', + 'house-slytherin-desc': 'Амбициозные и решительные — осваивай грамматику и достигай высоких результатов.', + 'house-ravenclaw-title': 'Когтевран', + 'house-ravenclaw-desc': 'Мудрые и любознательные — читай тексты и расширяй словарный запас.', + 'house-hufflepuff-title': 'Пуффендуй', + 'house-hufflepuff-desc': 'Верные и терпеливые — занимайся каждый день и расти шаг за шагом.', + + 'motivation-title': '✨ Зал Прогресса Ждёт', + 'motivation-desc': 'Каждый великий волшебник начинал с первого заклинания. Начни свою английскую магию сегодня!', + + 'page-vocabulary-title': 'Словарь', + 'page-vocabulary-desc': 'Выучи 20+ популярных английских слов с переводом и примерами.', + 'page-grammar-title': 'Грамматика', + 'page-grammar-desc': 'Простые объяснения английской грамматики с формулами и примерами.', + 'page-pronunciation-title': 'Произношение', + 'page-pronunciation-desc': 'Слушай, повторяй и улучшай своё английское произношение.', + 'page-exercises-title': 'Упражнения', + 'page-exercises-desc': 'Тренируй английский с помощью интересных упражнений.', + 'page-tests-title': 'Тест по Английскому', + 'page-tests-desc': 'Проверь знания: 10 вопросов. Выбери правильный ответ на каждый.', + 'page-reading-title': 'Чтение', + 'page-reading-desc': 'Читай короткие тексты на английском и проверяй понимание.', + 'page-progress-title': 'Мой Прогресс', + 'page-progress-desc': 'Отслеживай свой путь обучения и смотри, сколько ты достиг.', + 'page-contact-title': 'Свяжитесь с Нами', + 'page-contact-desc': 'Есть вопрос или предложение? Отправьте нам сообщение!', + + 'footer-text': 'Сделано для изучения английского.', + 'footer-by': 'English Easy', + + 'test-check': 'Проверить', + 'test-result': 'Продолжай учиться и пробуй снова!', + + 'form-name': 'Имя', + 'form-name-placeholder': 'Ваше имя', + 'form-email': 'Email', + 'form-email-placeholder': 'ваш@email.com', + 'form-message': 'Сообщение', + 'form-message-placeholder': 'Напишите сообщение...', + 'form-send': 'Отправить', + 'form-thankyou': 'Спасибо! Ваше сообщение получено.', + + 'pron-tip': '💡 Совет: Нажми Слушать, чтобы услышать слово, затем повтори вслух. Используй Медленно, чтобы услышать медленное произношение.', + 'pron-common-words': 'Популярные Слова', + 'pron-common-phrases': 'Популярные Фразы', + 'pron-tips': 'Советы по Произношению', + 'pron-dictation': 'Диктант', + 'pron-dictation-desc': 'Послушай слово и напиши, что услышал.', + 'pron-th-sound': '👄 Звук "th"', + 'pron-th-desc': 'Помести язык между зубами и выдохни воздух.', + 'pron-r-sound': '🗣️ Звук "r"', + 'pron-r-desc': 'В английском язык не касается нёба.', + 'pron-stress': '🎵 Ударение', + 'pron-stress-desc': 'В английских словах один ударный слог. Произноси его громче и длиннее.', + 'pron-listen': '🔊 Слушать', + 'pron-slow': '🐢 Медленно', + 'btn-check': 'Проверить', + 'btn-all': 'Все', + 'btn-school': 'Школа', + 'btn-family': 'Семья', + 'btn-food': 'Еда', + 'btn-daily': 'Распорядок дня', + 'btn-hobbies': 'Хобби', + 'vocab-english': 'Английский', + 'vocab-translation': 'Перевод', + 'vocab-example': 'Пример', + + 'grammar-present-simple': 'Настоящее Простое', + 'grammar-present-simple-desc': 'Present Simple используется для привычек, рутины и общих фактов.', + 'grammar-past-simple': 'Прошедшее Простое', + 'grammar-past-simple-desc': 'Past Simple используется для завершённых действий в прошлом.', + 'grammar-future-simple': 'Будущее Простое (will)', + 'grammar-future-simple-desc': 'Future Simple используется для предсказаний, обещаний и спонтанных решений.', + 'grammar-articles': 'Артикли: a / an / the', + 'grammar-articles-desc': 'Используй a перед согласными, an перед гласными, the для конкретных вещей.', + 'grammar-pronouns': 'Местоимения', + 'grammar-pronouns-desc': 'Местоимения заменяют существительные.', + 'grammar-prepositions': 'Предлоги', + 'grammar-prepositions-desc': 'Предлоги показывают отношения времени, места и направления.', +}; + +LANG.kk = { + 'nav-home': 'Басты бет', + 'nav-vocabulary': 'Сөздік', + 'nav-grammar': 'Грамматика', + 'nav-pronunciation': 'Айтылуы', + 'nav-exercises': 'Жаттығулар', + 'nav-tests': 'Тесттер', + 'nav-reading': 'Оқу', + 'nav-progress': 'Прогресс', + 'nav-contact': 'Байланыс', + + 'hero-badge': '⚡ Хогвартс Ағылшын Мектебіне Қош Келдіңіз', + 'hero-title': 'Ағылшынның Сиқырын Меңгер', + 'hero-subtitle': 'Сөздік, грамматика, жаттығулар, оқу және тесттер — ағылшын тілінде сөйлеуге арналған сиқырлы саяхатың басталады.', + 'btn-begin': '🔮 Саяхатты Бастау', + 'btn-try': '✨ Сиқырды Қолданып Көр', + + 'section-subjects-title': 'Сенің Сиқырлы Пәндерің', + 'section-subjects-subtitle': 'Хогвартстағы сиқыршы сияқты, ағылшын сиқырының әр саласын меңгер.', + + 'card-vocab-title': 'Сөздік', + 'card-vocab-desc': 'Жаңа сөздерді аудармасымен және мысалдарымен үйрен. Бастау үшін 20+ сөз!', + 'card-vocab-btn': 'Сөздерді Үйрен', + 'card-grammar-title': 'Грамматика', + 'card-grammar-desc': 'Ағылшын грамматикасының қарапайым түсіндірмесі формулалармен және мысалдармен.', + 'card-grammar-btn': 'Грамматиканы Оқу', + 'card-exercises-title': 'Жаттығулар', + 'card-exercises-desc': 'Қызықты жаттығулармен тәжірибе жаса. Жауаптарды таңда және аудар.', + 'card-exercises-btn': 'Жаттығу', + 'card-tests-title': 'Тесттер', + 'card-tests-desc': 'Біліміңді тексер. Деңгейіңді бағалау үшін 10 сұрақ.', + 'card-tests-btn': 'Тест Тапсыру', + 'card-reading-title': 'Оқу', + 'card-reading-desc': 'Ағылшынша қысқа мәтіндерді оқы. Әр мәтін бойынша сұрақтар бар.', + 'card-reading-btn': 'Оқуды Бастау', + 'card-pronunciation-title': 'Айтылуы', + 'card-pronunciation-desc': 'Сөздерді дауыстап тыңда. Айтылуыңды жаттықтырып, сөйлеуіңді жақсарт.', + 'card-pronunciation-btn': 'Сөйлеуді Бастау', + 'card-progress-title': 'Менің Прогрессім', + 'card-progress-desc': 'XP, деңгей және орындалған тапсырмаларды қадағала. Өсіп келе жатқаныңды көр!', + 'card-progress-btn': 'Прогресті Көру', + + 'section-houses-title': 'Төрт Факультет', + 'section-houses-subtitle': 'Өз жолыңды таңда — әр факультеттің ағылшын үйренуде өз күші бар.', + 'house-gryffindor-title': 'Гриффиндор', + 'house-gryffindor-desc': 'Батыл және қайсар — жаңа сөздермен тәуекел ет және ағылшынша қорықпай сөйле.', + 'house-slytherin-title': 'Слизерин', + 'house-slytherin-desc': 'Амбициялы және табанды — грамматиканы меңгер және жоғары нәтижеге жет.', + 'house-ravenclaw-title': 'Когтевран', + 'house-ravenclaw-desc': 'Дана және білімқұмар — мәтіндерді оқы және сөздік қорыңды кеңейт.', + 'house-hufflepuff-title': 'Хаффлпафф', + 'house-hufflepuff-desc': 'Адал және сабырлы — күнделікті жаттық, streak-іңді құр және қадаммен өс.', + + 'motivation-title': '✨ Прогресс Залы Күтіп Тұр', + 'motivation-desc': 'Әр ұлы сиқыршы өзінің бірінші сиқырынан бастады. Бүгін ағылшын сиқырыңды баста!', + + 'page-vocabulary-title': 'Сөздік', + 'page-vocabulary-desc': '20+ танымал ағылшын сөздерін аудармамен және мысалдармен үйрен.', + 'page-grammar-title': 'Грамматика', + 'page-grammar-desc': 'Ағылшын грамматикасының қарапайым түсіндірмелері формулалармен және мысалдармен.', + 'page-pronunciation-title': 'Айтылуы', + 'page-pronunciation-desc': 'Тыңда, қайтала және ағылшын айтылуыңды жақсарт.', + 'page-exercises-title': 'Жаттығулар', + 'page-exercises-desc': 'Қызықты жаттығулармен ағылшын тілін жаттықтыр.', + 'page-tests-title': 'Ағылшын Тесті', + 'page-tests-desc': 'Біліміңді тексер: 10 сұрақ. Әр сұраққа дұрыс жауапты таңда.', + 'page-reading-title': 'Оқу', + 'page-reading-desc': 'Ағылшынша қысқа мәтіндерді оқы және түсінгеніңді тексер.', + 'page-progress-title': 'Менің Прогрессім', + 'page-progress-desc': 'Оқу саяхатыңды бақыла және қанша жеткеніңді көр.', + 'page-contact-title': 'Бізбен Байланысу', + 'page-contact-desc': 'Сұрағың немесе ұсынысың бар ма? Бізге хабарлама жібер!', + + 'footer-text': 'Ағылшын үйрену үшін жасалған.', + 'footer-by': 'English Easy', + + 'test-check': 'Тексеру', + 'test-result': 'Оқуды жалғастыр және қайтадан тырыс!', + + 'form-name': 'Атыңыз', + 'form-name-placeholder': 'Атыңыз', + 'form-email': 'Email', + 'form-email-placeholder': 'сіздің@email.kz', + 'form-message': 'Хабарлама', + 'form-message-placeholder': 'Хабарламаңызды жазыңыз...', + 'form-send': 'Жіберу', + 'form-thankyou': 'Рахмет! Сіздің хабарламаңыз қабылданды.', + + 'pron-tip': '💡 Кеңес: Тыңдау түймесін басып сөзді есті, содан кейін дауыстап қайтала. Баяу түймесі баяу айтылуды естуге көмектеседі.', + 'pron-common-words': 'Танымал Сөздер', + 'pron-common-phrases': 'Танымал Фразалар', + 'pron-tips': 'Айтылу Кеңестері', + 'pron-dictation': 'Диктант', + 'pron-dictation-desc': 'Сөзді тыңда және естігеніңді жаз.', + 'pron-th-sound': '👄 "th" Дыбысы', + 'pron-th-desc': 'Тіліңді тістеріңнің арасына салып, ауаны үрле.', + 'pron-r-sound': '🗣️ "r" Дыбысы', + 'pron-r-desc': 'Ағылшын тілінде тіл таңдайға тимейді.', + 'pron-stress': '🎵 Сөз Екпіні', + 'pron-stress-desc': 'Ағылшын сөздерінде бір екпінді буын бар. Оны қаттырақ және ұзағырақ айт.', + 'pron-listen': '🔊 Тыңдау', + 'pron-slow': '🐢 Баяу', + 'btn-check': 'Тексеру', + 'btn-all': 'Барлығы', + 'btn-school': 'Мектеп', + 'btn-family': 'Отбасы', + 'btn-food': 'Тамақ', + 'btn-daily': 'Күнделікті режим', + 'btn-hobbies': 'Хобби', + 'vocab-english': 'Ағылшын', + 'vocab-translation': 'Аударма', + 'vocab-example': 'Мысал', + + 'grammar-present-simple': 'Қазіргі Жай Шақ', + 'grammar-present-simple-desc': 'Present Simple әдеттер, күнделікті істер және жалпы фактілер үшін қолданылады.', + 'grammar-past-simple': 'Өткен Жай Шақ', + 'grammar-past-simple-desc': 'Past Simple өткенде аяқталған әрекеттер үшін қолданылады.', + 'grammar-future-simple': 'Келер Жай Шақ (will)', + 'grammar-future-simple-desc': 'Future Simple болжамдар, уәделер және кенеттен шешімдер үшін қолданылады.', + 'grammar-articles': 'Артикльдер: a / an / the', + 'grammar-articles-desc': 'a дауыссыз дыбыстар алдында, an дауысты дыбыстар алдында, the нақты заттар үшін.', + 'grammar-pronouns': 'Есімдіктер', + 'grammar-pronouns-desc': 'Есімдіктер зат есімдердің орнына қолданылады.', + 'grammar-prepositions': 'Предлогтар', + 'grammar-prepositions-desc': 'Предлогтар уақыт, орын және бағыт қатынасын көрсетеді.', +}; + +// Current language +var currentLang = localStorage.getItem('english_easy_lang') || 'en'; + +function setLanguage(lang) { + if (!LANG[lang]) return; + currentLang = lang; + localStorage.setItem('english_easy_lang', lang); + + // Update all data-i18n elements + var elements = document.querySelectorAll('[data-i18n]'); + elements.forEach(function(el) { + var key = el.getAttribute('data-i18n'); + if (LANG[lang][key]) { + el.innerHTML = LANG[lang][key]; + } + }); + + // Update placeholders + var placeholders = document.querySelectorAll('[data-i18n-placeholder]'); + placeholders.forEach(function(el) { + var key = el.getAttribute('data-i18n-placeholder'); + if (LANG[lang][key]) { + el.placeholder = LANG[lang][key]; + } + }); + + // Update lang switcher UI + var btns = document.querySelectorAll('.lang-btn'); + btns.forEach(function(btn) { + btn.classList.toggle('active', btn.getAttribute('data-lang') === lang); + }); + + // Update html lang attribute + document.documentElement.lang = lang; +} + +// Init on DOM ready +document.addEventListener('DOMContentLoaded', function() { + setLanguage(currentLang); +}); diff --git a/progress.html b/progress.html index 113f207..8c8ad9b 100644 --- a/progress.html +++ b/progress.html @@ -17,15 +17,15 @@
@@ -33,8 +33,8 @@ @@ -84,10 +84,11 @@ + diff --git a/reading.html b/reading.html index 5e49524..9603265 100644 --- a/reading.html +++ b/reading.html @@ -17,15 +17,15 @@
@@ -33,8 +33,8 @@ @@ -99,10 +99,11 @@ + diff --git a/tests.html b/tests.html index 23efbca..fe2eb9c 100644 --- a/tests.html +++ b/tests.html @@ -17,15 +17,15 @@ @@ -34,7 +34,7 @@ @@ -132,12 +132,12 @@
- +
0/10
-

Keep learning and try again!

+

Keep learning and try again!

@@ -145,10 +145,11 @@ + diff --git a/vocabulary.html b/vocabulary.html index 5c0db2b..fc0e081 100644 --- a/vocabulary.html +++ b/vocabulary.html @@ -17,15 +17,15 @@ @@ -33,28 +33,28 @@
- - - - - - + + + + + +
- - - + + + @@ -175,10 +175,11 @@ +
EnglishTranslationExample SentenceEnglishTranslationExample Sentence