From 7847c0cbcfa75120805b011403d618dfd22df36a Mon Sep 17 00:00:00 2001 From: Localization Contributor Date: Mon, 2 Nov 2026 17:19:45 +0900 Subject: [PATCH] feat(i18n): add initial Korean UI localization --- web/i18n/init.ts | 4 + web/i18n/languages.ts | 2 + web/lib/datetime.ts | 1 + web/locales/de/app.json | 3 +- web/locales/en/app.json | 3 +- web/locales/fr/app.json | 3 +- web/locales/ja/app.json | 3 +- web/locales/ko/app.json | 601 ++++++++++++++++++++++ web/locales/ko/common.json | 45 ++ web/locales/pl/app.json | 3 +- web/locales/pt/app.json | 3 +- web/locales/tr/app.json | 3 +- web/locales/uk/app.json | 3 +- web/locales/vi/app.json | 3 +- web/locales/zh/app.json | 3 +- web/scripts/i18n_audit.mjs | 4 +- web/tests/korean-locale-quality.test.ts | 50 ++ web/tests/language-preferences.test.ts | 4 + web/tests/partial-locale-fallback.spec.ts | 14 + 19 files changed, 744 insertions(+), 11 deletions(-) create mode 100644 web/locales/ko/app.json create mode 100644 web/locales/ko/common.json create mode 100644 web/tests/korean-locale-quality.test.ts diff --git a/web/i18n/init.ts b/web/i18n/init.ts index 63e5bf7b8..5169cdf3b 100644 --- a/web/i18n/init.ts +++ b/web/i18n/init.ts @@ -84,5 +84,9 @@ export async function ensureLanguage(language: AppLanguage) { const trApp = (await import("@/locales/tr/app.json")).default; i18n.addResourceBundle("tr", "app", trApp, true, true); } + if (language === "ko") { + const koApp = (await import("@/locales/ko/app.json")).default; + i18n.addResourceBundle("ko", "app", koApp, true, true); + } } diff --git a/web/i18n/languages.ts b/web/i18n/languages.ts index 8ef03d800..69f5e9381 100644 --- a/web/i18n/languages.ts +++ b/web/i18n/languages.ts @@ -10,6 +10,7 @@ export const APP_LANGUAGES = [ { code: "vi", labelKey: "language.vietnamese" }, { code: "ja", labelKey: "language.japanese" }, { code: "tr", labelKey: "language.turkish" }, + { code: "ko", labelKey: "language.korean" }, ] as const; export type AppLanguage = (typeof APP_LANGUAGES)[number]["code"]; @@ -35,6 +36,7 @@ export function normalizeLanguage(value: unknown): AppLanguage { if (base === "vi" || code === "vietnamese" || code === "tiếng việt") return "vi"; if (base === "ja" || base === "jp" || code === "japanese") return "ja"; if (base === "tr" || code === "turkish" || code === "türkçe") return "tr"; + if (base === "ko" || code === "korean" || code === "한국어") return "ko"; return "en"; } diff --git a/web/lib/datetime.ts b/web/lib/datetime.ts index 610a8f992..ba86d179e 100644 --- a/web/lib/datetime.ts +++ b/web/lib/datetime.ts @@ -12,6 +12,7 @@ export function getLocale(lang: Language): string { if (lang === "vi") return "vi-VN"; if (lang === "ja") return "ja-JP"; if (lang === "tr") return "tr-TR"; + if (lang === "ko") return "ko-KR"; return "en-US"; } diff --git a/web/locales/de/app.json b/web/locales/de/app.json index 07a54e671..5c0fdf833 100644 --- a/web/locales/de/app.json +++ b/web/locales/de/app.json @@ -6406,5 +6406,6 @@ "Availability refreshed. This parser is still unavailable; check the installation and startup logs, then retry.": "Verfügbarkeit aktualisiert. Dieser Parser ist weiterhin nicht verfügbar; prüfe Installation und Startprotokolle und versuche es erneut.", "language.portuguese": "Portugiesisch", "language.japanese": "Japanisch", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/en/app.json b/web/locales/en/app.json index ed3beaa05..c9c65db6b 100644 --- a/web/locales/en/app.json +++ b/web/locales/en/app.json @@ -6406,5 +6406,6 @@ "Reset learning text": "Reset learning text", "language.portuguese": "Portuguese", "language.japanese": "Japanese", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/fr/app.json b/web/locales/fr/app.json index 38ae01d04..85f2e0b76 100644 --- a/web/locales/fr/app.json +++ b/web/locales/fr/app.json @@ -7311,5 +7311,6 @@ "Availability refreshed. This parser is still unavailable; check the installation and startup logs, then retry.": "Disponibilité actualisée. Ce parseur reste indisponible ; vérifiez l’installation et les journaux de démarrage, puis réessayez.", "language.portuguese": "Portugais", "language.japanese": "Japonais", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/ja/app.json b/web/locales/ja/app.json index 7e8a5a189..2b7ea4b0b 100644 --- a/web/locales/ja/app.json +++ b/web/locales/ja/app.json @@ -6406,5 +6406,6 @@ "Learning text preview": "学習テキストのプレビュー", "Reset learning text": "学習テキストをリセット", "language.portuguese": "Português", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/ko/app.json b/web/locales/ko/app.json new file mode 100644 index 000000000..fed1257e1 --- /dev/null +++ b/web/locales/ko/app.json @@ -0,0 +1,601 @@ +{ + "language.english": "English", + "language.chinese": "中文", + "language.french": "Français", + "language.german": "Deutsch", + "language.ukrainian": "Ukrainian", + "language.polish": "Polish", + "language.portuguese": "Portuguese", + "language.vietnamese": "Tiếng Việt", + "language.japanese": "Japanese", + "language.turkish": "Türkçe", + "language.korean": "한국어", + "common.loading": "불러오는 중...", + "common.save": "저장", + "common.cancel": "취소", + "common.close": "닫기", + "Start": "시작", + "Learn": "학습", + "Research": "연구", + "Dashboard": "대시보드", + "Question Generator": "문제 생성", + "Custom": "사용자 지정", + "Generating": "생성 중", + "questions": "문제", + "extended": "확장", + "Count": "개수", + "Questions": "문제", + "Correct Answer": "정답", + "Explanation": "해설", + "round": "회차", + "s": "초", + "Submitted": "제출됨", + "Brainstorm": "아이디어 탐색", + "Code": "코드", + "Reason": "심층 추론", + "Arxiv Search": "arXiv 검색", + "Papers": "논문", + "Deep Solve": "심층 문제 풀이", + "Quiz Generation": "퀴즈 생성", + "Math Animator": "수학 애니메이션", + "Guided Learning": "맞춤 학습", + "Mastery Path": "완전 학습 경로", + "Flexible conversation with any tool": "다양한 도구를 활용하는 자유로운 대화", + "Multi-step reasoning & problem solving": "단계별 추론과 문제 해결", + "Auto-validated question generation": "자동 검증을 거친 문제 생성", + "Comprehensive multi-agent research": "여러 에이전트가 함께하는 종합 연구", + "No KB": "지식 베이스 없음", + "Tools": "도구", + "Loading models": "모델을 불러오는 중", + "Models unavailable": "모델을 사용할 수 없습니다", + "Refresh models": "모델 새로고침", + "Select model": "모델 선택", + "Choose a model": "모델을 선택하세요", + "System default": "시스템 기본값", + "Use the active default model from Settings": "설정에서 지정한 기본 모델을 사용합니다", + "Send": "보내기", + "Drop files here": "여기에 파일을 놓으세요", + "Images, Office docs, code & text": "이미지, Office 문서, 코드 및 텍스트", + "Unsupported file type: {{name}}": "지원하지 않는 파일 형식입니다: {{name}}", + "File too large: {{name}}": "파일이 너무 큽니다: {{name}}", + "Too many files, skipped some": "파일이 너무 많아 일부를 제외했습니다", + "Attachment preview": "첨부 파일 미리보기", + "Attachment": "첨부 파일", + "Attachment processing": "첨부 파일 처리", + "Attach": "첨부", + "Attach files": "파일 첨부", + "Uploaded to DeepTutor": "DeepTutor에 업로드했습니다", + "Sending to DeepTutor": "DeepTutor로 전송 중", + "Sending to document parser": "문서 분석기로 전송 중", + "Document parser is processing": "문서를 분석하는 중", + "Retrieving parsed result": "분석 결과를 가져오는 중", + "Ready for this answer": "이번 답변에 사용할 준비가 되었습니다", + "Using local PDF text": "로컬 PDF 텍스트 사용 중", + "Document parsing failed": "문서 분석에 실패했습니다", + "Failure details": "오류 상세 정보", + "Smart Solver": "스마트 문제 풀이", + "Vision Solver": "이미지 문제 풀이", + "Elements": "요소", + "Constraints": "조건", + "Relations": "관계", + "Validation": "검증", + "Found": "발견됨", + "elements": "요소", + "constraints": "조건", + "relations": "관계", + "commands": "명령어", + "Refresh": "새로고침", + "Maximize": "최대화", + "Minimize": "최소화", + "Load": "불러오기", + "Deep Research": "심층 연구", + "Start Research": "연구 시작", + "Retry Research": "연구 다시 시도", + "Research Complete": "연구 완료", + "Research failed. You can retry.": "연구에 실패했습니다. 다시 시도할 수 있습니다.", + "Review and edit the sub-topics below, then start the research. You can also type in the chat to regenerate the outline.": "아래 세부 주제를 확인하고 수정한 뒤 연구를 시작하세요. 채팅에서 요청해 개요를 다시 생성할 수도 있습니다.", + "Co-Writer": "노트북", + "Knowledge": "지식", + "Memory": "메모리", + "About": "정보", + "Knowledge Bases": "지식 베이스", + "Knowledge Base": "지식 베이스", + "Knowledge bases": "지식 베이스", + "Settings": "설정", + "Save": "저장", + "Cancel": "취소", + "Close": "닫기", + "Delete": "삭제", + "Edit": "수정", + "Add": "추가", + "Create": "만들기", + "Remove": "제거", + "Retry": "다시 시도", + "Back": "뒤로", + "Next": "다음", + "Previous": "이전", + "Continue": "계속", + "Done": "완료", + "Search": "검색", + "Clear": "지우기", + "Reset": "초기화", + "Apply": "적용", + "Copy": "복사", + "Copied": "복사됨", + "Download": "다운로드", + "Upload": "업로드", + "Loading...": "불러오는 중...", + "Loading…": "불러오는 중…", + "Saving...": "저장 중...", + "Error": "오류", + "Success": "성공", + "Failed": "실패", + "Completed": "완료", + "Pending": "대기 중", + "Running": "실행 중", + "Enabled": "사용", + "Disabled": "사용 안 함", + "Name": "이름", + "Title": "제목", + "Description": "설명", + "Type": "유형", + "Status": "상태", + "Actions": "작업", + "Details": "상세 정보", + "Default": "기본값", + "Optional": "선택 사항", + "Required": "필수", + "All": "전체", + "None": "없음", + "Yes": "예", + "No": "아니요", + "New chat": "새 대화", + "Chat": "대화", + "Chat Session": "대화 세션", + "Chat History": "대화 기록", + "Workspace": "작업 공간", + "Learning Space": "학습 공간", + "Question Bank": "문제 은행", + "Sign in": "로그인", + "Sign in to your account": "계정에 로그인하세요", + "Sign out": "로그아웃", + "Save Draft": "초안 저장", + "Save changes": "변경 사항 저장", + "Saved": "저장됨", + "Save failed": "저장에 실패했습니다", + "Save to Notebook": "즐겨찾기에 저장", + "Saved to notebook.": "즐겨찾기에 저장했습니다.", + "Save a chat result first to populate a notebook.": "대화 결과를 먼저 즐겨찾기 모음에 저장하세요.", + "Favorites": "즐겨찾기", + "Sources": "출처", + "Files": "파일", + "Documents": "문서", + "Notes": "노트", + "History": "기록", + "Model": "모델", + "Models": "모델", + "Provider": "제공업체", + "Providers": "제공업체", + "Chat model": "대화 모델", + "Appearance": "화면 설정", + "Pick the colour palette and interface style. Each tile previews the theme it applies.": "색상과 화면 스타일을 선택하세요. 각 타일에서 적용할 테마를 미리 볼 수 있습니다.", + "Code blocks": "코드 블록", + "Choose how code snippets look across the app. Changes apply immediately to saved and streamed responses.": "앱에서 코드를 표시할 방식을 선택하세요. 저장된 답변과 실시간으로 생성되는 답변에 즉시 적용됩니다.", + "Show line numbers": "줄 번호 표시", + "Syntax theme": "구문 강조 테마", + "Wrap long code lines instead of forcing horizontal scrolling.": "가로로 스크롤하지 않아도 되도록 긴 코드 줄을 자동으로 줄바꿈합니다.", + "Wrap long lines": "긴 줄 자동 줄바꿈", + "Choose the interface language.": "화면에 표시할 언어를 선택하세요.", + "Interface language": "화면 언어", + "Layout": "레이아웃", + "Interface layout": "화면 레이아웃", + "Classic keeps the familiar navigation; Modern is the redesigned interface.": "클래식은 익숙한 탐색 방식을 유지하고, 모던은 새롭게 디자인한 화면을 제공합니다.", + "Classic": "클래식", + "Modern": "모던", + "Controls navigation, settings, and status text only.": "메뉴, 설정 및 상태 메시지의 언어에만 적용됩니다.", + "Model output language": "모델 답변 언어", + "Sets the default language for chat and capability responses.": "대화 및 학습 기능의 기본 답변 언어를 설정합니다.", + "Network": "네트워크", + "Chat response timeout": "대화 응답 제한 시간", + "How long chat waits for a reply before showing a timeout error. Increase it for slow tools like image or video generation.": "응답 시간 초과 오류를 표시하기 전까지 답변을 기다리는 시간입니다. 이미지나 동영상 생성처럼 시간이 오래 걸리는 도구를 사용할 때는 늘려 주세요.", + "Timeout (seconds)": "제한 시간(초)", + "LLM timeout (seconds)": "LLM 제한 시간(초)", + "Failed to save": "저장에 실패했습니다", + "On": "켜짐", + "Off": "꺼짐", + "Always on": "항상 사용", + "Switch user-toggleable tools on or off. Locked tools are mounted automatically when the chat agent needs them.": "사용자가 선택할 수 있는 도구를 켜거나 끄세요. 잠긴 도구는 대화 에이전트가 필요할 때 자동으로 연결합니다.", + "Auto-mounted by the agent when needed. Not user-toggleable.": "필요할 때 에이전트가 자동으로 연결합니다. 사용자가 켜거나 끌 수 없습니다.", + "Concept Question": "개념 문제", + "Fill in the Blank": "빈칸 채우기", + "Short Answer": "단답형", + "Essay": "서술형", + "Type Mix": "문제 유형 구성", + "Decrease": "줄이기", + "Increase": "늘리기", + "True": "참", + "False": "거짓", + "AI Judge": "AI 채점", + "AI Judgment": "AI 채점 결과", + "No answer recorded.": "기록된 답안이 없습니다.", + "Ask anything about this question, your answer, or the AI judgment.": "이 문제나 작성한 답안, AI 채점 결과에 대해 자유롭게 질문하세요.", + "Attach image": "이미지 첨부", + "Judging...": "채점 중...", + "Re-judge": "다시 채점", + "Attach an image as your answer": "이미지로 답안 첨부", + "Add another image": "이미지 추가", + "Replace image": "이미지 바꾸기", + "Remove image": "이미지 제거", + "AI judge connection closed unexpectedly.": "AI 채점 연결이 예기치 않게 종료되었습니다.", + "Reload question": "문제 다시 불러오기", + "Select all correct answers": "정답을 모두 선택하세요", + "Your answer": "내 답안", + "Try recalling the answer before revealing it.": "정답을 보기 전에 먼저 떠올려 보세요.", + "Checking…": "확인 중…", + "Check and reveal answer": "채점하고 정답 보기", + "Skip for now": "지금은 건너뛰기", + "Compare your answer with the reference": "내 답안과 참고 답안을 비교해 보세요", + "Needs another try": "다시 풀어 보세요", + "No reference answer was saved. Use the original source to check your work.": "저장된 참고 답안이 없습니다. 원문을 참고해 답안을 확인하세요.", + "How well did you remember?": "얼마나 잘 기억하셨나요?", + "Your feedback schedules the next review. Original answers stay unchanged.": "선택한 결과를 바탕으로 다음 복습 일정을 정합니다. 원래 답안은 그대로 유지됩니다.", + "Saving review…": "복습 결과 저장 중…", + "Again": "다시 학습", + "Good": "잘 기억함", + "I could not recall it": "기억나지 않았어요", + "I needed a hint": "힌트가 필요했어요", + "I recalled it myself": "스스로 떠올렸어요", + "I knew it confidently": "확실히 알고 있었어요", + "Add tag": "태그 추가", + "Remove tag": "태그 제거", + "No tags yet. Type a name below to create one.": "아직 태그가 없습니다. 아래에 이름을 입력해 만들어 보세요.", + "New tag…": "새 태그…", + "Manage tags": "태그 관리", + "Delete this tag? The questions themselves stay in your bank.": "이 태그를 삭제하시겠어요? 문제는 문제 은행에 그대로 남습니다.", + "Answer and explanation": "정답 및 해설", + "Previous page": "이전 페이지", + "Next page": "다음 페이지", + "Latest practice answer": "최근 연습 답안", + "Single Choice": "단일 선택형", + "Multiple Select": "복수 선택형", + "True or False": "참·거짓", + "Written Answer": "서술형 답안", + "Concept Check": "개념 확인", + "Practice activity": "연습 활동", + "Daily activity and sources": "일별 활동 및 출처", + "New questions": "새 문제", + "New mistakes": "새 오답", + "Review submissions": "복습 제출", + "Statistics period": "통계 기간", + "Last {{count}} days": "최근 {{count}}일", + "Chart style": "차트 스타일", + "Line chart": "꺾은선 차트", + "Bar chart": "막대 차트", + "Sources in this period": "이 기간의 출처", + "No activity in this period": "이 기간에는 활동이 없습니다", + "Statistics unavailable": "통계를 사용할 수 없습니다", + "Could not refresh statistics. Showing the last loaded data.": "통계를 새로고침하지 못했습니다. 마지막으로 불러온 데이터를 표시합니다.", + "Could not load statistics.": "통계를 불러오지 못했습니다.", + "View daily data": "일별 데이터 보기", + "Daily practice data": "일별 연습 데이터", + "Date": "날짜", + "Daily chart. Use left and right arrows to inspect dates.": "일별 차트입니다. 왼쪽 및 오른쪽 화살표 키로 날짜를 확인하세요.", + "{{metric}} by day. Exact values are available in the daily data table.": "일별 {{metric}}입니다. 정확한 값은 일별 데이터 표에서 확인할 수 있습니다.", + "Partially correct": "부분 정답", + "These answers could not be submitted. Please review or retry.": "답안을 제출하지 못했습니다. 확인하거나 다시 시도하세요.", + "The edit could not be sent. Your draft is still here; please retry.": "수정 내용을 보내지 못했습니다. 초안이 유지되어 있으니 다시 시도하세요.", + "Discard unsent draft": "보내지 않은 초안 삭제", + "Discarding…": "삭제 중…", + "This draft could not be discarded. Please retry or copy it before leaving.": "초안을 삭제하지 못했습니다. 다시 시도하거나 이동하기 전에 내용을 복사하세요.", + "Reading skill": "스킬을 읽는 중", + "Reading source": "자료를 읽는 중", + "Writing file": "파일을 작성하는 중", + "Listing files": "파일 목록을 확인하는 중", + "Writing note": "노트를 작성하는 중", + "Saving memory": "메모리에 저장하는 중", + "Brainstorming": "아이디어를 탐색하는 중", + "Answer": "답안", + "Hint": "힌트", + "Prev": "이전", + "Flip": "뒤집기", + "Flash Cards": "암기 카드", + "Quick Check": "간단 확인", + "No quiz questions generated.": "생성된 퀴즈 문제가 없습니다.", + "Think about your answer, then reveal the solution.": "답을 생각해 본 뒤 풀이를 확인하세요.", + "Open response — click reveal to see the model answer.": "자유롭게 답한 뒤 정답 보기를 눌러 모범 답안을 확인하세요.", + "Hide answer": "정답 숨기기", + "Reveal answer": "정답 보기", + "Section focus": "이 절의 핵심", + "Key takeaway:": "핵심 정리:", + "Go Deeper": "더 깊이 알아보기", + "Your note": "내 노트", + "On this page": "이 페이지의 내용", + "Hide outline": "개요 숨기기", + "Show outline": "개요 보기", + "Chapter index": "장 목록", + "(No chapters yet)": "(아직 장이 없습니다)", + "Theory": "이론", + "Derivation": "유도 과정", + "Practice": "연습", + "Concept": "개념", + "Text": "텍스트", + "Section": "절", + "Callout": "강조 상자", + "Quiz": "퀴즈", + "Note": "노트", + "Figure": "그림", + "Interactive": "상호작용", + "Animation": "애니메이션", + "Timeline": "타임라인", + "Deep Dive": "심화 탐구", + "Code Sandbox": "코드 실행 공간", + "Context": "맥락", + "Connection failed. Please try again.": "연결에 실패했습니다. 다시 시도하세요.", + "Unsupported file type.": "지원하지 않는 파일 형식입니다.", + "File is too large ({{size}}).": "파일이 너무 큽니다({{size}}).", + "Attachments exceed the total upload limit.": "첨부 파일의 총용량이 업로드 한도를 초과합니다.", + "Please analyze the attached image(s) using this chapter as context.": "이 장의 내용을 바탕으로 첨부한 이미지를 분석해 주세요.", + "Please use the attached file(s) and this chapter as context.": "첨부한 파일과 이 장의 내용을 참고해 주세요.", + "Ask a question about this page. The current chapter content is sent to the assistant automatically.": "이 페이지에 대해 질문하세요. 현재 장의 내용이 AI 튜터에게 자동으로 전달됩니다.", + "Home tooltip": "다양한 도구를 활용하는 AI 대화 및 검색입니다.", + "Co-Writer tooltip": "AI 문서 편집기입니다.", + "Book tooltip": "AI를 활용해 학습 교재를 만듭니다.", + "Knowledge tooltip": "학습 페르소나를 관리합니다.", + "Space tooltip": "나만의 학습 자료실입니다.", + "Quiz settings": "퀴즈 설정", + "Animator settings": "애니메이션 설정", + "Visualize settings": "시각화 설정", + "Research settings": "연구 설정", + "Confirm": "확인", + "Confirmed": "확인됨", + "Edit any field to update settings.": "항목을 수정해 설정을 변경하세요.", + "Confirm settings to enable sending.": "설정을 확인하면 메시지를 보낼 수 있습니다.", + "Confirm settings on the right to send.": "오른쪽 설정을 확인한 뒤 메시지를 보내세요.", + "guidedLearning.title": "완전 학습 경로", + "guidedLearning.description": "간격 반복을 활용하는 체계적인 완전 학습", + "guidedLearning.noModules": "아직 학습 모듈이 없습니다", + "guidedLearning.startLearning": "완전 학습 시작", + "guidedLearning.modules": "학습 모듈", + "guidedLearning.knowledgePoints": "학습 요소", + "guidedLearning.knowledgePointsLabel": "학습 요소", + "guidedLearning.mastered": "습득 완료", + "guidedLearning.stages": "학습 단계", + "guidedLearning.ready": "완전 학습을 시작할 준비가 되었습니다", + "guidedLearning.selectModule": "학습 모듈 선택", + "guidedLearning.selectModuleDesc": "완전 학습을 시작할 모듈을 선택하세요", + "guidedLearning.generatingDiagnostic": "진단 문제를 생성하는 중...", + "guidedLearning.connectionError": "연결 오류", + "guidedLearning.stageFailed": "학습 단계 실행에 실패했습니다. 진도를 저장했으며 이 단계를 다시 시도합니다.", + "guidedLearning.moduleProgress": "학습 요소 {{count}}개", + "guidedLearning.masteredProgress": "{{mastered}}/{{total}} 습득 완료", + "guidedLearning.inputPlaceholder": "답안을 입력하세요...", + "guidedLearning.submit": "제출", + "guidedLearning.noModulesLoaded": "불러온 학습 모듈이 없습니다", + "guidedLearning.createModule": "학습 모듈 만들기", + "guidedLearning.tabCurrent": "학습 중", + "guidedLearning.tabCompleted": "완료", + "guidedLearning.tabAll": "전체", + "guidedLearning.continueLearning": "이어서 학습", + "guidedLearning.redo": "다시 학습", + "guidedLearning.redoConfirm": "학습 모듈은 유지하고 진도를 초기화합니다. 계속하시겠어요?", + "guidedLearning.redoFailed": "학습 진도를 초기화하지 못했습니다", + "guidedLearning.delete": "삭제", + "guidedLearning.deleteConfirm": "모든 학습 진도와 모듈을 영구적으로 삭제합니다. 계속하시겠어요?", + "guidedLearning.deleteFailed": "학습 진도를 삭제하지 못했습니다", + "guidedLearning.stage.diagnostic_phase1": "1차 진단", + "guidedLearning.stage.diagnostic_phase2": "2차 진단", + "guidedLearning.stage.metacognitive_intro": "메타인지 안내", + "guidedLearning.stage.plan": "학습 계획", + "guidedLearning.stage.pretest": "사전 평가", + "guidedLearning.stage.explain": "개념 설명", + "guidedLearning.stage.feynman_check": "파인만 학습법 점검", + "guidedLearning.stage.practice_quiz": "연습 퀴즈", + "guidedLearning.stage.practice": "연습", + "guidedLearning.stage.error_diagnosis": "오류 진단", + "guidedLearning.stage.module_test": "모듈 평가", + "guidedLearning.stage.review": "복습", + "guidedLearning.stage.completed": "완료", + "Start learning": "학습 시작", + "guidedLearning.alreadyHasProgress": "이 교재의 학습 기록이 있습니다. 이어서 진행합니다...", + "guidedLearning.tabManual": "직접 입력", + "guidedLearning.tabBook": "교재에서 가져오기", + "guidedLearning.tabKb": "지식 베이스에서 가져오기", + "guidedLearning.tabNotebook": "즐겨찾기에서 가져오기", + "guidedLearning.bookId": "교재 ID", + "guidedLearning.moduleName": "학습 모듈 이름", + "guidedLearning.moduleNamePlaceholder": "예: 대수학 입문", + "guidedLearning.kpNamePlaceholder": "학습 요소 이름", + "guidedLearning.addKp": "학습 요소 추가", + "guidedLearning.noBooks": "사용할 수 있는 교재가 없습니다", + "guidedLearning.chapters": "장", + "guidedLearning.loadingChapters": "장을 불러오는 중...", + "guidedLearning.noChapters": "이 교재에서 장을 찾지 못했습니다", + "guidedLearning.chaptersToImport": "가져올 장 {{count}}개", + "guidedLearning.kps": "학습 요소", + "guidedLearning.noKb": "사용할 수 있는 지식 베이스가 없습니다", + "guidedLearning.noNotebooks": "사용할 수 있는 즐겨찾기 모음이 없습니다", + "guidedLearning.records": "기록", + "guidedLearning.loadingRecords": "기록을 불러오는 중...", + "guidedLearning.noRecords": "이 모음에 저장된 항목이 없습니다", + "guidedLearning.selectRecords": "가져올 기록을 선택하세요", + "guidedLearning.selected": "선택됨", + "guidedLearning.recordsLimited": "처음 20개 기록만 표시합니다.", + "guidedLearning.cancel": "취소", + "guidedLearning.create": "만들기", + "guidedLearning.generateModules": "학습 모듈 생성", + "guidedLearning.moduleNameRequired": "학습 요소를 하나 이상 입력하세요.", + "guidedLearning.untitledModule": "제목 없는 학습 모듈", + "guidedLearning.createModuleFailed": "학습 모듈을 만들지 못했습니다", + "guidedLearning.importBookFailed": "교재에서 가져오지 못했습니다", + "guidedLearning.importKbFailed": "지식 베이스에서 가져오지 못했습니다", + "guidedLearning.importNotebookFailed": "즐겨찾기에서 학습 모듈을 생성하지 못했습니다", + "guidedLearning.loadBooksFailed": "교재를 불러오지 못했습니다", + "guidedLearning.loadKbFailed": "지식 베이스를 불러오지 못했습니다", + "guidedLearning.loadNotebooksFailed": "즐겨찾기 모음을 불러오지 못했습니다", + "guidedLearning.loadChaptersFailed": "장을 불러오지 못했습니다", + "guidedLearning.loadRecordsFailed": "즐겨찾기 기록을 불러오지 못했습니다", + "guidedLearning.comingSoon": "준비 중", + "guidedLearning.kbComingSoon": "지식 베이스에서 가져오는 기능을 준비 중입니다", + "guidedLearning.kbComingSoonDesc": "AI가 지식 베이스에서 학습 모듈을 추출하는 기능입니다.", + "guidedLearning.startLearningFailed": "이 교재의 학습을 시작하지 못했습니다", + "knowledgeType.memory": "암기형", + "knowledgeType.concept": "개념형", + "knowledgeType.procedure": "절차형", + "knowledgeType.design": "설계형", + "errorType.structural": "지식 구조의 공백", + "errorType.deviation": "개념 오해", + "errorType.application": "적용 오류", + "errorType.metacognitive": "메타인지 오류", + "Suggestions could not be generated. Please try again.": "추천 항목을 생성하지 못했습니다. 다시 시도하세요.", + "Assigned resources": "연결된 자료", + "Resources are managed in Learning Space. Assigning them creates references; removing an assignment keeps the original resource.": "자료는 학습 공간에서 관리합니다. 자료를 연결하면 참조가 생성되며, 연결을 해제해도 원본은 유지됩니다.", + "MCP services": "MCP 서비스", + "{{resource}} assignment mode": "{{resource}} 연결 방식", + "Inherit available resources": "사용 가능한 자료 모두 사용", + "Only selected resources": "선택한 자료만 사용", + "Manage library": "자료실 관리", + "Keeps existing access rules. Newly available resources are included automatically.": "기존 접근 규칙을 유지합니다. 새로 사용할 수 있게 된 자료도 자동으로 포함됩니다.", + "Loading resources…": "자료를 불러오는 중…", + "No resources available. Add resources in Learning Space first.": "사용할 수 있는 자료가 없습니다. 먼저 학습 공간에서 자료를 추가하세요.", + "Currently unavailable": "현재 사용할 수 없음", + "Resource missing or access removed": "자료가 없거나 접근 권한이 해제되었습니다", + "{{count}} resources selected": "자료 {{count}}개 선택됨", + "None selected. This resource type is unavailable in this workspace.": "선택한 자료가 없습니다. 이 작업 공간에서는 이 유형의 자료를 사용할 수 없습니다.", + "Changes apply to subsequent turns. Existing conversations and files are kept.": "변경 사항은 다음 대화부터 적용됩니다. 기존 대화와 파일은 유지됩니다.", + "Account resource library. Manage resources here and assign them to workspaces in Settings.": "계정의 자료실입니다. 여기에서 자료를 관리하고 설정에서 작업 공간에 연결하세요.", + "Skill library": "스킬 자료실", + "Account shared skills": "계정 공유 스킬", + "Skills created here belong to this workspace. Same-name skills override shared versions when enabled.": "여기에서 만든 스킬은 이 작업 공간에 속합니다. 이름이 같은 스킬을 사용하면 공유 버전보다 우선 적용됩니다.", + "Shared skills can be assigned to multiple workspaces.": "공유 스킬은 여러 작업 공간에 연결할 수 있습니다.", + "Used by workspaces: {{names}}": "사용 중인 작업 공간: {{names}}", + "account": "계정", + "workspace": "작업 공간", + "builtin": "기본 제공", + "deployment": "배포 환경", + "admin": "관리자", + "Account library": "계정 자료실", + "{{count}} resources selected_one": "자료 {{count}}개 선택됨", + "{{count}} resources selected_other": "자료 {{count}}개 선택됨", + "Workspace instructions": "작업 공간 지침", + "Set learning goals, teaching style and response preferences for this workspace. Leave blank to use the default behavior.": "이 작업 공간의 학습 목표, 설명 방식, 답변 선호 사항을 설정하세요. 비워 두면 기본 설정을 사용합니다.", + "For example: I am learning linear algebra. Explain the geometric intuition before introducing formulas, and give hints before complete solutions.": "예: 선형대수학을 공부하고 있습니다. 공식을 소개하기 전에 기하학적 의미를 설명하고, 전체 풀이를 보여 주기 전에 힌트를 주세요.", + "Applies to Chat, Solve, Ask Questions, Guided Learning, Reading and standard visualizations. Changes take effect on the next turn.": "대화, 문제 풀이, 질문하기, 맞춤 학습, 읽기 및 일반 시각화에 적용됩니다. 변경 사항은 다음 대화부터 반영됩니다.", + "Clear instructions": "지침 지우기", + "{{used}} / {{limit}} characters": "{{used}} / {{limit}}자", + "Set up chat first": "먼저 대화를 설정하세요", + "Connect a provider and choose a language model. Other services are optional.": "제공업체를 연결하고 언어 모델을 선택하세요. 다른 서비스는 선택 사항입니다.", + "1. Connect a provider": "1. 제공업체 연결", + "Add your provider and credentials, then test the connection.": "제공업체와 인증 정보를 추가한 뒤 연결을 테스트하세요.", + "2. Choose a chat model": "2. 대화 모델 선택", + "Home": "홈", + "Welcome to DeepTutor": "DeepTutor에 오신 것을 환영합니다", + "How can I help you today?": "오늘은 어떤 학습을 도와드릴까요?", + "Ask Questions": "질문하기", + "Visualize": "시각화", + "Immersive Reading": "몰입 읽기", + "Immersive Reading tooltip": "문서, 웹페이지, 미디어를 바탕으로 AI 튜터와 함께 읽고 학습합니다.", + "Video Lesson": "동영상 수업", + "Language": "언어", + "Profile": "프로필", + "Profiles": "프로필", + "New workspace": "새 작업 공간", + "Rename workspace": "작업 공간 이름 변경", + "Create workspace": "작업 공간 만들기", + "navigation.home": "홈", + "navigation.chat": "대화", + "navigation.partners": "파트너", + "navigation.learning": "학습", + "navigation.resources": "자료", + "navigation.categories": "주요 메뉴", + "navigation.search": "검색", + "navigation.location": "위치", + "navigation.scopeHint": "{{workspace}}의 콘텐츠", + "navigation.scopeAction": "클릭해 작업 공간 전환", + "navigation.ideasForYou": "추천 학습 아이디어", + "navigation.searchEverything": "검색하거나 이동하기…", + "navigation.jumpTo": "바로 가기", + "navigation.paletteSelect": "선택", + "navigation.paletteOpen": "열기", + "navigation.paletteClose": "닫기", + "navigation.workspace": "작업 공간", + "navigation.newChat": "새 대화", + "navigation.sortLearning": "학습 기록 정렬", + "navigation.lastActive": "최근 활동순", + "navigation.createdTime": "생성일순", + "navigation.allLearning": "모든 학습", + "navigation.viewAll": "전체", + "navigation.allGroups": "모든 그룹", + "navigation.allPartners": "모든 파트너", + "navigation.allResources": "모든 자료", + "navigation.learningRecords": "내 학습", + "navigation.partnerSessions": "대화", + "navigation.createLearning": "새 학습 활동", + "navigation.createLearningDescription": "원하는 학습 방식을 선택하세요. 학습 내용은 해당 작업 공간에 보관됩니다.", + "navigation.learningDescription": "교재, 학습 경로, 연습, 읽기 활동을 한곳에서 확인하세요.", + "navigation.learningFilter": "학습 유형", + "navigation.searchLearning": "내 학습 검색", + "navigation.chatRecords": "대화", + "navigation.searchChats": "대화 검색", + "navigation.searchPartnerSessions": "파트너 대화 검색", + "navigation.sortRecords": "정렬 기준", + "navigation.clearSearch": "검색 지우기", + "navigation.pinned": "고정됨", + "navigation.personalization": "개인 맞춤 설정", + "navigation.allPersonalization": "모든 맞춤 설정", + "navigation.personalizationIntro": "에이전트, 답변 스타일, 스킬, 연결 도구, 메모리를 관리하세요. 계정에 연결되어 모든 작업 공간에서 사용할 수 있습니다.", + "navigation.accountShelf": "모든 작업 공간에서 공유", + "navigation.showRecordChats": "대화 {{count}}개 보기", + "navigation.hideRecordChats": "대화 {{count}}개 숨기기", + "navigation.recordChats": "대화 {{count}}개", + "navigation.noResults": "일치하는 기록이 없습니다", + "navigation.noLearning": "학습 활동을 만들어 시작해 보세요.", + "navigation.noGroups": "파트너를 두 명 이상 모아 보세요.", + "navigation.noSessions": "대화가 여기에 표시됩니다.", + "navigation.loadError": "일부 기록을 불러오지 못했습니다.", + "navigation.sessionUnavailable": "사용할 수 없거나 보관된 대화입니다. 기록에서 찾아보세요.", + "starters.explain": "개념 설명", + "starters.solve": "문제 풀이", + "starters.practice": "연습", + "starters.plan": "학습 계획", + "starters.research": "연구", + "starters.explain.1": "일상 속 예시로 개념 이해하기", + "starters.explain.1.prompt": "일상 속 예시로 개념을 설명해 주세요. 먼저 직관적인 비유를 들고, 정확한 정의를 설명한 뒤, 가장 흔한 오해로 마무리해 주세요. 어떤 개념인지 말하지 않았다면 먼저 물어봐 주세요.", + "starters.explain.2": "처음부터 차근차근 배우기", + "starters.explain.2.prompt": "어떤 주제를 기초부터 배우고 싶습니다. 먼저 무엇이고 왜 중요한지 세 문장으로 설명한 뒤, 핵심 내용을 쉬운 것부터 심화 내용까지 안내해 주세요. 주제나 배경지식을 말하지 않았다면 먼저 질문해 주세요. 질문은 두 개까지만 해 주세요.", + "starters.explain.3": "헷갈리는 두 개념 비교하기", + "starters.explain.3.prompt": "자꾸 헷갈리는 두 개념을 비교해 주세요. 각각의 정의, 핵심 차이, 대표적인 예시를 설명하고 표로 정리해 주세요. 어떤 두 개념인지 말하지 않았다면 먼저 물어봐 주세요.", + "starters.explain.4": "파인만 학습법으로 이해도 확인하기", + "starters.explain.4.prompt": "파인만 학습법으로 개념을 제대로 이해했는지 확인하도록 도와주세요. 먼저 제 말로 설명하게 한 뒤, 틀리거나 빠뜨린 내용을 짚어 주고, 더 깊이 생각할 질문을 하나 해 주세요. 어떤 개념인지 말하지 않았다면 먼저 물어봐 주세요.", + "starters.solve.1": "단계별로 문제 풀어 보기", + "starters.solve.1.prompt": "문제를 한 단계씩 풀도록 도와주세요. 각 단계에서 힌트를 주고 제가 먼저 시도한 뒤 풀이를 보여 주세요. 최종 정답을 미리 알려 주지는 마세요. 문제를 보내지 않았다면 먼저 보내 달라고 해 주세요.", + "starters.solve.2": "내 풀이 검토하기", + "starters.solve.2.prompt": "제 문제 풀이를 검토해 주세요. 단계별로 살펴보면서 어디에서 왜 틀렸는지 찾고, 올바른 풀이를 끝까지 보여 주세요. 문제와 풀이를 보내지 않았다면 먼저 보내 달라고 해 주세요.", + "starters.solve.3": "문제 유형별 풀이 방법 정리하기", + "starters.solve.3.prompt": "특정 문제 유형의 일반적인 풀이 방법을 정리해 주세요. 유형을 알아보는 방법, 핵심 단계, 흔한 실수, 풀이 예시 하나를 포함해 주세요. 어떤 유형인지 말하지 않았다면 먼저 물어봐 주세요.", + "starters.solve.4": "하나의 문제를 여러 방법으로 풀기", + "starters.solve.4.prompt": "같은 문제를 두 가지 이상의 방법으로 풀어 주세요. 각 방법의 핵심 아이디어, 적용할 수 있는 상황, 필요한 풀이 과정을 비교해 주세요. 문제를 보내지 않았다면 먼저 보내 달라고 해 주세요.", + "starters.practice.1": "쉬운 문제부터 어려운 문제까지 연습하기", + "starters.practice.1.prompt": "하나의 주제로 쉬운 것부터 어려운 것까지 연습 문제 다섯 개를 내 주세요. 처음에는 문제만 보여 주고, 제가 답한 뒤 각각 채점하고 설명해 주세요. 주제와 수준을 말하지 않았다면 먼저 물어봐 주세요.", + "starters.practice.2": "배운 내용을 퀴즈로 확인하기", + "starters.practice.2.prompt": "최근 배운 내용으로 짧은 퀴즈를 내 주세요. 객관식과 단답형을 섞어 한 번에 한 문제씩 내고, 제 답에 따라 난이도를 조절해 주세요. 무엇을 배웠는지 확실하지 않다면 먼저 물어봐 주세요.", + "starters.practice.3": "틀린 문제로 응용 연습하기", + "starters.practice.3.prompt": "문제를 틀렸습니다. 먼저 틀린 이유를 파악하도록 도와주고, 같은 개념을 연습할 수 있도록 변형 문제 세 개를 만들어 주세요. 문제를 보내지 않았다면 먼저 보내 달라고 해 주세요.", + "starters.practice.4": "주제별 암기 카드 만들기", + "starters.practice.4.prompt": "한 주제를 간격을 두고 복습하기 좋은 문답형 암기 카드 열 개로 만들어 주세요. 앞면에는 질문을, 뒷면에는 짧은 답을 적어 주세요. 주제를 말하지 않았다면 먼저 물어봐 주세요.", + "starters.plan.1": "학습 계획 세우기", + "starters.plan.1.prompt": "학습 계획을 세워 주세요. 주간 목표를 매일 할 수 있는 작은 과제로 나누고, 복습 시점도 표시해 주세요. 학습 주제, 전체 기간, 하루에 쓸 수 있는 시간을 말하지 않았다면 먼저 질문해 주세요. 질문은 두 개까지만 해 주세요.", + "starters.plan.2": "과목이나 분야의 학습 지도 만들기", + "starters.plan.2.prompt": "과목이나 분야의 학습 지도를 만들어 주세요. 핵심 모듈, 모듈 사이의 선행 관계, 권장 학습 순서를 보여 주세요. 어떤 과목이나 분야인지 말하지 않았다면 먼저 물어봐 주세요.", + "starters.plan.3": "시험 대비 복습 계획 세우기", + "starters.plan.3.prompt": "시험이 다가오고 있습니다. 핵심 내용을 중요도순으로 정리하고, 매일 무엇을 복습하고 어떻게 점검할지 최종 복습 계획을 세워 주세요. 과목, 시험 범위, 남은 일수를 말하지 않았다면 먼저 물어봐 주세요.", + "starters.plan.4": "취약한 부분 찾기", + "starters.plan.4.prompt": "한 주제에서 제가 취약한 부분을 찾을 수 있도록 핵심 질문을 몇 개 해 주고, 무엇부터 보완하면 좋을지 알려 주세요. 주제를 말하지 않았다면 먼저 물어봐 주세요.", + "starters.research.1": "연구 분야의 흐름 파악하기", + "starters.research.1.prompt": "연구 분야의 흐름을 파악하도록 도와주세요. 해결하려는 문제, 주요 학파와 대표 연구, 최신 연구 동향, 먼저 읽으면 좋은 자료를 설명해 주세요. 분야를 말하지 않았다면 먼저 물어봐 주세요.", + "starters.research.2": "함께 논문 자세히 읽기", + "starters.research.2.prompt": "논문을 함께 자세히 읽어 주세요. 연구 질문, 방법, 주요 결과를 요약하고, 새로운 점과 한계를 짚은 뒤, 읽고 나서 답할 수 있어야 하는 질문을 정리해 주세요. 논문을 보내지 않았다면 먼저 보내거나 제목을 알려 달라고 해 주세요.", + "starters.research.3": "쟁점의 양쪽 입장 비교하기", + "starters.research.3.prompt": "한 쟁점의 양쪽 입장에서 주요 주장과 근거, 각각의 전제를 정리하고 종합적인 판단을 제시해 주세요. 쟁점이 무엇인지 말하지 않았다면 먼저 물어봐 주세요.", + "starters.research.4": "문헌 검토 개요 작성하기", + "starters.research.4.prompt": "한 주제의 문헌 검토 개요를 작성해 주세요. 배경, 연구를 분류할 틀, 절별 핵심 내용, 인용할 만한 자료 유형을 포함해 주세요. 주제와 목적을 말하지 않았다면 먼저 물어봐 주세요." +} diff --git a/web/locales/ko/common.json b/web/locales/ko/common.json new file mode 100644 index 000000000..5054c7dc1 --- /dev/null +++ b/web/locales/ko/common.json @@ -0,0 +1,45 @@ +{ + "language.english": "English", + "language.chinese": "中文", + "common.loading": "불러오는 중...", + "common.save": "저장", + "common.cancel": "취소", + "common.close": "닫기", + "Suggestions could not be generated. Please try again.": "추천 항목을 생성하지 못했습니다. 다시 시도하세요.", + "Assigned resources": "연결된 자료", + "Resources are managed in Learning Space. Assigning them creates references; removing an assignment keeps the original resource.": "자료는 학습 공간에서 관리합니다. 자료를 연결하면 참조가 생성되며, 연결을 해제해도 원본은 유지됩니다.", + "MCP services": "MCP 서비스", + "Knowledge bases": "지식 베이스", + "{{resource}} assignment mode": "{{resource}} 연결 방식", + "Inherit available resources": "사용 가능한 자료 모두 사용", + "Only selected resources": "선택한 자료만 사용", + "Manage library": "자료실 관리", + "Keeps existing access rules. Newly available resources are included automatically.": "기존 접근 규칙을 유지합니다. 새로 사용할 수 있게 된 자료도 자동으로 포함됩니다.", + "Loading resources…": "자료를 불러오는 중…", + "No resources available. Add resources in Learning Space first.": "사용할 수 있는 자료가 없습니다. 먼저 학습 공간에서 자료를 추가하세요.", + "Currently unavailable": "현재 사용할 수 없음", + "Resource missing or access removed": "자료가 없거나 접근 권한이 해제되었습니다", + "{{count}} resources selected": "자료 {{count}}개 선택됨", + "None selected. This resource type is unavailable in this workspace.": "선택한 자료가 없습니다. 이 작업 공간에서는 이 유형의 자료를 사용할 수 없습니다.", + "Changes apply to subsequent turns. Existing conversations and files are kept.": "변경 사항은 다음 대화부터 적용됩니다. 기존 대화와 파일은 유지됩니다.", + "Account resource library. Manage resources here and assign them to workspaces in Settings.": "계정의 자료실입니다. 여기에서 자료를 관리하고 설정에서 작업 공간에 연결하세요.", + "Skill library": "스킬 자료실", + "Account shared skills": "계정 공유 스킬", + "Skills created here belong to this workspace. Same-name skills override shared versions when enabled.": "여기에서 만든 스킬은 이 작업 공간에 속합니다. 이름이 같은 스킬을 사용하면 공유 버전보다 우선 적용됩니다.", + "Shared skills can be assigned to multiple workspaces.": "공유 스킬은 여러 작업 공간에 연결할 수 있습니다.", + "Used by workspaces: {{names}}": "사용 중인 작업 공간: {{names}}", + "account": "계정", + "workspace": "작업 공간", + "builtin": "기본 제공", + "deployment": "배포 환경", + "admin": "관리자", + "Account library": "계정 자료실", + "{{count}} resources selected_one": "자료 {{count}}개 선택됨", + "{{count}} resources selected_other": "자료 {{count}}개 선택됨", + "Workspace instructions": "작업 공간 지침", + "Set learning goals, teaching style and response preferences for this workspace. Leave blank to use the default behavior.": "이 작업 공간의 학습 목표, 설명 방식, 답변 선호 사항을 설정하세요. 비워 두면 기본 설정을 사용합니다.", + "For example: I am learning linear algebra. Explain the geometric intuition before introducing formulas, and give hints before complete solutions.": "예: 선형대수학을 공부하고 있습니다. 공식을 소개하기 전에 기하학적 의미를 설명하고, 전체 풀이를 보여 주기 전에 힌트를 주세요.", + "Applies to Chat, Solve, Ask Questions, Guided Learning, Reading and standard visualizations. Changes take effect on the next turn.": "대화, 문제 풀이, 질문하기, 맞춤 학습, 읽기 및 일반 시각화에 적용됩니다. 변경 사항은 다음 대화부터 반영됩니다.", + "Clear instructions": "지침 지우기", + "{{used}} / {{limit}} characters": "{{used}} / {{limit}}자" +} diff --git a/web/locales/pl/app.json b/web/locales/pl/app.json index 473717f62..f08a48fb7 100644 --- a/web/locales/pl/app.json +++ b/web/locales/pl/app.json @@ -6428,5 +6428,6 @@ "Availability refreshed. This parser is still unavailable; check the installation and startup logs, then retry.": "Dostępność odświeżona. Ten parser nadal jest niedostępny; sprawdź instalację i dzienniki uruchamiania, a następnie ponów próbę.", "language.portuguese": "Portugalski", "language.japanese": "Japoński", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/pt/app.json b/web/locales/pt/app.json index d91c8c780..b15409ee6 100644 --- a/web/locales/pt/app.json +++ b/web/locales/pt/app.json @@ -6424,5 +6424,6 @@ "Learning text preview": "Prévia do texto de aprendizado", "Reset learning text": "Redefinir texto de aprendizado", "language.japanese": "日本語", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/tr/app.json b/web/locales/tr/app.json index 4251cc8a7..83a766844 100644 --- a/web/locales/tr/app.json +++ b/web/locales/tr/app.json @@ -6406,5 +6406,6 @@ "Learning text preview": "Öğrenme metni önizlemesi", "Reset learning text": "Öğrenme metnini sıfırla", "language.portuguese": "Português", - "language.japanese": "日本語" + "language.japanese": "日本語", + "language.korean": "한국어" } diff --git a/web/locales/uk/app.json b/web/locales/uk/app.json index 38600878b..51526838c 100644 --- a/web/locales/uk/app.json +++ b/web/locales/uk/app.json @@ -6428,5 +6428,6 @@ "Availability refreshed. This parser is still unavailable; check the installation and startup logs, then retry.": "Доступність оновлено. Цей парсер досі недоступний; перевірте встановлення та журнали запуску й повторіть спробу.", "language.portuguese": "Португальська", "language.japanese": "Японська", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/vi/app.json b/web/locales/vi/app.json index ca0eb07b6..4534802e6 100644 --- a/web/locales/vi/app.json +++ b/web/locales/vi/app.json @@ -6406,5 +6406,6 @@ "Reset learning text": "Đặt lại văn bản học tập", "language.portuguese": "Português", "language.japanese": "日本語", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/locales/zh/app.json b/web/locales/zh/app.json index e408b321b..9f33e2c1e 100644 --- a/web/locales/zh/app.json +++ b/web/locales/zh/app.json @@ -6406,5 +6406,6 @@ "Reset learning text": "重置学习文字", "language.portuguese": "葡萄牙语", "language.japanese": "日语", - "language.turkish": "Türkçe" + "language.turkish": "Türkçe", + "language.korean": "한국어" } diff --git a/web/scripts/i18n_audit.mjs b/web/scripts/i18n_audit.mjs index 717e772e0..5488e6f83 100644 --- a/web/scripts/i18n_audit.mjs +++ b/web/scripts/i18n_audit.mjs @@ -92,11 +92,13 @@ function translationKeys(file, content) { } const REQUIRED_LOCALES = ["en", "zh", "fr", "de", "uk", "vi", "tr"]; -// French and Ukrainian are deliberately partial. i18next falls back to the +// French, Ukrainian and Korean are deliberately partial. i18next falls back to the // English resource per key; these floors make a coverage regression visible. const MIN_USED_COVERAGE = new Map([ ["fr", 0.65], ["uk", 0.75], + // Initial Korean contribution covers navigation, common actions and learning. + ["ko", 0.07], ]); function hasTranslation(entries, pluralForms, key) { diff --git a/web/tests/korean-locale-quality.test.ts b/web/tests/korean-locale-quality.test.ts new file mode 100644 index 000000000..3f26b3621 --- /dev/null +++ b/web/tests/korean-locale-quality.test.ts @@ -0,0 +1,50 @@ +import test from 'node:test' +import assert from 'node:assert/strict' +import fs from 'node:fs' +import path from 'node:path' + +function findLocalesRoot(): string { + let dir = __dirname + for (let i = 0; i < 8; i++) { + const candidate = path.join(dir, 'locales') + if (fs.existsSync(path.join(candidate, 'ko', 'common.json'))) return candidate + dir = path.dirname(dir) + } + throw new Error('could not locate locales/ko/app.json') +} + +const localesRoot = findLocalesRoot() +const readCatalog = (locale: string, file = 'app.json') => + JSON.parse(fs.readFileSync(path.join(localesRoot, locale, file), 'utf8')) as Record< + string, + string + > + +// Match entire placeholder tokens, including brace count and formatting. +const placeholders = (value: string) => + [...value.matchAll(/\{\{[^{}]+\}\}|(? match[0]).sort() + +test('Korean catalogs preserve source keys and all placeholder tokens', () => { + for (const file of ['app.json', 'common.json']) { + const source = readCatalog('en', file) + for (const [key, value] of Object.entries(readCatalog('ko', file))) { + assert.ok(Object.hasOwn(source, key), `Unknown key: ${key}`) + assert.ok(value.trim(), `Empty translation: ${key}`) + assert.deepEqual(placeholders(value), placeholders(source[key]), key) + } + } +}) + +test('Korean common catalog is complete and agrees with the app catalog', () => { + const common = readCatalog('ko', 'common.json') + const app = readCatalog('ko') + assert.deepEqual(Object.keys(common).sort(), Object.keys(readCatalog('en', 'common.json')).sort()) + for (const [key, value] of Object.entries(common)) assert.equal(value, app[key], key) +}) + +test('every locale offers Korean by its endonym', () => { + for (const locale of fs.readdirSync(localesRoot)) { + if (!fs.existsSync(path.join(localesRoot, locale, 'app.json'))) continue + assert.equal(readCatalog(locale)['language.korean'], '한국어', locale) + } +}) diff --git a/web/tests/language-preferences.test.ts b/web/tests/language-preferences.test.ts index c460fc1bd..95272830a 100644 --- a/web/tests/language-preferences.test.ts +++ b/web/tests/language-preferences.test.ts @@ -31,6 +31,10 @@ test("the locale registry accepts every supported language", () => { assert.equal(resolveResponseLanguage(raw, "en"), "tr"); } assert.equal(getLocale("tr"), "tr-TR"); + for (const raw of ["ko", "ko-KR", "ko_KR", "Korean", "한국어"]) { + assert.equal(normalizeLanguage(raw), "ko"); + } + assert.equal(getLocale("ko"), "ko-KR"); }); test("response language remains independent from the interface language", () => { diff --git a/web/tests/partial-locale-fallback.spec.ts b/web/tests/partial-locale-fallback.spec.ts index e4a01e70d..9fbcbf0f7 100644 --- a/web/tests/partial-locale-fallback.spec.ts +++ b/web/tests/partial-locale-fallback.spec.ts @@ -10,6 +10,20 @@ it("uses French copy now that the catalog is complete", async () => { expect(i18n.t("common.save")).toBe("Enregistrer"); }); +it("loads Korean translations, preserves interpolation and falls back per key", async () => { + const i18n = initI18n("ko-KR"); + await ensureLanguage("ko"); + await i18n.changeLanguage("ko"); + + expect(i18n.t("common.save")).toBe("저장"); + expect(i18n.t("guidedLearning.title")).toBe("완전 학습 경로"); + expect(i18n.t("{{count}} resources selected", { count: 3 })).toBe("자료 3개 선택됨"); + expect(i18n.t("guidedLearning.masteredProgress", { mastered: 2, total: 5 })).toBe("2/5 습득 완료"); + expect(i18n.t("Speech synthesis and transcription models with saved providers.")).toBe( + "Speech synthesis and transcription models with saved providers.", + ); +}); + it("uses English copy for a key missing from a partial locale", async () => { const i18n = initI18n("en"); i18n.addResourceBundle(