Open
Conversation
- Create lib/i18n/locales/ru-RU.json with full Russian translation (878 keys) - Register ru-RU in lib/i18n/locales.ts (code: 'ru-RU', label: 'Русский', shortLabel: 'RU') - No AI prompt modifications — follows new i18next-based architecture
…line, and interactive classroom stage components
Feature/add russian language
…ine with parallel processing support
…ider support for TTS, ASR, image, and video generation, including settings management and i18n.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces dynamic support for Russian (RU) and Japanese (JA) languages across both the user interface and AI course generation pipelines. Previously, the platform was limited to English and Simplified Chinese, or relied on hardcoded branch overrides. This update allows users to seamlessly select and generate comprehensive course materials, outlines, and interactive content natively in all four supported languages (
zh-CN,en-US,ja-JP,ru-RU).Changes
Core & Types
'zh-CN' | 'en-US'union types into a unifiedCourseLanguagetype alias covering all 4 languages inlib/types/generation.ts.api/generate/scene-content/route.tsandlib/server/classroom-generation.tsto fully inherit and process the expanded locales.UI & Localization
ru-RU.jsonand verified registration inlib/i18n/locales.ts.GenerationToolbarfrom a binary toggle to a cyclical 4-state selector.app/page.tsx) to properly identify and assign default languages forruandjabrowser locales.agent-bar.tsx.AI Generation Logic & Prompts
prompt-builder.ts: Expanded language constraint injection to pass readable names (e.g., "Russian (Русский)") directly into the AI agent personas.scene-generator.ts: Replaced hardcoded Chinese fallback text (e.g., "无可用图片,禁止插入任何 image 元素") with English equivalents to ensure language-agnostic AI comprehension regardless of the target generation language.pbl-system-prompt.ts: Injected a criticalLANGUAGE REQUIREMENTdirective into the English project-based learning prompt to strictly enforce RU/JA content generations without relying on the Chinese templates.Type of Change
Verification
Steps to reproduce / test
What you personally verified
Evidence
pnpm check && pnpm lint && npx tsc --noEmit)Checklist