diff --git a/_patch_api5.py b/_patch_api5.py deleted file mode 100644 index 028a0fee..00000000 --- a/_patch_api5.py +++ /dev/null @@ -1,80 +0,0 @@ -import pathlib - -p = pathlib.Path("src/services/ApiService.ts") -s = p.read_text(encoding="utf-8") - -anchor = " getWaHelpQueue: () =>" -if anchor not in s: - # PR5 worktree predates PR4 — anchor on the weekly board instead - anchor = " getWeeklyBoard: () =>" -idx = s.index(anchor) -end = s.index("\n },", idx) -addition = """ - // ---- Wave F items 66-69: reputation, awards, AMAs, requests ---- - getMyReputation: () => - apiFetch('/community/reputation/me/'), - getReputationTiers: () => - apiFetch<{ tiers: { name: string; min_honor: number }[] }>( - '/community/reputation/tiers/', - ), - getAwards: (username?: string) => { - const qs = username ? `?username=${encodeURIComponent(username)}` : ''; - return apiFetch>(`/community/awards/${qs}`); - }, - grantAward: (data: { username: string; kind: string; reason?: string }) => - apiFetch('/community/awards/grant/', { - method: 'POST', - body: JSON.stringify(data), - }), - getAmas: () => apiFetch<{ count: number; results: AmaListRow[] }>('/community/amas/'), - getAma: (id: number) => apiFetch(`/community/amas/${id}/`), - createAma: (data: { title: string; description: string; starts_at: string; ends_at: string }) => - apiFetch('/community/amas/', { - method: 'POST', - body: JSON.stringify(data), - }), - askAmaQuestion: (sessionId: number, question: string) => - apiFetch<{ id: number }>(`/community/amas/${sessionId}/questions/`, { - method: 'POST', - body: JSON.stringify({ question }), - }), - answerAmaQuestion: (questionId: number, answer: string) => - apiFetch<{ id: number; answer: string }>( - `/community/amas/questions/${questionId}/answer/`, - { method: 'POST', body: JSON.stringify({ answer }) }, - ), - upvoteAmaQuestion: (questionId: number) => - apiFetch<{ upvotes: number; voted: boolean }>( - `/community/amas/questions/${questionId}/upvote/`, - { method: 'POST' }, - ), - getProblemRequests: () => - apiFetch>('/community/problem-requests/'), - createProblemRequest: (data: { title: string; description: string }) => - apiFetch('/community/problem-requests/', { - method: 'POST', - body: JSON.stringify(data), - }), - voteProblemRequest: (requestId: number) => - apiFetch<{ votes: number; voted: boolean }>( - `/community/problem-requests/${requestId}/vote/`, - { method: 'POST' }, - ),""" -s = s[:end] + addition + s[end:] - -# imports -old = " WaHelpRow,\n WikiListRow," -if old in s: - new = " AmaDetailRow,\n AmaListRow,\n AwardRow,\n ProblemRequestRow,\n ReputationProfile,\n WaHelpRow,\n WikiListRow," -# placeholder — replaced below -else: - new = None - -# The PR5 tree lacks the publishing imports; anchor on CalibrationProfile. -if new is None: - old = " CalibrationProfile,\n TeamStandingsResponse," - new = " AmaDetailRow,\n AmaListRow,\n AwardRow,\n CalibrationProfile,\n ProblemRequestRow,\n ReputationProfile,\n TeamStandingsResponse," -assert old in s, f"import anchor missing: {old!r}" -s = s.replace(old, new, 1) -p.write_text(s, encoding="utf-8", newline="\n") -print("api ok") diff --git a/backend/classroom/test_wave_e_reports.py b/backend/classroom/test_wave_e_reports.py index ca59ef97..bf8a32f3 100644 --- a/backend/classroom/test_wave_e_reports.py +++ b/backend/classroom/test_wave_e_reports.py @@ -95,7 +95,14 @@ class EffortAndHeatmapTest(ReportsBase): """Items 43/44: the analytics derivations.""" def test_effort_board_ranks_grinders(self): - # st attempts 3 times (2 active days); lz a single AC. + # Widen the window so the pinned instants always fall inside, + # regardless of the current time of day. + Assignment.objects.filter(pk=self.assignment.pk).update( + available_from=timezone.now() - timedelta(days=3), + due_at=timezone.now() + timedelta(days=3), + ) + + # st attempts 4 times (2 active days); lz a single AC. # The two "old day" submissions are pinned to fixed clock times on # explicit dates (10:00 and 10:30 two days ago, 10:00 yesterday): # minutes_ago offsets straddle midnight depending on the wall clock @@ -107,10 +114,13 @@ def pinned(days_ago: int, minute: int = 0): self._submit_at(self.student, WA, 10, pinned(2, 0)) self._submit_at(self.student, WA, 20, pinned(2, 30)) self._submit_at(self.student, WA, 30, pinned(1, 0)) + # The third distinct day is pinned too: a minutes_ago offset can + # land on either side of midnight UTC depending on the wall clock. + self._submit_at(self.student, WA, 40, pinned(1, 30)) self._submit(self.lazy, AC, 100) board = effort_board(self.classroom) rows = {r["username"]: r for r in board["results"]} - self.assertEqual(rows["st"]["attempts"], 3) + self.assertEqual(rows["st"]["attempts"], 4) self.assertEqual(rows["st"]["active_days"], 2) self.assertEqual(rows["st"]["problems_solved"], 0) self.assertEqual(rows["lz"]["problems_solved"], 1) diff --git a/backend/problems/statement_quality.py b/backend/problems/statement_quality.py new file mode 100644 index 00000000..0301ebd1 --- /dev/null +++ b/backend/problems/statement_quality.py @@ -0,0 +1,229 @@ +"""Statement quality tooling (wave F items 123/124/134). + +- ``statement_lint`` (item 123) — rule-based checks on a problem's + statements: missing Input/Output/Constraints sections, bilingual parity + drift (samples mentioned in one locale only), unbalanced math + delimiters, wall-of-text sentences, sample-reference mismatches. +- ``readability`` (item 134) — Flesch reading-ease adapted per language + (RO syllable counting by vowel groups, EN classic formula) plus a grade + band and bilingual consistency check. +- ``translation_gaps`` (item 124) — the EN+translation sidecar report: + which localized fields are missing/present per locale, powering the + dual-pane authoring UI. +""" + +from __future__ import annotations + +import re + +SECTION_KEYS = ("input", "output", "constraints", "examples") +#: A statement should mention examples; RO uses both "exemplu" and "example". +EXAMPLE_WORDS = ("example", "exemplu", "sample", "Date de intrare") +MAX_SENTENCE_WORDS = 60 + + +def _statement_text(problem, locale: str) -> str: + value = ( + problem.statement_i18n.get(locale, "") + if isinstance(problem.statement_i18n, dict) + else "" + ) + return value or "" + + +def statement_lint(problem) -> list[dict]: + """Item 123 — bilingual statement lint; one warning dict per finding.""" + warnings: list[dict] = [] + locales = [] + for locale in ("en", "ro"): + text = _statement_text(problem, locale) + title = ( + problem.title_i18n.get(locale, "") + if isinstance(problem.title_i18n, dict) + else "" + ) + if text or title: + locales.append(locale) + lowered = text.lower() + for key in SECTION_KEYS: + if key == "examples": + if text and not any(word.lower() in lowered for word in EXAMPLE_WORDS): + warnings.append( + { + "code": f"missing_examples_{locale}", + "locale": locale, + "message": ( + "The statement never mentions examples — add a " + "worked Example section." + ), + } + ) + continue + if text and key not in lowered: + warnings.append( + { + "code": f"missing_{key}_{locale}", + "locale": locale, + "message": ( + f"No '{key}' section found — statements should name " + "Input, Output and Constraints explicitly." + ), + } + ) + # Unbalanced inline math delimiters ($...$ needs an even count). + dollars = text.count("$") + if dollars % 2 == 1: + warnings.append( + { + "code": f"unbalanced_math_{locale}", + "locale": locale, + "message": "Odd number of '$' delimiters — inline math is unbalanced.", + } + ) + # Wall-of-text: any single sentence over MAX_SENTENCE_WORDS words. + for sentence in re.split(r"[.!?]", text): + if len(sentence.split()) > MAX_SENTENCE_WORDS: + warnings.append( + { + "code": f"runaway_sentence_{locale}", + "locale": locale, + "message": ( + f"A sentence exceeds {MAX_SENTENCE_WORDS} words — " + "split it for learner readability." + ), + } + ) + break + # Parity drift: a locale present in the title but missing its statement. + for locale in ("en", "ro"): + title = ( + problem.title_i18n.get(locale, "") + if isinstance(problem.title_i18n, dict) + else "" + ) + statement = _statement_text(problem, locale) + if title and not statement: + warnings.append( + { + "code": f"statement_missing_{locale}", + "locale": locale, + "message": ( + f"The {locale.upper()} title exists but the statement is " + "empty — finish the translation before submitting." + ), + } + ) + return warnings + + +# ---------------------------------------------------------------- item 134 + + +def _syllables_ro(word: str) -> int: + """Romanian syllables ≈ vowel groups (a e i o u ă â î), minimum 1.""" + groups = re.findall(r"[aeiouăâî]+", word.lower()) + return max(1, len(groups)) + + +def _syllables_en(word: str) -> int: + """Classic English heuristic; silent trailing e discounted.""" + word = word.lower().strip(".,;:!?") + vowels = re.findall(r"[aeiouy]+", word) + count = len(vowels) + if word.endswith("e") and count > 1: + count -= 1 + return max(1, count) + + +def _sentences(text: str) -> int: + return max(1, len(re.findall(r"[.!?](?:\s|$)", text))) + + +def readability_score(text: str, locale: str = "en") -> dict: + """Flesch reading ease adapted per language. + + EN: 206.835 − 1.015·(words/sentence) − 84.6·(syllables/word). + RO: same skeleton with the vowel-group syllable counter (the standard + adaptation for Romance orthographies). + """ + words = re.findall(r"[A-Za-zĂÂÎȘȚăâîșț]+", text) + word_count = len(words) + if word_count == 0: + return {"score": None, "band": None, "words": 0, "sentences": 0} + counter = _syllables_ro if locale == "ro" else _syllables_en + syllables = sum(counter(word) for word in words) + sentence_count = _sentences(text) + score = ( + 206.835 + - 1.015 * (word_count / sentence_count) + - 84.6 * (syllables / word_count) + ) + score = round(max(0.0, min(100.0, score)), 1) + if score >= 80: + band = "very_easy" + elif score >= 60: + band = "plain" + elif score >= 40: + band = "standard" + elif score >= 20: + band = "difficult" + else: + band = "very_difficult" + return { + "score": score, + "band": band, + "words": word_count, + "sentences": sentence_count, + } + + +def problem_readability(problem) -> dict: + """Item 134 — per-locale readability of the statement + a consistency + verdict (locales within 15 points read consistently).""" + report: dict = {"locales": {}, "consistent": None} + scores = [] + for locale in ("en", "ro"): + text = _statement_text(problem, locale) + if not text: + continue + entry = readability_score(text, locale) + report["locales"][locale] = entry + scores.append(entry["score"]) + if len(scores) == 2: + report["consistent"] = abs(scores[0] - scores[1]) <= 15 + return report + + +# ---------------------------------------------------------------- item 124 + + +SIDECAR_FIELDS = ("title", "statement", "hints") + + +def translation_gaps(problem) -> dict: + """Item 124 — the EN+translation sidecar report: per-locale presence + of every localizable field, so the dual-pane authoring UI can show + exactly what remains to translate.""" + + def field(locale: str, name: str) -> bool: + if name == "title": + value = ( + problem.title_i18n.get(locale, "") + if isinstance(problem.title_i18n, dict) + else "" + ) + elif name == "hints": + hints = problem.hints_ro if locale == "ro" else problem.hints_en + value = "\n".join(hints or []) + else: + value = _statement_text(problem, locale) + return bool((value or "").strip()) + + locales = {} + for locale in ("en", "ro"): + locales[locale] = {name: field(locale, name) for name in SIDECAR_FIELDS} + return { + "fields": list(SIDECAR_FIELDS), + "locales": locales, + "complete": all(all(present.values()) for present in locales.values()), + } diff --git a/backend/problems/statement_quality_views.py b/backend/problems/statement_quality_views.py new file mode 100644 index 00000000..24d01322 --- /dev/null +++ b/backend/problems/statement_quality_views.py @@ -0,0 +1,201 @@ +"""Statement-quality API (wave F items 123/124/134) + wizard scaffold (121). + +- ``POST /problems/{id}/statement-lint/`` warnings (author/verifier only) +- ``GET /problems/{id}/readability/`` per-locale reading ease +- ``GET /problems/{id}/translation-status/`` the sidecar gaps report +- ``GET /problems/wizard/steps/`` the visual wizard checklist +""" + +from rest_framework import permissions, status +from rest_framework.response import Response +from rest_framework.views import APIView + +from users.models import User + +from .models import Problem +from .statement_quality import ( + problem_readability, + statement_lint, + translation_gaps, +) + +WIZARD_STEPS = [ + { + "key": "basics", + "title_en": "Basics", + "description_en": "Title, statement, difficulty, tags.", + "fields": ["title_i18n", "statement_i18n", "difficulty", "tags"], + }, + { + "key": "limits", + "title_en": "Limits & languages", + "description_en": "Time/memory limits and allowed languages.", + "fields": [ + "default_time_limit_ms", + "default_memory_limit_kb", + "allowed_languages", + ], + }, + { + "key": "samples", + "title_en": "Samples", + "description_en": "At least two worked examples.", + "fields": ["test_cases.is_sample"], + }, + { + "key": "tests", + "title_en": "Hidden tests", + "description_en": "The full suite beyond the samples.", + "fields": ["test_cases"], + }, + { + "key": "reference", + "title_en": "Reference solution", + "description_en": "The model solution powering hacks & expected outputs.", + "fields": ["reference_solution_code", "reference_language"], + }, + { + "key": "translation", + "title_en": "Translation sidecar", + "description_en": "RO mirror of every localized field.", + "fields": ["statement_i18n.ro", "hints_ro"], + }, + { + "key": "review", + "title_en": "Review & submit", + "description_en": "Lint clean, readability band, then send for verification.", + "fields": [], + }, +] + + +def _authoring_gate(user) -> bool: + return bool( + user + and user.is_authenticated + and ( + user.is_superuser + or user.is_staff + or getattr(user, "role", "") + in ( + User.Roles.ADMIN, + User.Roles.PROBLEM_VERIFIER, + User.Roles.PROBLEM_CREATOR, + User.Roles.TEACHER, + ) + ) + ) + + +class StatementLintView(APIView): + """Item 123 — run the statement linter on one problem.""" + + permission_classes = [permissions.IsAuthenticated] + + def post(self, request, problem_id): + problem = Problem.objects.filter(pk=problem_id).first() + if problem is None: + return Response({"detail": "Not found."}, status=status.HTTP_404_NOT_FOUND) + if not _authoring_gate(request.user): + return Response( + {"detail": "Authors and verifiers only."}, + status=status.HTTP_403_FORBIDDEN, + ) + warnings = statement_lint(problem) + return Response({"count": len(warnings), "warnings": warnings}) + + +class ReadabilityView(APIView): + """Item 134 — the per-locale readability report.""" + + permission_classes = [permissions.IsAuthenticated] + + def get(self, request, problem_id): + problem = Problem.objects.filter(pk=problem_id).first() + if problem is None: + return Response({"detail": "Not found."}, status=status.HTTP_404_NOT_FOUND) + if not _authoring_gate(request.user): + return Response( + {"detail": "Authors and verifiers only."}, + status=status.HTTP_403_FORBIDDEN, + ) + return Response(problem_readability(problem)) + + +class TranslationStatusView(APIView): + """Item 124 — the sidecar gaps report (which locale fields are missing).""" + + permission_classes = [permissions.IsAuthenticated] + + def get(self, request, problem_id): + problem = Problem.objects.filter(pk=problem_id).first() + if problem is None: + return Response({"detail": "Not found."}, status=status.HTTP_404_NOT_FOUND) + if not _authoring_gate(request.user): + return Response( + {"detail": "Authors and verifiers only."}, + status=status.HTTP_403_FORBIDDEN, + ) + return Response(translation_gaps(problem)) + + +class WizardStepsView(APIView): + """Item 121 — the visual authoring wizard: the ordered step checklist + plus a live per-step completion probe for one problem (?problem_id=).""" + + permission_classes = [permissions.IsAuthenticated] + + def get(self, request): + if not _authoring_gate(request.user): + return Response( + {"detail": "Authors and verifiers only."}, + status=status.HTTP_403_FORBIDDEN, + ) + problem = None + raw_id = request.query_params.get("problem_id") + if raw_id: + problem = Problem.objects.filter(pk=raw_id).first() + if problem is None: + return Response( + {"detail": "Not found."}, status=status.HTTP_404_NOT_FOUND + ) + steps = [] + for step in WIZARD_STEPS: + entry = dict(step) + entry["complete"] = ( + _step_complete(step["key"], problem) if problem else False + ) + steps.append(entry) + return Response({"count": len(steps), "steps": steps}) + + +def _step_complete(key: str, problem) -> bool: + + if key == "basics": + statement = ( + problem.statement_i18n.get("en", "") + if isinstance(problem.statement_i18n, dict) + else "" + ) + return bool(statement.strip()) + if key == "limits": + return problem.default_time_limit_ms > 0 and problem.default_memory_limit_kb > 0 + if key == "samples": + return problem.test_cases.filter(is_sample=True).count() >= 2 + if key == "tests": + return problem.test_cases.count() >= 3 + if key == "reference": + return bool(problem.reference_solution_code and problem.reference_language) + if key == "translation": + statement_ro = ( + problem.statement_i18n.get("ro", "") + if isinstance(problem.statement_i18n, dict) + else "" + ) + return bool(statement_ro.strip()) + if key == "review": + return problem.status in ( + Problem.ProblemStatus.PENDING_APPROVAL, + Problem.ProblemStatus.APPROVED, + ) + return False diff --git a/backend/problems/test_statement_quality.py b/backend/problems/test_statement_quality.py new file mode 100644 index 00000000..47b74cb3 --- /dev/null +++ b/backend/problems/test_statement_quality.py @@ -0,0 +1,306 @@ +"""Wave F — statement quality tests (items 121/123/124/134). + +The statement linter, readability scoring, the translation sidecar report +and the wizard steps checklist. +""" + +from django.test import TestCase +from rest_framework import status +from rest_framework.test import APIClient + +from problems.models import Problem +from problems.models import TestCase as ProblemTestCase +from problems.statement_quality import ( + problem_readability, + readability_score, + statement_lint, + translation_gaps, +) +from users.models import User + + +class QualityBase(TestCase): + def setUp(self): + self.author = User.objects.create_user( + username="author", password="pw", role=User.Roles.PROBLEM_CREATOR + ) + self.verifier = User.objects.create_user( + username="verifier", password="pw", role=User.Roles.PROBLEM_VERIFIER + ) + self.basic = User.objects.create_user(username="basic", password="pw") + self.client = APIClient() + self.problem = Problem.objects.create( + title_i18n={"en": "Sum", "ro": "Suma"}, + statement_i18n={ + "en": "Read n numbers. Print their sum.", + "ro": "Citește n numere. Afișează suma lor.", + }, + status=Problem.ProblemStatus.DRAFT, + author=self.author, + ) + + def mk_problem(self, **kwargs): + defaults = dict( + title_i18n={"en": "T"}, + statement_i18n={"en": "s"}, + status=Problem.ProblemStatus.DRAFT, + ) + defaults.update(kwargs) + return Problem.objects.create(**defaults) + + +class StatementLintTests(QualityBase): + def test_sections_and_examples_warnings(self): + problem = self.mk_problem( + statement_i18n={"en": "Just read things and compute. No sections."} + ) + warnings = statement_lint(problem) + codes = [w["code"] for w in warnings] + self.assertIn("missing_input_en", codes) + self.assertIn("missing_output_en", codes) + self.assertIn("missing_constraints_en", codes) + self.assertIn("missing_examples_en", codes) + + def test_clean_statement_no_warnings(self): + problem = self.mk_problem( + statement_i18n={ + "en": ( + "Input: n. Output: sum. Constraints: 1 <= n <= 10. " + "Example: 1 2 -> 3." + ), + "ro": ( + "Input: n. Output: suma. Constraints: 1 <= n <= 10. " + "Exemplu: 1 2 -> 3." + ), + } + ) + self.assertEqual(statement_lint(problem), []) + + def test_unbalanced_math(self): + problem = self.mk_problem( + statement_i18n={ + "en": "Compute $x + 1 for $n cases with $ extra. Input. Output. Example." + } + ) + codes = [w["code"] for w in statement_lint(problem)] + self.assertIn("unbalanced_math_en", codes) + + def test_runaway_sentence(self): + words = " ".join(["word"] * 80) + problem = self.mk_problem( + statement_i18n={"en": f"Input. Output. Constraints. Example. {words}."} + ) + codes = [w["code"] for w in statement_lint(problem)] + self.assertIn("runaway_sentence_en", codes) + + def test_statement_missing_but_title_present(self): + problem = self.mk_problem( + title_i18n={"en": "EN", "ro": "RO"}, statement_i18n={"en": "text"} + ) + codes = [w["code"] for w in statement_lint(problem)] + self.assertIn("statement_missing_ro", codes) + + def test_endpoint_gate_and_404(self): + self.client.force_authenticate(self.basic) + response = self.client.post( + f"/api/v1/problems/problems/{self.problem.id}/statement-lint/" + ) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + self.client.force_authenticate(self.author) + response = self.client.post( + f"/api/v1/problems/problems/{self.problem.id}/statement-lint/" + ) + self.assertEqual(response.status_code, 200, response.data) + self.assertIn("warnings", response.data) + response = self.client.post("/api/v1/problems/problems/999999/statement-lint/") + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + + +class ReadabilityTests(QualityBase): + def test_easy_english(self): + result = readability_score("The cat sat on the mat. The dog ran.", "en") + self.assertIsNotNone(result["score"]) + self.assertIn(result["band"], ("very_easy", "plain")) + + def test_difficult_english(self): + text = ( + "Notwithstanding the preponderance of institutional arrangements, " + "the amelioration of fundamental perceptual phenomena necessitates " + "considerable methodological sophistication and rigorous analysis." + ) + result = readability_score(text, "en") + self.assertLess(result["score"], 40) + + def test_romanian_vowel_groups(self): + result = readability_score( + "Ana are mere. Ion citește o carte lungă și frumoasă.", "ro" + ) + self.assertIsNotNone(result["score"]) + self.assertGreater(result["score"], 0) + + def test_empty_text(self): + self.assertEqual( + readability_score("", "en"), + { + "score": None, + "band": None, + "words": 0, + "sentences": 0, + }, + ) + + def test_problem_report_consistency(self): + problem = self.mk_problem( + statement_i18n={ + "en": "Read n. Print the sum. Easy.", + "ro": "Citește n. Afișează suma. Ușor.", + } + ) + report = problem_readability(problem) + self.assertIn("en", report["locales"]) + self.assertIn("ro", report["locales"]) + self.assertIsNotNone(report["consistent"]) + + def test_single_locale_report(self): + problem = self.mk_problem(statement_i18n={"en": "Only english text here."}) + report = problem_readability(problem) + self.assertIsNone(report["consistent"]) + + def test_endpoint(self): + self.client.force_authenticate(self.verifier) + response = self.client.get( + f"/api/v1/problems/problems/{self.problem.id}/readability/" + ) + self.assertEqual(response.status_code, 200) + self.assertIn("locales", response.data) + response = self.client.get("/api/v1/problems/problems/999999/readability/") + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + self.client.force_authenticate(self.basic) + response = self.client.get( + f"/api/v1/problems/problems/{self.problem.id}/readability/" + ) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + + +class TranslationStatusTests(QualityBase): + def test_full_coverage(self): + problem = self.mk_problem( + title_i18n={"en": "T", "ro": "T"}, + statement_i18n={"en": "body", "ro": "corp"}, + hints_en=["think"], + hints_ro=["gândește"], + ) + report = translation_gaps(problem) + self.assertTrue(report["complete"]) + self.assertTrue(all(report["locales"]["ro"].values())) + + def test_gap_detection(self): + report = translation_gaps(self.problem) # no hints set + self.assertFalse(report["complete"]) + self.assertFalse(report["locales"]["ro"]["hints"]) + + def test_endpoint(self): + self.client.force_authenticate(self.author) + response = self.client.get( + f"/api/v1/problems/problems/{self.problem.id}/translation-status/" + ) + self.assertEqual(response.status_code, 200, response.data) + self.assertIn("fields", response.data) + response = self.client.get( + "/api/v1/problems/problems/999999/translation-status/" + ) + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + self.client.force_authenticate(self.basic) + response = self.client.get( + f"/api/v1/problems/problems/{self.problem.id}/translation-status/" + ) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + + +class WizardStepsTests(QualityBase): + def test_steps_listing(self): + self.client.force_authenticate(self.author) + response = self.client.get("/api/v1/problems/wizard/steps/") + self.assertEqual(response.status_code, 200, response.data) + self.assertEqual(response.data["count"], 7) + keys = [step["key"] for step in response.data["steps"]] + self.assertEqual(keys[0], "basics") + self.assertEqual(keys[-1], "review") + + def test_completion_probe(self): + problem = self.mk_problem( + title_i18n={"en": "T", "ro": "R"}, + statement_i18n={"en": "statement text", "ro": "text românesc"}, + default_time_limit_ms=1000, + default_memory_limit_kb=262144, + reference_solution_code="print(1)", + reference_language="python3", + ) + ProblemTestCase.objects.create( + problem=problem, + input_data="1", + expected_output_data="2", + is_sample=True, + order=0, + ) + ProblemTestCase.objects.create( + problem=problem, + input_data="2", + expected_output_data="3", + is_sample=True, + order=1, + ) + ProblemTestCase.objects.create( + problem=problem, input_data="3", expected_output_data="4", order=2 + ) + self.client.force_authenticate(self.author) + response = self.client.get( + f"/api/v1/problems/wizard/steps/?problem_id={problem.id}" + ) + self.assertEqual(response.status_code, 200) + by_key = {step["key"]: step["complete"] for step in response.data["steps"]} + self.assertTrue(by_key["basics"]) + self.assertTrue(by_key["limits"]) + self.assertTrue(by_key["samples"]) + self.assertTrue(by_key["tests"]) + self.assertTrue(by_key["reference"]) + self.assertTrue(by_key["translation"]) + self.assertFalse(by_key["review"]) # still DRAFT + + def test_gate_and_unknown_problem(self): + response = self.client.get("/api/v1/problems/wizard/steps/") + self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED) + self.client.force_authenticate(self.basic) + response = self.client.get("/api/v1/problems/wizard/steps/") + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) + self.client.force_authenticate(self.author) + response = self.client.get("/api/v1/problems/wizard/steps/?problem_id=999999") + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + + +class BandEdgeTests(QualityBase): + def test_very_difficult_band(self): + # Dense polysyllabic text scores < 20 -> very_difficult. + text = ( + "Interdisciplinary methodological considerations notwithstanding, " + "quintessential institutional amelioration necessitates considerable " + "sophistication, notwithstanding preponderating perceptual phenomena." + ) + result = readability_score(text, "en") + self.assertEqual(result["band"], "very_difficult") + self.assertLess(result["score"], 20) + + def test_difficult_band(self): + # Moderately dense text lands in the 20-40 "difficult" band. + text = ( + "Scientists discovered a new method last year. The technique helps " + "farmers grow more food. The evaluation demonstrated considerable " + "improvement across agriculture." + ) + result = readability_score(text, "en") + self.assertEqual(result["band"], "difficult") + + def test_unknown_wizard_key_returns_false(self): + from problems.statement_quality_views import _step_complete + + self.assertFalse(_step_complete("nonexistent", self.problem)) diff --git a/backend/problems/urls.py b/backend/problems/urls.py index 8424fa58..19753ce1 100644 --- a/backend/problems/urls.py +++ b/backend/problems/urls.py @@ -25,6 +25,7 @@ ) from .presubmit import PreSubmitLintView, PreSubmitSamplesView from .strength import TestStrengthView +from . import statement_quality_views from .random_problem import RandomProblemView app_name = "problems" @@ -117,4 +118,25 @@ # the "random" path can never collide with the /{pk}/ detail route. path("random/", RandomProblemView.as_view(), name="problem-random"), path("", include(router.urls)), + # Wave F items 121/123/124/134 — statement quality + wizard scaffold. + path( + "wizard/steps/", + statement_quality_views.WizardStepsView.as_view(), + name="wizard_steps", + ), + path( + "problems//statement-lint/", + statement_quality_views.StatementLintView.as_view(), + name="statement_lint", + ), + path( + "problems//readability/", + statement_quality_views.ReadabilityView.as_view(), + name="statement_readability", + ), + path( + "problems//translation-status/", + statement_quality_views.TranslationStatusView.as_view(), + name="translation_status", + ), ] diff --git a/docs/BACKLOG.md b/docs/BACKLOG.md index 67033572..79c7e93c 100644 --- a/docs/BACKLOG.md +++ b/docs/BACKLOG.md @@ -27,7 +27,7 @@ Item-level tracker of record. Statuses: `shipped (PR #N)` · `in-flight (wave X) 113. Plagiarism detection (MOSS/JPlag) · (vote trust-weighting shipped Wave C — RAT-10) 114. Boilerplate detection · 115. Multi-account heuristics · 116. AI-solution labeling/policy · 117. Abuse queue + SLA · 118. Moderation appeals + audit trail · 119. Bug bounty page · 120. Verifiable participation certificates — shipped (Wave D, certifications/attestats: leaderboard-derived atestats — rated-contest participation, rating milestones, solve milestones — public UUID verification, print/PDF sheet, revocation ledger; contest medals were the first increment, Wave C CON-11) ## I. Authoring & content ops — wave F -121. Visual authoring wizard · 122. Testcase generator DSL · 123. Statement linter · 124. EN+translation sidecar authoring · 125. Problem versioning/changelog · (statement revision history shipped Wave C — UXP-4) · 126. Variant families · 127. Polygon-format import · 128. Statement attachments · 129. Advanced search w/ saved queries · 130. Source attribution + licensing field (UGC CC BY-SA + school DPA + ImportSource permission ledger + provenance fields shipped Wave C) · 131. Scheduled content drops · 132. Author analytics · 133. Testcase bounties · 134. Readability scoring +121. Visual authoring wizard — shipped (Wave F: /problems/wizard/steps/ — the 7-step checklist (basics→limits→samples→tests→reference→translation→review) with live per-step completion probes via ?problem_id=; /author/wizard page) · 122. Testcase generator DSL · 123. Statement linter — shipped (Wave F: statement_quality.statement_lint — missing Input/Output/Constraints/Example sections, unbalanced $-math, runaway sentences, title-without-statement drift; POST /problems/{id}/statement-lint/ + wizard Review panel) · 124. EN+translation sidecar authoring — shipped (Wave F: translation_gaps — per-locale field presence (title/statement/hints) powering the wizard's dual-pane sidecar panel; GET /problems/{id}/translation-status/) · 125. Problem versioning/changelog · (statement revision history shipped Wave C — UXP-4) · 126. Variant families · 127. Polygon-format import · 128. Statement attachments · 129. Advanced search w/ saved queries · 130. Source attribution + licensing field (UGC CC BY-SA + school DPA + ImportSource permission ledger + provenance fields shipped Wave C) · 131. Scheduled content drops · 132. Author analytics · 133. Testcase bounties · 134. Readability scoring — shipped (Wave F: Flesch reading-ease per locale (RO vowel-group syllables, EN classic) + 5 bands + bilingual consistency verdict; GET /problems/{id}/readability/ + wizard panel) ## J. Ops, performance, reliability — wave G 135. Judge queue transparency page · 136. Autoscaling workers · 137. Contest priority lanes · 138. Load-test harness · 139. Status page · 140. Blue-green deploy · 141. Nightly prod-like e2e · 142. Restore drills · 143. Cost dashboard · 144. Edge protection · 145. Error tracking productized diff --git a/e2e/mock-api/server.mjs b/e2e/mock-api/server.mjs index ddeeb33d..f2db424a 100644 --- a/e2e/mock-api/server.mjs +++ b/e2e/mock-api/server.mjs @@ -1818,6 +1818,78 @@ const server = createServer((req, res) => { return; } + // ---- Wave F statement quality (items 121/123/124/134) ---- + if (path === '/api/v1/problems/wizard/steps/') { + if (!sessionUser(req)) { + json(res, 401, { detail: 'Authentication credentials were not provided.' }); + return; + } + json(res, 200, { + count: 7, + steps: [ + { key: 'basics', title_en: 'Basics', description_en: 'd', fields: [], complete: true }, + { key: 'limits', title_en: 'Limits', description_en: 'd', fields: [], complete: true }, + { key: 'samples', title_en: 'Samples', description_en: 'd', fields: [], complete: false }, + { key: 'tests', title_en: 'Tests', description_en: 'd', fields: [], complete: false }, + { + key: 'reference', + title_en: 'Reference', + description_en: 'd', + fields: [], + complete: false, + }, + { + key: 'translation', + title_en: 'Translation', + description_en: 'd', + fields: [], + complete: false, + }, + { key: 'review', title_en: 'Review', description_en: 'd', fields: [], complete: false }, + ], + }); + return; + } + const stmtLint = path.match(/^\/api\/v1\/problems\/problems\/(\d+)\/statement-lint\/$/); + if (req.method === 'POST' && stmtLint) { + json(res, 200, { + count: 1, + warnings: [ + { + code: 'missing_constraints_en', + locale: 'en', + message: "No 'constraints' section found.", + }, + ], + }); + return; + } + const readability = path.match(/^\/api\/v1\/problems\/problems\/(\d+)\/readability\/$/); + if (req.method === 'GET' && readability) { + json(res, 200, { + locales: { + en: { score: 71.2, band: 'plain', words: 40, sentences: 3 }, + ro: { score: 66.0, band: 'plain', words: 38, sentences: 3 }, + }, + consistent: true, + }); + return; + } + const translationStatus = path.match( + /^\/api\/v1\/problems\/problems\/(\d+)\/translation-status\/$/, + ); + if (req.method === 'GET' && translationStatus) { + json(res, 200, { + fields: ['title', 'statement', 'hints'], + locales: { + en: { title: true, statement: true, hints: true }, + ro: { title: true, statement: true, hints: false }, + }, + complete: false, + }); + return; + } + // ---- Wave F recognition (items 66-69) ---- if (path === '/api/v1/community/reputation/me/') { if (!sessionUser(req)) { diff --git a/e2e/wave-f-authoring.spec.ts b/e2e/wave-f-authoring.spec.ts new file mode 100644 index 00000000..3c881267 --- /dev/null +++ b/e2e/wave-f-authoring.spec.ts @@ -0,0 +1,37 @@ +import { test, expect } from '@playwright/test'; + +// Wave F items 121/123/124/134 (mock mode): the authoring wizard page — +// step checklist, lint warnings, readability bands, translation gaps. + +async function login(page: import('@playwright/test').Page) { + await page.goto('/login'); + await page.fill('#login-username', 'e2e_tester'); + await page.fill('#login-password', 'correct-horse-battery-staple'); + await page.getByRole('button', { name: 'Login', exact: true }).click(); + await expect(page.getByText('e2e_tester', { exact: true })).toBeVisible(); +} + +test.describe('wave F authoring quality (mock api)', () => { + test('wizard: steps checklist with completion ticks', async ({ page }) => { + await login(page); + await page.goto('/author/wizard'); + await expect(page.getByTestId('wizard-step-basics')).toBeVisible(); + await expect(page.getByTestId('wizard-step-check-basics')).toHaveText('✓'); + await expect(page.getByTestId('wizard-step-check-samples')).toHaveText('○'); + // Seven steps render in order. + const keys = ['basics', 'limits', 'samples', 'tests', 'reference', 'translation', 'review']; + for (const key of keys) { + await expect(page.getByTestId(`wizard-step-${key}`)).toBeVisible(); + } + }); + + test('wizard: entering a draft id loads lint, readability and translation', async ({ page }) => { + await login(page); + await page.goto('/author/wizard'); + await page.getByTestId('wizard-problem-input').fill('9'); + await expect(page.getByTestId('wizard-lint-missing_constraints_en')).toBeVisible(); + await expect(page.getByTestId('wizard-readability-en')).toContainText('71.2'); + await expect(page.getByTestId('wizard-readability-en')).toContainText('plain'); + await expect(page.getByTestId('wizard-translation')).toContainText('hints ✗'); + }); +}); diff --git a/public/locales/ar.json b/public/locales/ar.json index 1a88fecf..fc6b4f53 100644 --- a/public/locales/ar.json +++ b/public/locales/ar.json @@ -1544,5 +1544,19 @@ "requests_empty": "لا طلبات بعد", "requests_empty_hint": "صوّت للمسائل التي تريد رؤيتها — المؤلفون يراقبون هذه اللوحة.", "amas_subtitle": "أسئلة وأجوبة مع الحاصلين على ميداليات، لوحة طلبات المسائل وسمعتك.", - "nav_amas": "المجتمع" + "nav_amas": "المجتمع", + "wizard_title": "معالج التأليف", + "wizard_subtitle": "سبع خطوات من الفكرة إلى التقديم — مع فحوصات إنجاز مباشرة.", + "wizard_problem_id": "معرف المسألة المسودة (اختياري)", + "wizard_new_problem": "ابدأ مسألة جديدة →", + "wizard_creators_only": "المعالج مخصص لمؤلفي المسائل والمدققين.", + "wizard_lint_title": "فحص نص المسألة", + "wizard_lint_clean": "لا تحذيرات — نص المسألة مقروء جيدًا.", + "wizard_readability_title": "قابلية القراءة", + "wizard_readability_consistent": "النسخ اللغوية متسقة في القراءة.", + "wizard_readability_drift": "النسخ اللغوية تتباين في مستوى القراءة — بسّط الأصعب.", + "wizard_translation_title": "الترجمة المرافقة", + "wizard_translation_complete": "جميع الحقول المترجمة مكتملة.", + "wizard_translation_gaps": "بعض الحقول المترجمة مفقودة — أكملها قبل التقديم.", + "nav_author_wizard": "معالج التأليف" } diff --git a/public/locales/bg.json b/public/locales/bg.json index 5750fcb1..285dc361 100644 --- a/public/locales/bg.json +++ b/public/locales/bg.json @@ -1544,5 +1544,19 @@ "requests_empty": "Още няма заявки", "requests_empty_hint": "Гласувайте за задачите, които искате да видите — авторите следят тази дъска.", "amas_subtitle": "AMA с медалисти, дъската със заявки за задачи и вашата репутация.", - "nav_amas": "Общност" + "nav_amas": "Общност", + "wizard_title": "Помощник за създаване", + "wizard_subtitle": "Седем стъпки от идеята до подаването — с проверка на готовността на живо.", + "wizard_problem_id": "Id на черновата (по избор)", + "wizard_new_problem": "Започни нова задача →", + "wizard_creators_only": "Помощникът е за създатели и проверители на задачи.", + "wizard_lint_title": "Линт на условието", + "wizard_lint_clean": "Няма предупреждения — условието се чете добре.", + "wizard_readability_title": "Четимост", + "wizard_readability_consistent": "Езиковите версии се четат съгласувано.", + "wizard_readability_drift": "Езиковите версии се различават — опростете по-трудната.", + "wizard_translation_title": "Съпроводен превод", + "wizard_translation_complete": "Всички локализирани полета са попълнени.", + "wizard_translation_gaps": "Липсват някои локализирани полета — попълнете преди подаване.", + "nav_author_wizard": "Помощник за създаване" } diff --git a/public/locales/ca.json b/public/locales/ca.json index 844dc6f5..a067efaf 100644 --- a/public/locales/ca.json +++ b/public/locales/ca.json @@ -1544,5 +1544,19 @@ "requests_empty": "Encara no hi ha sol·licituds", "requests_empty_hint": "Vota els problemes que vols veure — els autors miren aquest tauler.", "amas_subtitle": "AMAs amb medallistes, el tauler de sol·licituds i la teva reputació.", - "nav_amas": "Comunitat" + "nav_amas": "Comunitat", + "wizard_title": "Assistent de creació", + "wizard_subtitle": "Set passos de la idea a l'enviament — amb verificacions en directe.", + "wizard_problem_id": "Id de l'esborrany (opcional)", + "wizard_new_problem": "Comença un problema nou →", + "wizard_creators_only": "L'assistènt és per a creadors i verificadors de problemes.", + "wizard_lint_title": "Lint de l'enunciat", + "wizard_lint_clean": "Sense avisos — l'enunciat es llegeix bé.", + "wizard_readability_title": "Llegibilitat", + "wizard_readability_consistent": "Els idiomes es llegeixen coherentment.", + "wizard_readability_drift": "Els idiomes divergeixen en el nivell — simplifica el més difícil.", + "wizard_translation_title": "Traducció acompanyant", + "wizard_translation_complete": "Tots els camps localitzats estan complets.", + "wizard_translation_gaps": "Falten alguns camps localitzats — completa'ls abans d'enviar.", + "nav_author_wizard": "Assistent de creació" } diff --git a/public/locales/de.json b/public/locales/de.json index c4c645cc..61e633a5 100644 --- a/public/locales/de.json +++ b/public/locales/de.json @@ -1544,5 +1544,19 @@ "requests_empty": "Noch keine Anfragen", "requests_empty_hint": "Stimme für die Aufgaben ab, die du sehen willst — Autoren beobachten dieses Brett.", "amas_subtitle": "AMAs mit Medaillengewinnern, das Aufgabenwunsch-Brett und deine Reputation.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Autoren-Assistent", + "wizard_subtitle": "Sieben Schritte von der Idee zur Einreichung — mit Live-Prüfung.", + "wizard_problem_id": "Entwurfs-ID (optional)", + "wizard_new_problem": "Neue Aufgabe starten →", + "wizard_creators_only": "Der Assistent ist für Aufgabenautoren und -verifizierer.", + "wizard_lint_title": "Aufgaben-Lint", + "wizard_lint_clean": "Keine Warnungen — die Aufgabe liest sich gut.", + "wizard_readability_title": "Lesbarkeit", + "wizard_readability_consistent": "Die Sprachen lesen sich konsistent.", + "wizard_readability_drift": "Die Sprachen driften im Leseniveau — vereinfache die schwierigere.", + "wizard_translation_title": "Begleitübersetzung", + "wizard_translation_complete": "Alle lokalisierten Felder sind gefüllt.", + "wizard_translation_gaps": "Einige lokalisierte Felder fehlen — vor der Einreichung ergänzen.", + "nav_author_wizard": "Autoren-Assistent" } diff --git a/public/locales/el.json b/public/locales/el.json index 4bc83b30..bf03bddb 100644 --- a/public/locales/el.json +++ b/public/locales/el.json @@ -1544,5 +1544,19 @@ "requests_empty": "Κανένα αίτημα ακόμη", "requests_empty_hint": "Ψηφίστε τις ασκήσεις που θέλετε να δείτε — οι συγγραφείς παρακολουθούν αυτό τον πίνακα.", "amas_subtitle": "AMA με νομισματούχους, ο πίνακας αιτημάτων ασκήσεων και η φήμη σας.", - "nav_amas": "Κοινότητα" + "nav_amas": "Κοινότητα", + "wizard_title": "Οδηγός δημιουργίας", + "wizard_subtitle": "Επτά βήματα από την ιδέα until την υποβολή — με ζωντανούς ελέγχους.", + "wizard_problem_id": "Id πρόχειρου (προαιρετικό)", + "wizard_new_problem": "Ξεκινήστε νέα άσκηση →", + "wizard_creators_only": "Ο οδηγός είναι για συγγραφείς και ελεγκτές ασκήσεων.", + "wizard_lint_title": "Lint εκφώνησης", + "wizard_lint_clean": "Καμία προειδοποίηση — η εκφώνηση διαβάζεται καλά.", + "wizard_readability_title": "Αναγνωσιμότητα", + "wizard_readability_consistent": "Οι γλωσσικές εκδόσεις διαβάζονται με συνέπεια.", + "wizard_readability_drift": "Οι γλωσσικές εκδόσεις αποκλίνουν — απλοποιήστε τη δυσκολότερη.", + "wizard_translation_title": "Συνοδευτική μετάφραση", + "wizard_translation_complete": "Όλα τα τοπικοποιημένα πεδία συμπληρώθηκαν.", + "wizard_translation_gaps": "Λείπουν ορισμένα τοπικοποιημένα πεδία — συμπληρώστε πριν την υποβολή.", + "nav_author_wizard": "Οδηγός δημιουργίας" } diff --git a/public/locales/en.json b/public/locales/en.json index 94ad094e..28bcec96 100644 --- a/public/locales/en.json +++ b/public/locales/en.json @@ -1544,5 +1544,19 @@ "requests_empty": "No requests yet", "requests_empty_hint": "Vote for the problems you want to see — authors watch this board.", "amas_subtitle": "AMAs with medalists, the problem-request board and your reputation.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Authoring wizard", + "wizard_subtitle": "Seven steps from idea to submission — with live completion checks.", + "wizard_problem_id": "Draft problem id (optional)", + "wizard_new_problem": "Start a new problem →", + "wizard_creators_only": "The wizard is for problem creators and verifiers.", + "wizard_lint_title": "Statement lint", + "wizard_lint_clean": "No warnings — the statement reads well.", + "wizard_readability_title": "Readability", + "wizard_readability_consistent": "Locales read consistently.", + "wizard_readability_drift": "Locales drift in reading level — simplify the harder one.", + "wizard_translation_title": "Translation sidecar", + "wizard_translation_complete": "Every localized field is filled.", + "wizard_translation_gaps": "Some localized fields are missing — finish them before submitting.", + "nav_author_wizard": "Authoring wizard" } diff --git a/public/locales/es.json b/public/locales/es.json index b32752c4..ddfb8e27 100644 --- a/public/locales/es.json +++ b/public/locales/es.json @@ -1544,5 +1544,19 @@ "requests_empty": "Aún no hay solicitudes", "requests_empty_hint": "Vota por los problemas que quieres ver — los autores miran este tablero.", "amas_subtitle": "AMAs con medallistas, el tablero de solicitudes y tu reputación.", - "nav_amas": "Comunidad" + "nav_amas": "Comunidad", + "wizard_title": "Asistente de creación", + "wizard_subtitle": "Siete pasos de la idea al envío — con verificaciones de finalización en vivo.", + "wizard_problem_id": "Id del borrador (opcional)", + "wizard_new_problem": "Empezar un problema nuevo →", + "wizard_creators_only": "El asistente es para creadores y verificadores de problemas.", + "wizard_lint_title": "Lint del enunciado", + "wizard_lint_clean": "Sin avisos — el enunciado se lee bien.", + "wizard_readability_title": "Legibilidad", + "wizard_readability_consistent": "Los idiomas leen de forma consistente.", + "wizard_readability_drift": "Los idiomas difieren en nivel de lectura — simplifica el más difícil.", + "wizard_translation_title": "Traducción acompañante", + "wizard_translation_complete": "Todos los campos localizados están completos.", + "wizard_translation_gaps": "Faltan campos localizados — complétalos antes de enviar.", + "nav_author_wizard": "Asistente de creación" } diff --git a/public/locales/fa.json b/public/locales/fa.json index efce588b..f2460690 100644 --- a/public/locales/fa.json +++ b/public/locales/fa.json @@ -1544,5 +1544,19 @@ "requests_empty": "هنوز درخواستی نیست", "requests_empty_hint": "برای مسئله‌هایی که می‌خواهید ببینید رأی دهید — نویسندگان این تابلو را دنبال می‌کنند.", "amas_subtitle": "AMA با مدال‌آوران، تابلوی درخواست مسئله و اعتبار شما.", - "nav_amas": "انجمن" + "nav_amas": "انجمن", + "wizard_title": "ویزارد نگارش", + "wizard_subtitle": "هفت گام از ایده تا ارسال — با بررسی زنده کامل بودن.", + "wizard_problem_id": "شناسه مسئله پیش‌نویس (اختیاری)", + "wizard_new_problem": "شروع مسئله جدید →", + "wizard_creators_only": "ویزارد برای نویسندگان و راستی‌آزمایان مسئله است.", + "wizard_lint_title": "لینت صورت مسئله", + "wizard_lint_clean": "بدون هشدار — صورت مسئله خوب خوانده می‌شود.", + "wizard_readability_title": "خوانایی", + "wizard_readability_consistent": "نسخه‌های زبانی همخوان خوانده می‌شوند.", + "wizard_readability_drift": "نسخه‌های زبانی در سطح خوانایی واگرا هستند — سخت‌تر را ساده کنید.", + "wizard_translation_title": "ترجمه همراه", + "wizard_translation_complete": "همه فیلدهای بومی‌سازی‌شده پر شده‌اند.", + "wizard_translation_gaps": "برخی فیلدهای بومی‌سازی‌شده غایب‌اند — پیش از ارسال کامل کنید.", + "nav_author_wizard": "ویزارد نگارش" } diff --git a/public/locales/fr.json b/public/locales/fr.json index dfcd411c..9557d0e7 100644 --- a/public/locales/fr.json +++ b/public/locales/fr.json @@ -1544,5 +1544,19 @@ "requests_empty": "Pas encore de demandes", "requests_empty_hint": "Votez pour les problèmes que vous voulez voir — les auteurs surveillent ce tableau.", "amas_subtitle": "AMA avec médaillés, le tableau des demandes et votre réputation.", - "nav_amas": "Communauté" + "nav_amas": "Communauté", + "wizard_title": "Assistant de création", + "wizard_subtitle": "Sept étapes de l'idée à la soumission — avec vérifications en direct.", + "wizard_problem_id": "Id du brouillon (optionnel)", + "wizard_new_problem": "Commencer un nouveau problème →", + "wizard_creators_only": "L'assistant est pour les auteurs et vérificateurs de problèmes.", + "wizard_lint_title": "Analyse de l'énoncé", + "wizard_lint_clean": "Aucun avertissement — l'énoncé se lit bien.", + "wizard_readability_title": "Lisibilité", + "wizard_readability_consistent": "Les langues se lisent de façon cohérente.", + "wizard_readability_drift": "Les langues divergent en niveau — simplifiez la plus difficile.", + "wizard_translation_title": "Traduction associée", + "wizard_translation_complete": "Tous les champs localisés sont remplis.", + "wizard_translation_gaps": "Des champs localisés manquent — complétez-les avant d'envoyer.", + "nav_author_wizard": "Assistant de création" } diff --git a/public/locales/hi.json b/public/locales/hi.json index 14572195..148a8816 100644 --- a/public/locales/hi.json +++ b/public/locales/hi.json @@ -1544,5 +1544,19 @@ "requests_empty": "अभी कोई अनुरोध नहीं", "requests_empty_hint": "जो प्रॉब्लम देखना चाहते हैं उनके लिए वोट करें — लेखक इस बोर्ड को देखते हैं।", "amas_subtitle": "पदक विजेताओं के AMA, प्रॉब्लम-अनुरोध बोर्ड और आपकी प्रतिष्ठा।", - "nav_amas": "समुदाय" + "nav_amas": "समुदाय", + "wizard_title": "रचना विज़ार्ड", + "wizard_subtitle": "विचार से सबमिशन तक सात चरण — लाइव पूर्णता जाँच के साथ।", + "wizard_problem_id": "ड्राफ़्ट प्रॉब्लम आईडी (वैकल्पिक)", + "wizard_new_problem": "नया प्रॉब्लम शुरू करें →", + "wizard_creators_only": "विज़ार्ड प्रॉब्लम लेखकों और सत्यापकों के लिए है।", + "wizard_lint_title": "स्टेटमेंट लिंट", + "wizard_lint_clean": "कोई चेतावनी नहीं — कथन अच्छा पढ़ा जाता है।", + "wizard_readability_title": "पठनीयता", + "wizard_readability_consistent": "भाषा संस्करण लगातार पढ़े जाते हैं।", + "wizard_readability_drift": "भाषा संस्करणों का स्तर भिन्न है — कठिन को सरल करें।", + "wizard_translation_title": "साइडकार अनुवाद", + "wizard_translation_complete": "सभी स्थानीयकृत फ़ील्ड भरे गए हैं।", + "wizard_translation_gaps": "कुछ स्थानीयकृत फ़ील्ड गायब हैं — सबमिट करने से पहले पूरे करें।", + "nav_author_wizard": "रचना विज़ार्ड" } diff --git a/public/locales/hr.json b/public/locales/hr.json index 5d87aeb9..87b44492 100644 --- a/public/locales/hr.json +++ b/public/locales/hr.json @@ -1544,5 +1544,19 @@ "requests_empty": "Još nema zahtjeva", "requests_empty_hint": "Glasaj za zadatke koje želiš vidjeti — autori prate ovu ploču.", "amas_subtitle": "AMA s osvajačima medalja, ploča zahtjeva i tvoja reputacija.", - "nav_amas": "Zajednica" + "nav_amas": "Zajednica", + "wizard_title": "Čarobnjak za izradu", + "wizard_subtitle": "Sedam koraka od ideje do predaje — s provjerama dovršenosti uživo.", + "wizard_problem_id": "Id nacrta (neobavezno)", + "wizard_new_problem": "Započni novi zadatak →", + "wizard_creators_only": "Čarobnjak je za autore i verifikatore zadataka.", + "wizard_lint_title": "Lint teksta zadatka", + "wizard_lint_clean": "Nema upozorenja — tekst se dobro čita.", + "wizard_readability_title": "Čitljivost", + "wizard_readability_consistent": "Jezici se čitaju dosljedno.", + "wizard_readability_drift": "Jezici se razlikuju u razini — pojednostavi teži.", + "wizard_translation_title": "Prateći prijevod", + "wizard_translation_complete": "Sva lokalizirana polja su ispunjena.", + "wizard_translation_gaps": "Nedostaju neka lokalizirana polja — popuni ih prije predaje.", + "nav_author_wizard": "Čarobnjak za izradu" } diff --git a/public/locales/hu.json b/public/locales/hu.json index ac5bc656..cc88c472 100644 --- a/public/locales/hu.json +++ b/public/locales/hu.json @@ -1544,5 +1544,19 @@ "requests_empty": "Még nincs kérés", "requests_empty_hint": "Szavazz azokra a feladatokra, amelyeket látni akarsz — a szerzők figyelik ezt a táblát.", "amas_subtitle": "AMA-k érmesekkel, a feladatkérés-tábla és a reputációd.", - "nav_amas": "Közösség" + "nav_amas": "Közösség", + "wizard_title": "Szerzői varázsló", + "wizard_subtitle": "Hét lépés az ötlettől a beküldésig — élő készültség-ellenőrzéssel.", + "wizard_problem_id": "Vázlat azonosító (opcionális)", + "wizard_new_problem": "Új feladat indítása →", + "wizard_creators_only": "A varázsló feladatszerzőknek és -ellenőröknek szól.", + "wizard_lint_title": "Feladatszöveg-lint", + "wizard_lint_clean": "Nincs figyelmeztetés — a szöveg jól olvasható.", + "wizard_readability_title": "Olvashatóság", + "wizard_readability_consistent": "A nyelvváltozatok konzisztensen olvashatók.", + "wizard_readability_drift": "A nyelvváltozatok szintje eltér — egyszerűsítsd a nehezebbet.", + "wizard_translation_title": "Kísérő fordítás", + "wizard_translation_complete": "Minden honosított mező ki van töltve.", + "wizard_translation_gaps": "Néhány honosított mező hiányzik — egészítsd ki beküldés előtt.", + "nav_author_wizard": "Szerzői varázsló" } diff --git a/public/locales/id.json b/public/locales/id.json index 4a85524f..5bbd1f75 100644 --- a/public/locales/id.json +++ b/public/locales/id.json @@ -1544,5 +1544,19 @@ "requests_empty": "Belum ada permintaan", "requests_empty_hint": "Pilih soal yang ingin kamu lihat — penulis mengawasi papan ini.", "amas_subtitle": "AMA dengan peraih medali, papan permintaan soal, dan reputasimu.", - "nav_amas": "Komunitas" + "nav_amas": "Komunitas", + "wizard_title": "Wizard pembuatan", + "wizard_subtitle": "Tujuh langkah dari ide hingga pengiriman — dengan pemeriksaan langsung.", + "wizard_problem_id": "Id draf soal (opsional)", + "wizard_new_problem": "Mulai soal baru →", + "wizard_creators_only": "Wizard ini untuk pembuat dan verifikator soal.", + "wizard_lint_title": "Lint soal", + "wizard_lint_clean": "Tidak ada peringatan — soal mudah dibaca.", + "wizard_readability_title": "Keterbacaan", + "wizard_readability_consistent": "Versi bahasa terbaca konsisten.", + "wizard_readability_drift": "Versi bahasa berbeda tingkat bacanya — sederhanakan yang lebih sulit.", + "wizard_translation_title": "Terjemahan pendamping", + "wizard_translation_complete": "Semua field terlokalisasi terisi.", + "wizard_translation_gaps": "Beberapa field terlokalisasi belum ada — lengkapi sebelum mengirim.", + "nav_author_wizard": "Wizard pembuatan" } diff --git a/public/locales/it.json b/public/locales/it.json index d5dce2ed..9e8a18b3 100644 --- a/public/locales/it.json +++ b/public/locales/it.json @@ -1544,5 +1544,19 @@ "requests_empty": "Ancora nessuna richiesta", "requests_empty_hint": "Vota i problemi che vuoi vedere — gli autori guardano questa bacheca.", "amas_subtitle": "AMA con medagliati, la bacheca delle richieste e la tua reputazione.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Procedura guidata di creazione", + "wizard_subtitle": "Sette passi dall'idea all'invio — con controlli di completamento in tempo reale.", + "wizard_problem_id": "Id della bozza (opzionale)", + "wizard_new_problem": "Inizia un nuovo problema →", + "wizard_creators_only": "La procedura è per autori e verificatori di problemi.", + "wizard_lint_title": "Lint dell'enunciato", + "wizard_lint_clean": "Nessun avviso — l'enunciato si legge bene.", + "wizard_readability_title": "Leggibilità", + "wizard_readability_consistent": "Le lingue si leggono in modo coerente.", + "wizard_readability_drift": "Le lingue divergono nel livello — semplifica la più difficile.", + "wizard_translation_title": "Traduzione a fianco", + "wizard_translation_complete": "Tutti i campi localizzati sono compilati.", + "wizard_translation_gaps": "Mancano alcuni campi localizzati — completali prima di inviare.", + "nav_author_wizard": "Creazione guidata" } diff --git a/public/locales/ja.json b/public/locales/ja.json index a5b53249..f6b8fcf4 100644 --- a/public/locales/ja.json +++ b/public/locales/ja.json @@ -1544,5 +1544,19 @@ "requests_empty": "まだリクエストはありません", "requests_empty_hint": "見たい問題に投票しよう — 作成者がこのボードをチェックしています。", "amas_subtitle": "メダリストAMA、問題リクエストボード、そしてあなたのレピュテーション。", - "nav_amas": "コミュニティ" + "nav_amas": "コミュニティ", + "wizard_title": "作成ウィザード", + "wizard_subtitle": "アイデアから提出までの7ステップ — 完了チェック付き。", + "wizard_problem_id": "下書き問題ID(任意)", + "wizard_new_problem": "新しい問題を始める →", + "wizard_creators_only": "ウィザードは問題作成者と検証者向けです。", + "wizard_lint_title": "問題文リント", + "wizard_lint_clean": "警告なし — 問題文は読みやすい。", + "wizard_readability_title": "読みやすさ", + "wizard_readability_consistent": "各言語版の一貫した読みやすさです。", + "wizard_readability_drift": "言語版で読みやすさがばらつきます — 難しい方を簡潔に。", + "wizard_translation_title": "サイドカー翻訳", + "wizard_translation_complete": "すべてのローカライズ済みフィールドが入力済みです。", + "wizard_translation_gaps": "未入力のローカライズフィールドがあります — 提出前に完了してください。", + "nav_author_wizard": "作成ウィザード" } diff --git a/public/locales/kk.json b/public/locales/kk.json index a4b9d358..9bb3b60b 100644 --- a/public/locales/kk.json +++ b/public/locales/kk.json @@ -1544,5 +1544,19 @@ "requests_empty": "Әзірге сұраулар жоқ", "requests_empty_hint": "Көргіңіз келетін есептерге дауыс беріңіз — авторлар осы тақтаны бақылайды.", "amas_subtitle": "Медалистермен AMA, есеп сұраулар тақтасы және репутацияңыз.", - "nav_amas": "Қауымдастық" + "nav_amas": "Қауымдастық", + "wizard_title": "Құру шебері", + "wizard_subtitle": "Идеядан жібергенге дейін жеті қадам — толықтықтың тікелей тексеруімен.", + "wizard_problem_id": "Нобай есеп id-і (міндетті емес)", + "wizard_new_problem": "Жаңа есеп бастау →", + "wizard_creators_only": "Шебер есеп авторлары мен тексерушілерге арналған.", + "wizard_lint_title": "Шарт линті", + "wizard_lint_clean": "Ескерту жоқ — шарт жақсы оқылады.", + "wizard_readability_title": "Оқылымдылық", + "wizard_readability_consistent": "Тіл нұсқалары біркелкі оқылады.", + "wizard_readability_drift": "Тіл нұсқаларының деңгейі алшақ — қиынырағын жеңілдет.", + "wizard_translation_title": "Қосалқы аударма", + "wizard_translation_complete": "Барлық локализацияланған өрістер толтырылған.", + "wizard_translation_gaps": "Кейбір локализацияланған өрістер жоқ — жібермес бұрын толтыр.", + "nav_author_wizard": "Құру шебері" } diff --git a/public/locales/ko.json b/public/locales/ko.json index d4ff9417..0a3c70e2 100644 --- a/public/locales/ko.json +++ b/public/locales/ko.json @@ -1544,5 +1544,19 @@ "requests_empty": "아직 요청 없음", "requests_empty_hint": "보고 싶은 문제에 투표하세요 — 작성자들이 이 게시판을 지켜봅니다.", "amas_subtitle": "메달리스트 AMA, 문제 요청 게시판, 그리고 당신의 평판.", - "nav_amas": "커뮤니티" + "nav_amas": "커뮤니티", + "wizard_title": "출제 마법사", + "wizard_subtitle": "아이디어에서 제출까지 일곱 단계 — 실시간 완료 확인 포함.", + "wizard_problem_id": "초안 문제 ID (선택)", + "wizard_new_problem": "새 문제 시작 →", + "wizard_creators_only": "마법사는 문제 작성자와 검증자를 위한 것입니다.", + "wizard_lint_title": "지문 린트", + "wizard_lint_clean": "경고 없음 — 지문이 읽기 좋습니다.", + "wizard_readability_title": "가독성", + "wizard_readability_consistent": "언어판이 일관되게 읽힙니다.", + "wizard_readability_drift": "언어판 간 읽기 수준이 다릅니다 — 어려운 쪽을 단순화하세요.", + "wizard_translation_title": "사이드카 번역", + "wizard_translation_complete": "모든 현지화 필드가 채워졌습니다.", + "wizard_translation_gaps": "일부 현지화 필드가 누락되었습니다 — 제출 전 완료하세요.", + "nav_author_wizard": "출제 마법사" } diff --git a/public/locales/lt.json b/public/locales/lt.json index 5e3182e2..583ac48f 100644 --- a/public/locales/lt.json +++ b/public/locales/lt.json @@ -1544,5 +1544,19 @@ "requests_empty": "Užklausų dar nėra", "requests_empty_hint": "Balsuokite už uždavinius, kuriuos norite matyti — autoriai stebi šią lentą.", "amas_subtitle": "AMA su medalininkais, uždavinių užklausų lenta ir jūsų reputacija.", - "nav_amas": "Bendruomenė" + "nav_amas": "Bendruomenė", + "wizard_title": "Kūrimo vedlys", + "wizard_subtitle": "Septyni žingsniai nuo idėjos iki pateikimo — su tikra užbaigtimo patikra.", + "wizard_problem_id": "Juodraščio id (neprivaloma)", + "wizard_new_problem": "Pradėti naują uždavinį →", + "wizard_creators_only": "Vedlys skirtas uždavinių kūrėjams ir tikrintojams.", + "wizard_lint_title": "Sąlygos lint", + "wizard_lint_clean": "Įspėjimų nėra — sąlyga skaitoma gerai.", + "wizard_readability_title": "Skaitomumas", + "wizard_readability_consistent": "Kalbos skaitomos vienodai.", + "wizard_readability_drift": "Kalbos skiriasi lygiu — supaprastink sudėtingesnę.", + "wizard_translation_title": "Lydintis vertimas", + "wizard_translation_complete": "Visi lokalizuoti laukai užpildyti.", + "wizard_translation_gaps": "Trūksta kai kurių lokalizuotų laukų — užpildyk prieš pateikiant.", + "nav_author_wizard": "Kūrimo vedlys" } diff --git a/public/locales/nl.json b/public/locales/nl.json index 426be637..941b55a6 100644 --- a/public/locales/nl.json +++ b/public/locales/nl.json @@ -1544,5 +1544,19 @@ "requests_empty": "Nog geen verzoeken", "requests_empty_hint": "Stem op de problemen die je wilt zien — auteurs volgen dit bord.", "amas_subtitle": "AMA's met medaillewinnaars, het probleemverzoekbord en je reputatie.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Auteurswizard", + "wizard_subtitle": "Zeven stappen van idee naar inzending — met live controles.", + "wizard_problem_id": "Concept-id (optioneel)", + "wizard_new_problem": "Nieuw probleem beginnen →", + "wizard_creators_only": "De wizard is voor probleemauteurs en verificateurs.", + "wizard_lint_title": "Statement-lint", + "wizard_lint_clean": "Geen waarschuwingen — de tekst leest prettig.", + "wizard_readability_title": "Leesbaarheid", + "wizard_readability_consistent": "De talen lezen consistent.", + "wizard_readability_drift": "De talen wijken af in niveau — vereenvoudig de moeilijkste.", + "wizard_translation_title": "Begeleidende vertaling", + "wizard_translation_complete": "Alle gelokaliseerde velden zijn gevuld.", + "wizard_translation_gaps": "Sommige gelokaliseerde velden ontbreken — vul ze voor inzending.", + "nav_author_wizard": "Auteurswizard" } diff --git a/public/locales/pl.json b/public/locales/pl.json index 613365b8..3c0ac370 100644 --- a/public/locales/pl.json +++ b/public/locales/pl.json @@ -1544,5 +1544,19 @@ "requests_empty": "Brak próśb", "requests_empty_hint": "Głosuj na zadania, które chcesz zobaczyć — autorzy obserwują tę tablicę.", "amas_subtitle": "AMA z medalistami, tablica próśb o zadania i twoja reputacja.", - "nav_amas": "Społeczność" + "nav_amas": "Społeczność", + "wizard_title": "Kreator tworzenia", + "wizard_subtitle": "Siedem kroków od pomysłu do zgłoszenia — z żywą kontrolą ukończenia.", + "wizard_problem_id": "Id szkicu (opcjonalnie)", + "wizard_new_problem": "Zacznij nowe zadanie →", + "wizard_creators_only": "Kreator jest dla twórców i weryfikatorów zadań.", + "wizard_lint_title": "Lint treści", + "wizard_lint_clean": "Brak ostrzeżeń — treść czyta się dobrze.", + "wizard_readability_title": "Czytelność", + "wizard_readability_consistent": "Wersje językowe czytają się spójnie.", + "wizard_readability_drift": "Wersje różnią się poziomem — uprość trudniejszą.", + "wizard_translation_title": "Tłumaczenie towarzyszące", + "wizard_translation_complete": "Wszystkie zlokalizowane pola są wypełnione.", + "wizard_translation_gaps": "Brakuje niektórych zlokalizowanych pól — uzupełnij przed zgłoszeniem.", + "nav_author_wizard": "Kreator tworzenia" } diff --git a/public/locales/pt.json b/public/locales/pt.json index b404365d..22ec0b89 100644 --- a/public/locales/pt.json +++ b/public/locales/pt.json @@ -1544,5 +1544,19 @@ "requests_empty": "Ainda sem pedidos", "requests_empty_hint": "Vote nos problemas que quer ver — os autores acompanham este quadro.", "amas_subtitle": "AMAs com medalhistas, o quadro de pedidos e sua reputação.", - "nav_amas": "Comunidade" + "nav_amas": "Comunidade", + "wizard_title": "Assistente de criação", + "wizard_subtitle": "Sete passos da ideia ao envio — com verificação de conclusão ao vivo.", + "wizard_problem_id": "Id do rascunho (opcional)", + "wizard_new_problem": "Começar um novo problema →", + "wizard_creators_only": "O assistente é para criadores e verificadores de problemas.", + "wizard_lint_title": "Lint do enunciado", + "wizard_lint_clean": "Sem avisos — o enunciado é de boa leitura.", + "wizard_readability_title": "Legibilidade", + "wizard_readability_consistent": "Os idiomas são consistentes.", + "wizard_readability_drift": "Os idiomas divergem no nível — simplifique o mais difícil.", + "wizard_translation_title": "Tradução acompanhante", + "wizard_translation_complete": "Todos os campos localizados estão preenchidos.", + "wizard_translation_gaps": "Alguns campos localizados faltam — complete antes de enviar.", + "nav_author_wizard": "Assistente de criação" } diff --git a/public/locales/ro.json b/public/locales/ro.json index 5aa5b9bb..f94ba4a3 100644 --- a/public/locales/ro.json +++ b/public/locales/ro.json @@ -1544,5 +1544,19 @@ "requests_empty": "Nicio cerere încă", "requests_empty_hint": "Votează problemele pe care vrei să le vezi — autorii urmăresc acest tabel.", "amas_subtitle": "AMA-uri cu medaliați, tabelul de cereri de probleme și reputația ta.", - "nav_amas": "Comunitate" + "nav_amas": "Comunitate", + "wizard_title": "Asistent de creare", + "wizard_subtitle": "Șapte pași de la idee la trimitere — cu verificări live de completare.", + "wizard_problem_id": "Id-ul problemei ciornă (opțional)", + "wizard_new_problem": "Începe o problemă nouă →", + "wizard_creators_only": "Asistentul este pentru creatorii și verificatorii de probleme.", + "wizard_lint_title": "Verificare enunț", + "wizard_lint_clean": "Nicio avertizare — enunțul se citește bine.", + "wizard_readability_title": "Lizibilitate", + "wizard_readability_consistent": "Variantele de limbă sunt consecvente.", + "wizard_readability_drift": "Variantele diferă la nivel de lectură — simplific-o pe cea grea.", + "wizard_translation_title": "Traducerea însoțitoare", + "wizard_translation_complete": "Toate câmpurile localizate sunt completate.", + "wizard_translation_gaps": "Unele câmpuri localizate lipsesc — completează-le înainte de trimitere.", + "nav_author_wizard": "Asistent de creare" } diff --git a/public/locales/ru.json b/public/locales/ru.json index 3538244d..d2f4f489 100644 --- a/public/locales/ru.json +++ b/public/locales/ru.json @@ -1544,5 +1544,19 @@ "requests_empty": "Запросов пока нет", "requests_empty_hint": "Голосуйте за задачи, которые хотите видеть — авторы следят за этой доской.", "amas_subtitle": "AMA с медалистами, доска запросов задач и ваша репутация.", - "nav_amas": "Сообщество" + "nav_amas": "Сообщество", + "wizard_title": "Мастер создания", + "wizard_subtitle": "Семь шагов от идеи до отправки — с живой проверкой готовности.", + "wizard_problem_id": "Id черновика (необязательно)", + "wizard_new_problem": "Начать новую задачу →", + "wizard_creators_only": "Мастер — для авторов и верификаторов задач.", + "wizard_lint_title": "Линтер условия", + "wizard_lint_clean": "Предупреждений нет — условие читается хорошо.", + "wizard_readability_title": "Читаемость", + "wizard_readability_consistent": "Языковые версии читаются согласованно.", + "wizard_readability_drift": "Языковые версии расходятся по уровню — упростите более сложную.", + "wizard_translation_title": "Сопутствующий перевод", + "wizard_translation_complete": "Все локализованные поля заполнены.", + "wizard_translation_gaps": "Некоторые локализованные поля отсутствуют — заполните до отправки.", + "nav_author_wizard": "Мастер создания" } diff --git a/public/locales/sr-Latn.json b/public/locales/sr-Latn.json index 991b034e..ad05b907 100644 --- a/public/locales/sr-Latn.json +++ b/public/locales/sr-Latn.json @@ -1544,5 +1544,19 @@ "requests_empty": "Još nema zahteva", "requests_empty_hint": "Glasaj za zadatke koje želiš da vidiš — autori prate ovu tablu.", "amas_subtitle": "AMA sa osvajačima medalja, tabla zahteva i tvoja reputacija.", - "nav_amas": "Zajednica" + "nav_amas": "Zajednica", + "wizard_title": "Čarobnjak za izradu", + "wizard_subtitle": "Sedam koraka od ideje do predaje — s proverama dovršenosti uživo.", + "wizard_problem_id": "Id nacrta (neobavezno)", + "wizard_new_problem": "Započni novi zadatak →", + "wizard_creators_only": "Čarobnjak je za autore i verifikatore zadataka.", + "wizard_lint_title": "Lint teksta zadatka", + "wizard_lint_clean": "Nema upozorenja — tekst se dobro čita.", + "wizard_readability_title": "Čitljivost", + "wizard_readability_consistent": "Jezici se čitaju dosledno.", + "wizard_readability_drift": "Jezici se razlikuju u nivou — pojednostavi teži.", + "wizard_translation_title": "Prateći prevod", + "wizard_translation_complete": "Sva lokalizovana polja su popunjena.", + "wizard_translation_gaps": "Nedostaju neka lokalizovana polja — popuni ih pre predaje.", + "nav_author_wizard": "Čarobnjak za izradu" } diff --git a/public/locales/th.json b/public/locales/th.json index 2fe0f207..4de1dbf1 100644 --- a/public/locales/th.json +++ b/public/locales/th.json @@ -1544,5 +1544,19 @@ "requests_empty": "ยังไม่มีคำขอ", "requests_empty_hint": "โหวตให้โจทย์ที่คุณอยากเห็น — ผู้เขียนติดตามกระดานนี้", "amas_subtitle": "AMA กับผู้ได้เหรียญ กระดานขอโจทย์ และชื่อเสียงของคุณ", - "nav_amas": "ชุมชน" + "nav_amas": "ชุมชน", + "wizard_title": "วิซาร์ดสร้างโจทย์", + "wizard_subtitle": "เจ็ดขั้นจากไอเดียถึงส่ง — พร้อมตรวจความสมบูรณ์แบบสด", + "wizard_problem_id": "id ของโจทย์ร่าง (ไม่บังคับ)", + "wizard_new_problem": "เริ่มโจทย์ใหม่ →", + "wizard_creators_only": "วิซาร์ดมีไว้สำหรับผู้เขียนและผู้ตรวจโจทย์", + "wizard_lint_title": "ตรวจโจทย์", + "wizard_lint_clean": "ไม่มีคำเตือน — โจทย์อ่านง่าย", + "wizard_readability_title": "ความอ่านง่าย", + "wizard_readability_consistent": "แต่ละภาษาอ่านสอดคล้องกัน", + "wizard_readability_drift": "แต่ละภาษาระดับการอ่านต่างกัน — ทำฉบับที่ยากให้ง่ายขึ้น", + "wizard_translation_title": "คำแปลประกอบ", + "wizard_translation_complete": "ทุกฟิลด์แปลภาษาถูกกรอกครบ", + "wizard_translation_gaps": "ฟิลด์แปลบางส่วนขาดหาย — เติมให้ครบก่อนส่ง", + "nav_author_wizard": "วิซาร์ดสร้างโจทย์" } diff --git a/public/locales/tr.json b/public/locales/tr.json index 7e09e4a6..916f4279 100644 --- a/public/locales/tr.json +++ b/public/locales/tr.json @@ -1544,5 +1544,19 @@ "requests_description_placeholder": "Problemi veya konuyu açıkla…", "requests_open": "İstek aç", "requests_loading": "İstekler yükleniyor…", - "requests_empty": "Henüz istek yok" + "requests_empty": "Henüz istek yok", + "wizard_title": "Yazım sihirbazı", + "wizard_subtitle": "Fikirden göndermeye yedi adım — canlı tamamlama kontrolleriyle.", + "wizard_problem_id": "Taslak problem kimliği (isteğe bağlı)", + "wizard_new_problem": "Yeni problem başlat →", + "wizard_creators_only": "Sihirbaz problem yazarları ve doğrulayıcıları içindir.", + "wizard_lint_title": "Problem lint", + "wizard_lint_clean": "Uyarı yok — problem iyi okunuyor.", + "wizard_readability_title": "Okunabilirlik", + "wizard_readability_consistent": "Dil sürümleri tutarlı okunuyor.", + "wizard_readability_drift": "Dil sürümleri okuma düzeyinde ayrışıyor — zor olanı sadeleştir.", + "wizard_translation_title": "Yan çeviri", + "wizard_translation_complete": "Tüm yerelleştirilmiş alanlar dolu.", + "wizard_translation_gaps": "Bazı yerelleştirilmiş alanlar eksik — göndermeden önce tamamla.", + "nav_author_wizard": "Yazım sihirbazı" } diff --git a/public/locales/uk.json b/public/locales/uk.json index 96334e5c..719d685e 100644 --- a/public/locales/uk.json +++ b/public/locales/uk.json @@ -1544,5 +1544,19 @@ "requests_empty": "Запитів ще немає", "requests_empty_hint": "Голосуйте за задачі, які хочете бачити — автори стежать за цією дошкою.", "amas_subtitle": "AMA з медалістами, дошка запитів задач і ваша репутація.", - "nav_amas": "Спільнота" + "nav_amas": "Спільнота", + "wizard_title": "Майстер створення", + "wizard_subtitle": "Сім кроків від ідеї до надсилання — з живою перевіркою готовності.", + "wizard_problem_id": "Id чернетки (необов'язково)", + "wizard_new_problem": "Почати нову задачу →", + "wizard_creators_only": "Майстер — для авторів і верифікаторів задач.", + "wizard_lint_title": "Лінтер умови", + "wizard_lint_clean": "Попереджень немає — умова читається добре.", + "wizard_readability_title": "Читабельність", + "wizard_readability_consistent": "Мовні версії читаються узгоджено.", + "wizard_readability_drift": "Мовні версії розходяться за рівнем — спростіть складнішу.", + "wizard_translation_title": "Супутній переклад", + "wizard_translation_complete": "Усі локалізовані поля заповнені.", + "wizard_translation_gaps": "Деяких локалізованих полів бракує — заповніть до надсилання.", + "nav_author_wizard": "Майстер створення" } diff --git a/public/locales/vi.json b/public/locales/vi.json index 1ff9d4fe..83c16537 100644 --- a/public/locales/vi.json +++ b/public/locales/vi.json @@ -1544,5 +1544,19 @@ "requests_empty": "Chưa có yêu cầu", "requests_empty_hint": "Bầu chọn cho bài bạn muốn xem — tác giả theo dõi bảng này.", "amas_subtitle": "AMA với người đoạt huy chương, bảng yêu cầu bài tập và uy tín của bạn.", - "nav_amas": "Cộng đồng" + "nav_amas": "Cộng đồng", + "wizard_title": "Trình tạo bài", + "wizard_subtitle": "Bảy bước từ ý tưởng đến nộp bài — kiểm tra hoàn thành trực tiếp.", + "wizard_problem_id": "Id bản nháp (tùy chọn)", + "wizard_new_problem": "Bắt đầu bài mới →", + "wizard_creators_only": "Trình tạo dành cho người soạn và người kiểm duyệt bài.", + "wizard_lint_title": "Kiểm tra đề bài", + "wizard_lint_clean": "Không có cảnh báo — đề bài đọc tốt.", + "wizard_readability_title": "Độ dễ đọc", + "wizard_readability_consistent": "Các bản dịch đọc nhất quán.", + "wizard_readability_drift": "Các bản dịch lệch mức đọc — đơn giản hóa bản khó hơn.", + "wizard_translation_title": "Bản dịch kèm theo", + "wizard_translation_complete": "Mọi trường bản địa hóa đã được điền.", + "wizard_translation_gaps": "Thiếu một số trường bản dịch — hoàn thành trước khi nộp.", + "nav_author_wizard": "Trình tạo bài" } diff --git a/public/locales/zh-Hans.json b/public/locales/zh-Hans.json index 622817e9..9267fdcc 100644 --- a/public/locales/zh-Hans.json +++ b/public/locales/zh-Hans.json @@ -1544,5 +1544,19 @@ "requests_empty": "还没有请求", "requests_empty_hint": "为你想见的题目投票——作者们关注这块板。", "amas_subtitle": "奖牌得主 AMA、题目请求板与你的声望。", - "nav_amas": "社区" + "nav_amas": "社区", + "wizard_title": "出题向导", + "wizard_subtitle": "从想法到提交的七个步骤——带实时完成检查。", + "wizard_problem_id": "草稿题目编号(可选)", + "wizard_new_problem": "开始新题目 →", + "wizard_creators_only": "向导面向题目作者与审核者。", + "wizard_lint_title": "题面检查", + "wizard_lint_clean": "没有警告——题面易读。", + "wizard_readability_title": "可读性", + "wizard_readability_consistent": "各语言版本阅读体验一致。", + "wizard_readability_drift": "各语言版本阅读水平漂移——请简化较难的版本。", + "wizard_translation_title": "伴随翻译", + "wizard_translation_complete": "所有本地化字段均已填写。", + "wizard_translation_gaps": "部分本地化字段缺失——提交前请补全。", + "nav_author_wizard": "出题向导" } diff --git a/public/locales/zh-Hant.json b/public/locales/zh-Hant.json index 707bcb4c..da85b2eb 100644 --- a/public/locales/zh-Hant.json +++ b/public/locales/zh-Hant.json @@ -1544,5 +1544,19 @@ "requests_empty": "還沒有請求", "requests_empty_hint": "為你想見的題目投票——作者們關注這塊板。", "amas_subtitle": "獎牌得主 AMA、題目請求板與你的聲望。", - "nav_amas": "社群" + "nav_amas": "社群", + "wizard_title": "出題精靈", + "wizard_subtitle": "從想法到提交的七個步驟——帶即時完成檢查。", + "wizard_problem_id": "草稿題目編號(可選)", + "wizard_new_problem": "開始新題目 →", + "wizard_creators_only": "精靈面向題目作者與審核者。", + "wizard_lint_title": "題面檢查", + "wizard_lint_clean": "沒有警告——題面易讀。", + "wizard_readability_title": "可讀性", + "wizard_readability_consistent": "各語言版本閱讀體驗一致。", + "wizard_readability_drift": "各語言版本閱讀水平漂移——請簡化較難的版本。", + "wizard_translation_title": "伴隨翻譯", + "wizard_translation_complete": "所有在地化欄位均已填寫。", + "wizard_translation_gaps": "部分在地化欄位缺失——提交前請補全。", + "nav_author_wizard": "出題精靈" } diff --git a/scripts/add-wave-f7-keys.py b/scripts/add-wave-f7-keys.py new file mode 100644 index 00000000..1dbdb60f --- /dev/null +++ b/scripts/add-wave-f7-keys.py @@ -0,0 +1,455 @@ +# One-shot: add the wave-F authoring-quality key family (items 121/123/124/134) +# to every locale catalog. tr.json patched surgically (CRLF file). +import json +import pathlib +import subprocess + +ROOT = pathlib.Path(__file__).resolve().parent.parent +LOCALES = ROOT / "src" / "locales" + +K = { + "wizard_title": { + "en": "Authoring wizard", + "ro": "Asistent de creare", + "es": "Asistente de creación", + "fr": "Assistant de création", + "de": "Autoren-Assistent", + "pt": "Assistente de criação", + "it": "Procedura guidata di creazione", + "ca": "Assistent de creació", + "nl": "Auteurswizard", + "pl": "Kreator tworzenia", + "hu": "Szerzői varázsló", + "hr": "Čarobnjak za izradu", + "sr-Latn": "Čarobnjak za izradu", + "lt": "Kūrimo vedlys", + "ru": "Мастер создания", + "uk": "Майстер створення", + "bg": "Помощник за създаване", + "el": "Οδηγός δημιουργίας", + "zh-Hans": "出题向导", + "zh-Hant": "出題精靈", + "ja": "作成ウィザード", + "ko": "출제 마법사", + "hi": "रचना विज़ार्ड", + "vi": "Trình tạo bài", + "th": "วิซาร์ดสร้างโจทย์", + "id": "Wizard pembuatan", + "tr": "Yazım sihirbazı", + "kk": "Құру шебері", + "ar": "معالج التأليف", + "fa": "ویزارد نگارش", + }, + "wizard_subtitle": { + "en": "Seven steps from idea to submission — with live completion checks.", + "ro": "Șapte pași de la idee la trimitere — cu verificări live de completare.", + "es": "Siete pasos de la idea al envío — con verificaciones de finalización en vivo.", + "fr": "Sept étapes de l'idée à la soumission — avec vérifications en direct.", + "de": "Sieben Schritte von der Idee zur Einreichung — mit Live-Prüfung.", + "pt": "Sete passos da ideia ao envio — com verificação de conclusão ao vivo.", + "it": "Sette passi dall'idea all'invio — con controlli di completamento in tempo reale.", + "ca": "Set passos de la idea a l'enviament — amb verificacions en directe.", + "nl": "Zeven stappen van idee naar inzending — met live controles.", + "pl": "Siedem kroków od pomysłu do zgłoszenia — z żywą kontrolą ukończenia.", + "hu": "Hét lépés az ötlettől a beküldésig — élő készültség-ellenőrzéssel.", + "hr": "Sedam koraka od ideje do predaje — s provjerama dovršenosti uživo.", + "sr-Latn": "Sedam koraka od ideje do predaje — s proverama dovršenosti uživo.", + "lt": "Septyni žingsniai nuo idėjos iki pateikimo — su tikra užbaigtimo patikra.", + "ru": "Семь шагов от идеи до отправки — с живой проверкой готовности.", + "uk": "Сім кроків від ідеї до надсилання — з живою перевіркою готовності.", + "bg": "Седем стъпки от идеята до подаването — с проверка на готовността на живо.", + "el": "Επτά βήματα από την ιδέα until την υποβολή — με ζωντανούς ελέγχους.", + "zh-Hans": "从想法到提交的七个步骤——带实时完成检查。", + "zh-Hant": "從想法到提交的七個步驟——帶即時完成檢查。", + "ja": "アイデアから提出までの7ステップ — 完了チェック付き。", + "ko": "아이디어에서 제출까지 일곱 단계 — 실시간 완료 확인 포함.", + "hi": "विचार से सबमिशन तक सात चरण — लाइव पूर्णता जाँच के साथ।", + "vi": "Bảy bước từ ý tưởng đến nộp bài — kiểm tra hoàn thành trực tiếp.", + "th": "เจ็ดขั้นจากไอเดียถึงส่ง — พร้อมตรวจความสมบูรณ์แบบสด", + "id": "Tujuh langkah dari ide hingga pengiriman — dengan pemeriksaan langsung.", + "tr": "Fikirden göndermeye yedi adım — canlı tamamlama kontrolleriyle.", + "kk": "Идеядан жібергенге дейін жеті қадам — толықтықтың тікелей тексеруімен.", + "ar": "سبع خطوات من الفكرة إلى التقديم — مع فحوصات إنجاز مباشرة.", + "fa": "هفت گام از ایده تا ارسال — با بررسی زنده کامل بودن.", + }, + "wizard_problem_id": { + "en": "Draft problem id (optional)", + "ro": "Id-ul problemei ciornă (opțional)", + "es": "Id del borrador (opcional)", + "fr": "Id du brouillon (optionnel)", + "de": "Entwurfs-ID (optional)", + "pt": "Id do rascunho (opcional)", + "it": "Id della bozza (opzionale)", + "ca": "Id de l'esborrany (opcional)", + "nl": "Concept-id (optioneel)", + "pl": "Id szkicu (opcjonalnie)", + "hu": "Vázlat azonosító (opcionális)", + "hr": "Id nacrta (neobavezno)", + "sr-Latn": "Id nacrta (neobavezno)", + "lt": "Juodraščio id (neprivaloma)", + "ru": "Id черновика (необязательно)", + "uk": "Id чернетки (необов'язково)", + "bg": "Id на черновата (по избор)", + "el": "Id πρόχειρου (προαιρετικό)", + "zh-Hans": "草稿题目编号(可选)", + "zh-Hant": "草稿題目編號(可選)", + "ja": "下書き問題ID(任意)", + "ko": "초안 문제 ID (선택)", + "hi": "ड्राफ़्ट प्रॉब्लम आईडी (वैकल्पिक)", + "vi": "Id bản nháp (tùy chọn)", + "th": "id ของโจทย์ร่าง (ไม่บังคับ)", + "id": "Id draf soal (opsional)", + "tr": "Taslak problem kimliği (isteğe bağlı)", + "kk": "Нобай есеп id-і (міндетті емес)", + "ar": "معرف المسألة المسودة (اختياري)", + "fa": "شناسه مسئله پیش‌نویس (اختیاری)", + }, + "wizard_new_problem": { + "en": "Start a new problem →", + "ro": "Începe o problemă nouă →", + "es": "Empezar un problema nuevo →", + "fr": "Commencer un nouveau problème →", + "de": "Neue Aufgabe starten →", + "pt": "Começar um novo problema →", + "it": "Inizia un nuovo problema →", + "ca": "Comença un problema nou →", + "nl": "Nieuw probleem beginnen →", + "pl": "Zacznij nowe zadanie →", + "hu": "Új feladat indítása →", + "hr": "Započni novi zadatak →", + "sr-Latn": "Započni novi zadatak →", + "lt": "Pradėti naują uždavinį →", + "ru": "Начать новую задачу →", + "uk": "Почати нову задачу →", + "bg": "Започни нова задача →", + "el": "Ξεκινήστε νέα άσκηση →", + "zh-Hans": "开始新题目 →", + "zh-Hant": "開始新題目 →", + "ja": "新しい問題を始める →", + "ko": "새 문제 시작 →", + "hi": "नया प्रॉब्लम शुरू करें →", + "vi": "Bắt đầu bài mới →", + "th": "เริ่มโจทย์ใหม่ →", + "id": "Mulai soal baru →", + "tr": "Yeni problem başlat →", + "kk": "Жаңа есеп бастау →", + "ar": "ابدأ مسألة جديدة →", + "fa": "شروع مسئله جدید →", + }, + "wizard_creators_only": { + "en": "The wizard is for problem creators and verifiers.", + "ro": "Asistentul este pentru creatorii și verificatorii de probleme.", + "es": "El asistente es para creadores y verificadores de problemas.", + "fr": "L'assistant est pour les auteurs et vérificateurs de problèmes.", + "de": "Der Assistent ist für Aufgabenautoren und -verifizierer.", + "pt": "O assistente é para criadores e verificadores de problemas.", + "it": "La procedura è per autori e verificatori di problemi.", + "ca": "L'assistènt és per a creadors i verificadors de problemes.", + "nl": "De wizard is voor probleemauteurs en verificateurs.", + "pl": "Kreator jest dla twórców i weryfikatorów zadań.", + "hu": "A varázsló feladatszerzőknek és -ellenőröknek szól.", + "hr": "Čarobnjak je za autore i verifikatore zadataka.", + "sr-Latn": "Čarobnjak je za autore i verifikatore zadataka.", + "lt": "Vedlys skirtas uždavinių kūrėjams ir tikrintojams.", + "ru": "Мастер — для авторов и верификаторов задач.", + "uk": "Майстер — для авторів і верифікаторів задач.", + "bg": "Помощникът е за създатели и проверители на задачи.", + "el": "Ο οδηγός είναι για συγγραφείς και ελεγκτές ασκήσεων.", + "zh-Hans": "向导面向题目作者与审核者。", + "zh-Hant": "精靈面向題目作者與審核者。", + "ja": "ウィザードは問題作成者と検証者向けです。", + "ko": "마법사는 문제 작성자와 검증자를 위한 것입니다.", + "hi": "विज़ार्ड प्रॉब्लम लेखकों और सत्यापकों के लिए है।", + "vi": "Trình tạo dành cho người soạn và người kiểm duyệt bài.", + "th": "วิซาร์ดมีไว้สำหรับผู้เขียนและผู้ตรวจโจทย์", + "id": "Wizard ini untuk pembuat dan verifikator soal.", + "tr": "Sihirbaz problem yazarları ve doğrulayıcıları içindir.", + "kk": "Шебер есеп авторлары мен тексерушілерге арналған.", + "ar": "المعالج مخصص لمؤلفي المسائل والمدققين.", + "fa": "ویزارد برای نویسندگان و راستی‌آزمایان مسئله است.", + }, + "wizard_lint_title": { + "en": "Statement lint", + "ro": "Verificare enunț", + "es": "Lint del enunciado", + "fr": "Analyse de l'énoncé", + "de": "Aufgaben-Lint", + "pt": "Lint do enunciado", + "it": "Lint dell'enunciato", + "ca": "Lint de l'enunciat", + "nl": "Statement-lint", + "pl": "Lint treści", + "hu": "Feladatszöveg-lint", + "hr": "Lint teksta zadatka", + "sr-Latn": "Lint teksta zadatka", + "lt": "Sąlygos lint", + "ru": "Линтер условия", + "uk": "Лінтер умови", + "bg": "Линт на условието", + "el": "Lint εκφώνησης", + "zh-Hans": "题面检查", + "zh-Hant": "題面檢查", + "ja": "問題文リント", + "ko": "지문 린트", + "hi": "स्टेटमेंट लिंट", + "vi": "Kiểm tra đề bài", + "th": "ตรวจโจทย์", + "id": "Lint soal", + "tr": "Problem lint", + "kk": "Шарт линті", + "ar": "فحص نص المسألة", + "fa": "لینت صورت مسئله", + }, + "wizard_lint_clean": { + "en": "No warnings — the statement reads well.", + "ro": "Nicio avertizare — enunțul se citește bine.", + "es": "Sin avisos — el enunciado se lee bien.", + "fr": "Aucun avertissement — l'énoncé se lit bien.", + "de": "Keine Warnungen — die Aufgabe liest sich gut.", + "pt": "Sem avisos — o enunciado é de boa leitura.", + "it": "Nessun avviso — l'enunciato si legge bene.", + "ca": "Sense avisos — l'enunciat es llegeix bé.", + "nl": "Geen waarschuwingen — de tekst leest prettig.", + "pl": "Brak ostrzeżeń — treść czyta się dobrze.", + "hu": "Nincs figyelmeztetés — a szöveg jól olvasható.", + "hr": "Nema upozorenja — tekst se dobro čita.", + "sr-Latn": "Nema upozorenja — tekst se dobro čita.", + "lt": "Įspėjimų nėra — sąlyga skaitoma gerai.", + "ru": "Предупреждений нет — условие читается хорошо.", + "uk": "Попереджень немає — умова читається добре.", + "bg": "Няма предупреждения — условието се чете добре.", + "el": "Καμία προειδοποίηση — η εκφώνηση διαβάζεται καλά.", + "zh-Hans": "没有警告——题面易读。", + "zh-Hant": "沒有警告——題面易讀。", + "ja": "警告なし — 問題文は読みやすい。", + "ko": "경고 없음 — 지문이 읽기 좋습니다.", + "hi": "कोई चेतावनी नहीं — कथन अच्छा पढ़ा जाता है।", + "vi": "Không có cảnh báo — đề bài đọc tốt.", + "th": "ไม่มีคำเตือน — โจทย์อ่านง่าย", + "id": "Tidak ada peringatan — soal mudah dibaca.", + "tr": "Uyarı yok — problem iyi okunuyor.", + "kk": "Ескерту жоқ — шарт жақсы оқылады.", + "ar": "لا تحذيرات — نص المسألة مقروء جيدًا.", + "fa": "بدون هشدار — صورت مسئله خوب خوانده می‌شود.", + }, + "wizard_readability_title": { + "en": "Readability", + "ro": "Lizibilitate", + "es": "Legibilidad", + "fr": "Lisibilité", + "de": "Lesbarkeit", + "pt": "Legibilidade", + "it": "Leggibilità", + "ca": "Llegibilitat", + "nl": "Leesbaarheid", + "pl": "Czytelność", + "hu": "Olvashatóság", + "hr": "Čitljivost", + "sr-Latn": "Čitljivost", + "lt": "Skaitomumas", + "ru": "Читаемость", + "uk": "Читабельність", + "bg": "Четимост", + "el": "Αναγνωσιμότητα", + "zh-Hans": "可读性", + "zh-Hant": "可讀性", + "ja": "読みやすさ", + "ko": "가독성", + "hi": "पठनीयता", + "vi": "Độ dễ đọc", + "th": "ความอ่านง่าย", + "id": "Keterbacaan", + "tr": "Okunabilirlik", + "kk": "Оқылымдылық", + "ar": "قابلية القراءة", + "fa": "خوانایی", + }, + "wizard_readability_consistent": { + "en": "Locales read consistently.", + "ro": "Variantele de limbă sunt consecvente.", + "es": "Los idiomas leen de forma consistente.", + "fr": "Les langues se lisent de façon cohérente.", + "de": "Die Sprachen lesen sich konsistent.", + "pt": "Os idiomas são consistentes.", + "it": "Le lingue si leggono in modo coerente.", + "ca": "Els idiomes es llegeixen coherentment.", + "nl": "De talen lezen consistent.", + "pl": "Wersje językowe czytają się spójnie.", + "hu": "A nyelvváltozatok konzisztensen olvashatók.", + "hr": "Jezici se čitaju dosljedno.", + "sr-Latn": "Jezici se čitaju dosledno.", + "lt": "Kalbos skaitomos vienodai.", + "ru": "Языковые версии читаются согласованно.", + "uk": "Мовні версії читаються узгоджено.", + "bg": "Езиковите версии се четат съгласувано.", + "el": "Οι γλωσσικές εκδόσεις διαβάζονται με συνέπεια.", + "zh-Hans": "各语言版本阅读体验一致。", + "zh-Hant": "各語言版本閱讀體驗一致。", + "ja": "各言語版の一貫した読みやすさです。", + "ko": "언어판이 일관되게 읽힙니다.", + "hi": "भाषा संस्करण लगातार पढ़े जाते हैं।", + "vi": "Các bản dịch đọc nhất quán.", + "th": "แต่ละภาษาอ่านสอดคล้องกัน", + "id": "Versi bahasa terbaca konsisten.", + "tr": "Dil sürümleri tutarlı okunuyor.", + "kk": "Тіл нұсқалары біркелкі оқылады.", + "ar": "النسخ اللغوية متسقة في القراءة.", + "fa": "نسخه‌های زبانی همخوان خوانده می‌شوند.", + }, + "wizard_readability_drift": { + "en": "Locales drift in reading level — simplify the harder one.", + "ro": "Variantele diferă la nivel de lectură — simplific-o pe cea grea.", + "es": "Los idiomas difieren en nivel de lectura — simplifica el más difícil.", + "fr": "Les langues divergent en niveau — simplifiez la plus difficile.", + "de": "Die Sprachen driften im Leseniveau — vereinfache die schwierigere.", + "pt": "Os idiomas divergem no nível — simplifique o mais difícil.", + "it": "Le lingue divergono nel livello — semplifica la più difficile.", + "ca": "Els idiomes divergeixen en el nivell — simplifica el més difícil.", + "nl": "De talen wijken af in niveau — vereenvoudig de moeilijkste.", + "pl": "Wersje różnią się poziomem — uprość trudniejszą.", + "hu": "A nyelvváltozatok szintje eltér — egyszerűsítsd a nehezebbet.", + "hr": "Jezici se razlikuju u razini — pojednostavi teži.", + "sr-Latn": "Jezici se razlikuju u nivou — pojednostavi teži.", + "lt": "Kalbos skiriasi lygiu — supaprastink sudėtingesnę.", + "ru": "Языковые версии расходятся по уровню — упростите более сложную.", + "uk": "Мовні версії розходяться за рівнем — спростіть складнішу.", + "bg": "Езиковите версии се различават — опростете по-трудната.", + "el": "Οι γλωσσικές εκδόσεις αποκλίνουν — απλοποιήστε τη δυσκολότερη.", + "zh-Hans": "各语言版本阅读水平漂移——请简化较难的版本。", + "zh-Hant": "各語言版本閱讀水平漂移——請簡化較難的版本。", + "ja": "言語版で読みやすさがばらつきます — 難しい方を簡潔に。", + "ko": "언어판 간 읽기 수준이 다릅니다 — 어려운 쪽을 단순화하세요.", + "hi": "भाषा संस्करणों का स्तर भिन्न है — कठिन को सरल करें।", + "vi": "Các bản dịch lệch mức đọc — đơn giản hóa bản khó hơn.", + "th": "แต่ละภาษาระดับการอ่านต่างกัน — ทำฉบับที่ยากให้ง่ายขึ้น", + "id": "Versi bahasa berbeda tingkat bacanya — sederhanakan yang lebih sulit.", + "tr": "Dil sürümleri okuma düzeyinde ayrışıyor — zor olanı sadeleştir.", + "kk": "Тіл нұсқаларының деңгейі алшақ — қиынырағын жеңілдет.", + "ar": "النسخ اللغوية تتباين في مستوى القراءة — بسّط الأصعب.", + "fa": "نسخه‌های زبانی در سطح خوانایی واگرا هستند — سخت‌تر را ساده کنید.", + }, + "wizard_translation_title": { + "en": "Translation sidecar", + "ro": "Traducerea însoțitoare", + "es": "Traducción acompañante", + "fr": "Traduction associée", + "de": "Begleitübersetzung", + "pt": "Tradução acompanhante", + "it": "Traduzione a fianco", + "ca": "Traducció acompanyant", + "nl": "Begeleidende vertaling", + "pl": "Tłumaczenie towarzyszące", + "hu": "Kísérő fordítás", + "hr": "Prateći prijevod", + "sr-Latn": "Prateći prevod", + "lt": "Lydintis vertimas", + "ru": "Сопутствующий перевод", + "uk": "Супутній переклад", + "bg": "Съпроводен превод", + "el": "Συνοδευτική μετάφραση", + "zh-Hans": "伴随翻译", + "zh-Hant": "伴隨翻譯", + "ja": "サイドカー翻訳", + "ko": "사이드카 번역", + "hi": "साइडकार अनुवाद", + "vi": "Bản dịch kèm theo", + "th": "คำแปลประกอบ", + "id": "Terjemahan pendamping", + "tr": "Yan çeviri", + "kk": "Қосалқы аударма", + "ar": "الترجمة المرافقة", + "fa": "ترجمه همراه", + }, + "wizard_translation_complete": { + "en": "Every localized field is filled.", + "ro": "Toate câmpurile localizate sunt completate.", + "es": "Todos los campos localizados están completos.", + "fr": "Tous les champs localisés sont remplis.", + "de": "Alle lokalisierten Felder sind gefüllt.", + "pt": "Todos os campos localizados estão preenchidos.", + "it": "Tutti i campi localizzati sono compilati.", + "ca": "Tots els camps localitzats estan complets.", + "nl": "Alle gelokaliseerde velden zijn gevuld.", + "pl": "Wszystkie zlokalizowane pola są wypełnione.", + "hu": "Minden honosított mező ki van töltve.", + "hr": "Sva lokalizirana polja su ispunjena.", + "sr-Latn": "Sva lokalizovana polja su popunjena.", + "lt": "Visi lokalizuoti laukai užpildyti.", + "ru": "Все локализованные поля заполнены.", + "uk": "Усі локалізовані поля заповнені.", + "bg": "Всички локализирани полета са попълнени.", + "el": "Όλα τα τοπικοποιημένα πεδία συμπληρώθηκαν.", + "zh-Hans": "所有本地化字段均已填写。", + "zh-Hant": "所有在地化欄位均已填寫。", + "ja": "すべてのローカライズ済みフィールドが入力済みです。", + "ko": "모든 현지화 필드가 채워졌습니다.", + "hi": "सभी स्थानीयकृत फ़ील्ड भरे गए हैं।", + "vi": "Mọi trường bản địa hóa đã được điền.", + "th": "ทุกฟิลด์แปลภาษาถูกกรอกครบ", + "id": "Semua field terlokalisasi terisi.", + "tr": "Tüm yerelleştirilmiş alanlar dolu.", + "kk": "Барлық локализацияланған өрістер толтырылған.", + "ar": "جميع الحقول المترجمة مكتملة.", + "fa": "همه فیلدهای بومی‌سازی‌شده پر شده‌اند.", + }, + "wizard_translation_gaps": { + "en": "Some localized fields are missing — finish them before submitting.", + "ro": "Unele câmpuri localizate lipsesc — completează-le înainte de trimitere.", + "es": "Faltan campos localizados — complétalos antes de enviar.", + "fr": "Des champs localisés manquent — complétez-les avant d'envoyer.", + "de": "Einige lokalisierte Felder fehlen — vor der Einreichung ergänzen.", + "pt": "Alguns campos localizados faltam — complete antes de enviar.", + "it": "Mancano alcuni campi localizzati — completali prima di inviare.", + "ca": "Falten alguns camps localitzats — completa'ls abans d'enviar.", + "nl": "Sommige gelokaliseerde velden ontbreken — vul ze voor inzending.", + "pl": "Brakuje niektórych zlokalizowanych pól — uzupełnij przed zgłoszeniem.", + "hu": "Néhány honosított mező hiányzik — egészítsd ki beküldés előtt.", + "hr": "Nedostaju neka lokalizirana polja — popuni ih prije predaje.", + "sr-Latn": "Nedostaju neka lokalizovana polja — popuni ih pre predaje.", + "lt": "Trūksta kai kurių lokalizuotų laukų — užpildyk prieš pateikiant.", + "ru": "Некоторые локализованные поля отсутствуют — заполните до отправки.", + "uk": "Деяких локалізованих полів бракує — заповніть до надсилання.", + "bg": "Липсват някои локализирани полета — попълнете преди подаване.", + "el": "Λείπουν ορισμένα τοπικοποιημένα πεδία — συμπληρώστε πριν την υποβολή.", + "zh-Hans": "部分本地化字段缺失——提交前请补全。", + "zh-Hant": "部分在地化欄位缺失——提交前請補全。", + "ja": "未入力のローカライズフィールドがあります — 提出前に完了してください。", + "ko": "일부 현지화 필드가 누락되었습니다 — 제출 전 완료하세요.", + "hi": "कुछ स्थानीयकृत फ़ील्ड गायब हैं — सबमिट करने से पहले पूरे करें।", + "vi": "Thiếu một số trường bản dịch — hoàn thành trước khi nộp.", + "th": "ฟิลด์แปลบางส่วนขาดหาย — เติมให้ครบก่อนส่ง", + "id": "Beberapa field terlokalisasi belum ada — lengkapi sebelum mengirim.", + "tr": "Bazı yerelleştirilmiş alanlar eksik — göndermeden önce tamamla.", + "kk": "Кейбір локализацияланған өрістер жоқ — жібермес бұрын толтыр.", + "ar": "بعض الحقول المترجمة مفقودة — أكملها قبل التقديم.", + "fa": "برخی فیلدهای بومی‌سازی‌شده غایب‌اند — پیش از ارسال کامل کنید.", + }, +} + +for path in sorted(LOCALES.glob("*.json")): + locale = path.stem + catalog = json.loads(path.read_text(encoding="utf-8")) + fresh = {} + for key, translations in K.items(): + if key not in catalog: + fresh[key] = translations.get(locale, translations["en"]) + if not fresh: + continue + if locale == "tr": + raw = subprocess.run( + ["git", "show", f"origin/main:{path.as_posix()}"], capture_output=True + ).stdout.decode("utf-8") + block = ",\r\n".join( + f" {json.dumps(k, ensure_ascii=False)}: {json.dumps(v, ensure_ascii=False)}" + for k, v in fresh.items() + ) + body = raw.rstrip() + inner = body[:-1].rstrip() + path.write_bytes((inner + ",\r\n" + block + "\r\n}\r\n").encode("utf-8")) + else: + catalog.update(fresh) + path.write_text( + json.dumps(catalog, ensure_ascii=False, indent=2) + "\n", encoding="utf-8" + ) + print(f"updated {locale}") +print("done") diff --git a/src/app/author/wizard/WizardPage.test.tsx b/src/app/author/wizard/WizardPage.test.tsx new file mode 100644 index 00000000..6001b597 --- /dev/null +++ b/src/app/author/wizard/WizardPage.test.tsx @@ -0,0 +1,107 @@ +import { describe, expect, it, vi, beforeEach, afterEach } from 'vitest'; +import { render, screen, fireEvent, waitFor, cleanup } from '@testing-library/react'; +import AuthorWizardPage from '@/app/author/wizard/page'; +import type { User } from '@/types'; + +// Wave F items 121/123/124/134 — the authoring wizard page. + +const api = vi.hoisted(() => ({ + getWizardSteps: vi.fn(), + statementLint: vi.fn(), + getReadability: vi.fn(), + getTranslationStatus: vi.fn(), +})); + +vi.mock('@/services/ApiService', () => ({ + ProblemService: api, +})); + +const mocks = vi.hoisted(() => ({ + auth: { + isAuthenticated: true, + user: { id: 1, username: 'author', email: 'a@x.com', role: 'PROBLEM_CREATOR' } as User | null, + login: vi.fn(), + logout: vi.fn(), + }, +})); + +vi.mock('@/context/AuthContext', () => ({ + useAuth: () => mocks.auth, + AuthContext: { + Provider: ({ children }: { children: React.ReactNode }) => children, + Consumer: ({ children }: { children: (value: unknown) => React.ReactNode }) => + children(mocks.auth), + _currentValue: mocks.auth, + }, +})); + +beforeEach(() => { + api.getWizardSteps.mockReset(); + api.statementLint.mockReset(); + api.getReadability.mockReset(); + api.getTranslationStatus.mockReset(); +}); + +afterEach(() => cleanup()); + +const STEPS = { + count: 7, + steps: [ + { key: 'basics', title_en: 'Basics', description_en: 'd', fields: [], complete: true }, + { key: 'review', title_en: 'Review', description_en: 'd', fields: [], complete: false }, + ], +}; + +describe('AuthorWizardPage', () => { + it('renders the step checklist without a draft', async () => { + api.getWizardSteps.mockResolvedValue(STEPS); + render(); + expect(await screen.findByTestId('wizard-step-basics')).toBeTruthy(); + expect(screen.getByTestId('wizard-step-check-basics').textContent).toBe('✓'); + expect(screen.getByTestId('wizard-step-check-review').textContent).toBe('○'); + }); + + it('loads lint + readability + translation for a chosen draft', async () => { + api.getWizardSteps.mockResolvedValue(STEPS); + api.statementLint.mockResolvedValue({ + count: 1, + warnings: [{ code: 'missing_input_en', locale: 'en', message: 'No input section.' }], + }); + api.getReadability.mockResolvedValue({ + locales: { + en: { score: 71.2, band: 'plain', words: 40, sentences: 3 }, + ro: { score: 66.0, band: 'plain', words: 38, sentences: 3 }, + }, + consistent: true, + }); + api.getTranslationStatus.mockResolvedValue({ + fields: ['title', 'statement', 'hints'], + locales: { + en: { title: true, statement: true, hints: true }, + ro: { title: true, statement: true, hints: false }, + }, + complete: false, + }); + render(); + await screen.findByTestId('wizard-step-basics'); + fireEvent.change(screen.getByTestId('wizard-problem-input'), { + target: { value: '9' }, + }); + await waitFor(() => expect(api.statementLint).toHaveBeenCalledWith(9)); + await waitFor(() => expect(screen.getByTestId('wizard-lint-missing_input_en')).toBeTruthy()); + expect(screen.getByTestId('wizard-readability-en').textContent).toContain('71.2'); + expect(screen.getByTestId('wizard-translation').textContent).toContain('hints ✗'); + }); + + it('shows the creators-only note for basic users', () => { + mocks.auth.user = { id: 2, username: 'bob', email: 'b@x.com', role: 'BASIC_USER' } as User; + render(); + expect(screen.getByText(/creators and verifiers/i)).toBeTruthy(); + mocks.auth.user = { + id: 1, + username: 'author', + email: 'a@x.com', + role: 'PROBLEM_CREATOR', + } as User; + }); +}); diff --git a/src/app/author/wizard/page.tsx b/src/app/author/wizard/page.tsx new file mode 100644 index 00000000..56b9a212 --- /dev/null +++ b/src/app/author/wizard/page.tsx @@ -0,0 +1,230 @@ +'use client'; + +import React, { useCallback, useEffect, useMemo, useState } from 'react'; +import { useTranslation } from 'react-i18next'; +import { ProblemService } from '@/services/ApiService'; +import { useAuth } from '@/context/AuthContext'; +import { palette } from '@/theme/tokens'; +import PageHeader from '@/components/common/PageHeader'; +import Link from 'next/link'; + +/** + * Items 121/123/124/134 — the visual authoring wizard: an ordered step + * checklist with live per-step completion for a chosen draft, plus the + * statement-lint warnings, the readability band and the translation + * sidecar gaps on the Review step. + */ + +interface WizardStep { + key: string; + title_en: string; + description_en: string; + fields: string[]; + complete: boolean; +} + +interface LintWarning { + code: string; + locale: string; + message: string; +} + +interface ReadabilityReport { + locales: Record; + consistent: boolean | null; +} + +interface TranslationStatus { + fields: string[]; + locales: Record>; + complete: boolean; +} + +export default function AuthorWizardPage() { + const { t } = useTranslation(); + const auth = useAuth(); + const [problemId, setProblemId] = useState(''); + const [steps, setSteps] = useState(null); + const [lint, setLint] = useState(null); + const [readability, setReadability] = useState(null); + const [translation, setTranslation] = useState(null); + const [error, setError] = useState(null); + + const isAuthor = useMemo( + () => + auth.user?.role === 'PROBLEM_CREATOR' || + auth.user?.role === 'PROBLEM_VERIFIER' || + auth.user?.role === 'TEACHER' || + auth.user?.role === 'ADMIN', + [auth.user?.role], + ); + + const load = useCallback(async () => { + setError(null); + try { + const data = await ProblemService.getWizardSteps(problemId ? Number(problemId) : undefined); + setSteps(data.steps); + setLint(null); + setReadability(null); + setTranslation(null); + if (problemId) { + const [lintData, readData, transData] = await Promise.all([ + ProblemService.statementLint(Number(problemId)).catch(() => null), + ProblemService.getReadability(Number(problemId)).catch(() => null), + ProblemService.getTranslationStatus(Number(problemId)).catch(() => null), + ]); + if (lintData) setLint(lintData.warnings); + if (readData) setReadability(readData); + if (transData) setTranslation(transData); + } + } catch (err) { + setError(err instanceof Error ? err.message : 'error'); + } + }, [problemId]); + + useEffect(() => { + if (isAuthor) load(); + }, [isAuthor, load]); + + if (!isAuthor) { + return ( +
+ +

+ {t('wizard_creators_only', 'The wizard is for problem creators and verifiers.')} +

+
+ ); + } + + return ( +
+ +
+ setProblemId(e.target.value)} + placeholder={t('wizard_problem_id', 'Draft problem id (optional)')} + aria-label={t('wizard_problem_id', 'Draft problem id (optional)')} + style={{ width: 260, padding: 8 }} + data-testid="wizard-problem-input" + /> + + {t('wizard_new_problem', 'Start a new problem →')} + +
+ {error && ( +

+ {error} +

+ )} + {steps === null ? ( +

{t('loading', 'Loading…')}

+ ) : ( +
    + {steps.map((step, index) => ( +
  1. + + {step.complete ? '✓' : '○'} + +
    + + {index + 1}. {step.title_en} + +
    + {step.description_en} +
    +
    +
  2. + ))} +
+ )} + + {lint !== null && ( +
+

{t('wizard_lint_title', 'Statement lint')}

+ {lint.length === 0 ? ( +

+ {t('wizard_lint_clean', 'No warnings — the statement reads well.')} +

+ ) : ( +
    + {lint.map((warning) => ( +
  • + {warning.locale.toUpperCase()}: {warning.message} +
  • + ))} +
+ )} +
+ )} + + {readability && ( +
+

{t('wizard_readability_title', 'Readability')}

+ {Object.entries(readability.locales).map(([locale, entry]) => ( +

+ {locale.toUpperCase()}: {entry.score} ({entry.band}) +

+ ))} + {readability.consistent !== null && ( +

+ {readability.consistent + ? t('wizard_readability_consistent', 'Locales read consistently.') + : t( + 'wizard_readability_drift', + 'Locales drift in reading level — simplify the harder one.', + )} +

+ )} +
+ )} + + {translation && ( +
+

{t('wizard_translation_title', 'Translation sidecar')}

+ {Object.entries(translation.locales).map(([locale, fields]) => ( +

+ {locale.toUpperCase()}:{' '} + {translation.fields + .map((field) => `${field} ${fields[field] ? '✓' : '✗'}`) + .join(' · ')} +

+ ))} + {translation.complete ? ( +

+ {t('wizard_translation_complete', 'Every localized field is filled.')} +

+ ) : ( +

+ {t( + 'wizard_translation_gaps', + 'Some localized fields are missing — finish them before submitting.', + )} +

+ )} +
+ )} +
+ ); +} diff --git a/src/components/layout/Navbar.tsx b/src/components/layout/Navbar.tsx index b186a973..1a38a70e 100644 --- a/src/components/layout/Navbar.tsx +++ b/src/components/layout/Navbar.tsx @@ -117,6 +117,10 @@ const Navbar: React.FC = () => { ...(canCreateProblems ? [ { href: '/problems/create', label: t('nav_create_problem', 'Create Problem') }, + { + href: '/author/wizard', + label: t('nav_author_wizard', 'Authoring wizard'), + }, { href: '/my-created-problems', label: t('nav_my_created_problems', 'My Problems') }, ] : []), diff --git a/src/locales/ar.json b/src/locales/ar.json index 1a88fecf..fc6b4f53 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -1544,5 +1544,19 @@ "requests_empty": "لا طلبات بعد", "requests_empty_hint": "صوّت للمسائل التي تريد رؤيتها — المؤلفون يراقبون هذه اللوحة.", "amas_subtitle": "أسئلة وأجوبة مع الحاصلين على ميداليات، لوحة طلبات المسائل وسمعتك.", - "nav_amas": "المجتمع" + "nav_amas": "المجتمع", + "wizard_title": "معالج التأليف", + "wizard_subtitle": "سبع خطوات من الفكرة إلى التقديم — مع فحوصات إنجاز مباشرة.", + "wizard_problem_id": "معرف المسألة المسودة (اختياري)", + "wizard_new_problem": "ابدأ مسألة جديدة →", + "wizard_creators_only": "المعالج مخصص لمؤلفي المسائل والمدققين.", + "wizard_lint_title": "فحص نص المسألة", + "wizard_lint_clean": "لا تحذيرات — نص المسألة مقروء جيدًا.", + "wizard_readability_title": "قابلية القراءة", + "wizard_readability_consistent": "النسخ اللغوية متسقة في القراءة.", + "wizard_readability_drift": "النسخ اللغوية تتباين في مستوى القراءة — بسّط الأصعب.", + "wizard_translation_title": "الترجمة المرافقة", + "wizard_translation_complete": "جميع الحقول المترجمة مكتملة.", + "wizard_translation_gaps": "بعض الحقول المترجمة مفقودة — أكملها قبل التقديم.", + "nav_author_wizard": "معالج التأليف" } diff --git a/src/locales/bg.json b/src/locales/bg.json index 5750fcb1..285dc361 100644 --- a/src/locales/bg.json +++ b/src/locales/bg.json @@ -1544,5 +1544,19 @@ "requests_empty": "Още няма заявки", "requests_empty_hint": "Гласувайте за задачите, които искате да видите — авторите следят тази дъска.", "amas_subtitle": "AMA с медалисти, дъската със заявки за задачи и вашата репутация.", - "nav_amas": "Общност" + "nav_amas": "Общност", + "wizard_title": "Помощник за създаване", + "wizard_subtitle": "Седем стъпки от идеята до подаването — с проверка на готовността на живо.", + "wizard_problem_id": "Id на черновата (по избор)", + "wizard_new_problem": "Започни нова задача →", + "wizard_creators_only": "Помощникът е за създатели и проверители на задачи.", + "wizard_lint_title": "Линт на условието", + "wizard_lint_clean": "Няма предупреждения — условието се чете добре.", + "wizard_readability_title": "Четимост", + "wizard_readability_consistent": "Езиковите версии се четат съгласувано.", + "wizard_readability_drift": "Езиковите версии се различават — опростете по-трудната.", + "wizard_translation_title": "Съпроводен превод", + "wizard_translation_complete": "Всички локализирани полета са попълнени.", + "wizard_translation_gaps": "Липсват някои локализирани полета — попълнете преди подаване.", + "nav_author_wizard": "Помощник за създаване" } diff --git a/src/locales/ca.json b/src/locales/ca.json index 844dc6f5..a067efaf 100644 --- a/src/locales/ca.json +++ b/src/locales/ca.json @@ -1544,5 +1544,19 @@ "requests_empty": "Encara no hi ha sol·licituds", "requests_empty_hint": "Vota els problemes que vols veure — els autors miren aquest tauler.", "amas_subtitle": "AMAs amb medallistes, el tauler de sol·licituds i la teva reputació.", - "nav_amas": "Comunitat" + "nav_amas": "Comunitat", + "wizard_title": "Assistent de creació", + "wizard_subtitle": "Set passos de la idea a l'enviament — amb verificacions en directe.", + "wizard_problem_id": "Id de l'esborrany (opcional)", + "wizard_new_problem": "Comença un problema nou →", + "wizard_creators_only": "L'assistènt és per a creadors i verificadors de problemes.", + "wizard_lint_title": "Lint de l'enunciat", + "wizard_lint_clean": "Sense avisos — l'enunciat es llegeix bé.", + "wizard_readability_title": "Llegibilitat", + "wizard_readability_consistent": "Els idiomes es llegeixen coherentment.", + "wizard_readability_drift": "Els idiomes divergeixen en el nivell — simplifica el més difícil.", + "wizard_translation_title": "Traducció acompanyant", + "wizard_translation_complete": "Tots els camps localitzats estan complets.", + "wizard_translation_gaps": "Falten alguns camps localitzats — completa'ls abans d'enviar.", + "nav_author_wizard": "Assistent de creació" } diff --git a/src/locales/de.json b/src/locales/de.json index c4c645cc..61e633a5 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1544,5 +1544,19 @@ "requests_empty": "Noch keine Anfragen", "requests_empty_hint": "Stimme für die Aufgaben ab, die du sehen willst — Autoren beobachten dieses Brett.", "amas_subtitle": "AMAs mit Medaillengewinnern, das Aufgabenwunsch-Brett und deine Reputation.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Autoren-Assistent", + "wizard_subtitle": "Sieben Schritte von der Idee zur Einreichung — mit Live-Prüfung.", + "wizard_problem_id": "Entwurfs-ID (optional)", + "wizard_new_problem": "Neue Aufgabe starten →", + "wizard_creators_only": "Der Assistent ist für Aufgabenautoren und -verifizierer.", + "wizard_lint_title": "Aufgaben-Lint", + "wizard_lint_clean": "Keine Warnungen — die Aufgabe liest sich gut.", + "wizard_readability_title": "Lesbarkeit", + "wizard_readability_consistent": "Die Sprachen lesen sich konsistent.", + "wizard_readability_drift": "Die Sprachen driften im Leseniveau — vereinfache die schwierigere.", + "wizard_translation_title": "Begleitübersetzung", + "wizard_translation_complete": "Alle lokalisierten Felder sind gefüllt.", + "wizard_translation_gaps": "Einige lokalisierte Felder fehlen — vor der Einreichung ergänzen.", + "nav_author_wizard": "Autoren-Assistent" } diff --git a/src/locales/el.json b/src/locales/el.json index 4bc83b30..bf03bddb 100644 --- a/src/locales/el.json +++ b/src/locales/el.json @@ -1544,5 +1544,19 @@ "requests_empty": "Κανένα αίτημα ακόμη", "requests_empty_hint": "Ψηφίστε τις ασκήσεις που θέλετε να δείτε — οι συγγραφείς παρακολουθούν αυτό τον πίνακα.", "amas_subtitle": "AMA με νομισματούχους, ο πίνακας αιτημάτων ασκήσεων και η φήμη σας.", - "nav_amas": "Κοινότητα" + "nav_amas": "Κοινότητα", + "wizard_title": "Οδηγός δημιουργίας", + "wizard_subtitle": "Επτά βήματα από την ιδέα until την υποβολή — με ζωντανούς ελέγχους.", + "wizard_problem_id": "Id πρόχειρου (προαιρετικό)", + "wizard_new_problem": "Ξεκινήστε νέα άσκηση →", + "wizard_creators_only": "Ο οδηγός είναι για συγγραφείς και ελεγκτές ασκήσεων.", + "wizard_lint_title": "Lint εκφώνησης", + "wizard_lint_clean": "Καμία προειδοποίηση — η εκφώνηση διαβάζεται καλά.", + "wizard_readability_title": "Αναγνωσιμότητα", + "wizard_readability_consistent": "Οι γλωσσικές εκδόσεις διαβάζονται με συνέπεια.", + "wizard_readability_drift": "Οι γλωσσικές εκδόσεις αποκλίνουν — απλοποιήστε τη δυσκολότερη.", + "wizard_translation_title": "Συνοδευτική μετάφραση", + "wizard_translation_complete": "Όλα τα τοπικοποιημένα πεδία συμπληρώθηκαν.", + "wizard_translation_gaps": "Λείπουν ορισμένα τοπικοποιημένα πεδία — συμπληρώστε πριν την υποβολή.", + "nav_author_wizard": "Οδηγός δημιουργίας" } diff --git a/src/locales/en.json b/src/locales/en.json index 94ad094e..28bcec96 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1544,5 +1544,19 @@ "requests_empty": "No requests yet", "requests_empty_hint": "Vote for the problems you want to see — authors watch this board.", "amas_subtitle": "AMAs with medalists, the problem-request board and your reputation.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Authoring wizard", + "wizard_subtitle": "Seven steps from idea to submission — with live completion checks.", + "wizard_problem_id": "Draft problem id (optional)", + "wizard_new_problem": "Start a new problem →", + "wizard_creators_only": "The wizard is for problem creators and verifiers.", + "wizard_lint_title": "Statement lint", + "wizard_lint_clean": "No warnings — the statement reads well.", + "wizard_readability_title": "Readability", + "wizard_readability_consistent": "Locales read consistently.", + "wizard_readability_drift": "Locales drift in reading level — simplify the harder one.", + "wizard_translation_title": "Translation sidecar", + "wizard_translation_complete": "Every localized field is filled.", + "wizard_translation_gaps": "Some localized fields are missing — finish them before submitting.", + "nav_author_wizard": "Authoring wizard" } diff --git a/src/locales/es.json b/src/locales/es.json index b32752c4..ddfb8e27 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1544,5 +1544,19 @@ "requests_empty": "Aún no hay solicitudes", "requests_empty_hint": "Vota por los problemas que quieres ver — los autores miran este tablero.", "amas_subtitle": "AMAs con medallistas, el tablero de solicitudes y tu reputación.", - "nav_amas": "Comunidad" + "nav_amas": "Comunidad", + "wizard_title": "Asistente de creación", + "wizard_subtitle": "Siete pasos de la idea al envío — con verificaciones de finalización en vivo.", + "wizard_problem_id": "Id del borrador (opcional)", + "wizard_new_problem": "Empezar un problema nuevo →", + "wizard_creators_only": "El asistente es para creadores y verificadores de problemas.", + "wizard_lint_title": "Lint del enunciado", + "wizard_lint_clean": "Sin avisos — el enunciado se lee bien.", + "wizard_readability_title": "Legibilidad", + "wizard_readability_consistent": "Los idiomas leen de forma consistente.", + "wizard_readability_drift": "Los idiomas difieren en nivel de lectura — simplifica el más difícil.", + "wizard_translation_title": "Traducción acompañante", + "wizard_translation_complete": "Todos los campos localizados están completos.", + "wizard_translation_gaps": "Faltan campos localizados — complétalos antes de enviar.", + "nav_author_wizard": "Asistente de creación" } diff --git a/src/locales/fa.json b/src/locales/fa.json index efce588b..f2460690 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -1544,5 +1544,19 @@ "requests_empty": "هنوز درخواستی نیست", "requests_empty_hint": "برای مسئله‌هایی که می‌خواهید ببینید رأی دهید — نویسندگان این تابلو را دنبال می‌کنند.", "amas_subtitle": "AMA با مدال‌آوران، تابلوی درخواست مسئله و اعتبار شما.", - "nav_amas": "انجمن" + "nav_amas": "انجمن", + "wizard_title": "ویزارد نگارش", + "wizard_subtitle": "هفت گام از ایده تا ارسال — با بررسی زنده کامل بودن.", + "wizard_problem_id": "شناسه مسئله پیش‌نویس (اختیاری)", + "wizard_new_problem": "شروع مسئله جدید →", + "wizard_creators_only": "ویزارد برای نویسندگان و راستی‌آزمایان مسئله است.", + "wizard_lint_title": "لینت صورت مسئله", + "wizard_lint_clean": "بدون هشدار — صورت مسئله خوب خوانده می‌شود.", + "wizard_readability_title": "خوانایی", + "wizard_readability_consistent": "نسخه‌های زبانی همخوان خوانده می‌شوند.", + "wizard_readability_drift": "نسخه‌های زبانی در سطح خوانایی واگرا هستند — سخت‌تر را ساده کنید.", + "wizard_translation_title": "ترجمه همراه", + "wizard_translation_complete": "همه فیلدهای بومی‌سازی‌شده پر شده‌اند.", + "wizard_translation_gaps": "برخی فیلدهای بومی‌سازی‌شده غایب‌اند — پیش از ارسال کامل کنید.", + "nav_author_wizard": "ویزارد نگارش" } diff --git a/src/locales/fr.json b/src/locales/fr.json index dfcd411c..9557d0e7 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1544,5 +1544,19 @@ "requests_empty": "Pas encore de demandes", "requests_empty_hint": "Votez pour les problèmes que vous voulez voir — les auteurs surveillent ce tableau.", "amas_subtitle": "AMA avec médaillés, le tableau des demandes et votre réputation.", - "nav_amas": "Communauté" + "nav_amas": "Communauté", + "wizard_title": "Assistant de création", + "wizard_subtitle": "Sept étapes de l'idée à la soumission — avec vérifications en direct.", + "wizard_problem_id": "Id du brouillon (optionnel)", + "wizard_new_problem": "Commencer un nouveau problème →", + "wizard_creators_only": "L'assistant est pour les auteurs et vérificateurs de problèmes.", + "wizard_lint_title": "Analyse de l'énoncé", + "wizard_lint_clean": "Aucun avertissement — l'énoncé se lit bien.", + "wizard_readability_title": "Lisibilité", + "wizard_readability_consistent": "Les langues se lisent de façon cohérente.", + "wizard_readability_drift": "Les langues divergent en niveau — simplifiez la plus difficile.", + "wizard_translation_title": "Traduction associée", + "wizard_translation_complete": "Tous les champs localisés sont remplis.", + "wizard_translation_gaps": "Des champs localisés manquent — complétez-les avant d'envoyer.", + "nav_author_wizard": "Assistant de création" } diff --git a/src/locales/hi.json b/src/locales/hi.json index 14572195..148a8816 100644 --- a/src/locales/hi.json +++ b/src/locales/hi.json @@ -1544,5 +1544,19 @@ "requests_empty": "अभी कोई अनुरोध नहीं", "requests_empty_hint": "जो प्रॉब्लम देखना चाहते हैं उनके लिए वोट करें — लेखक इस बोर्ड को देखते हैं।", "amas_subtitle": "पदक विजेताओं के AMA, प्रॉब्लम-अनुरोध बोर्ड और आपकी प्रतिष्ठा।", - "nav_amas": "समुदाय" + "nav_amas": "समुदाय", + "wizard_title": "रचना विज़ार्ड", + "wizard_subtitle": "विचार से सबमिशन तक सात चरण — लाइव पूर्णता जाँच के साथ।", + "wizard_problem_id": "ड्राफ़्ट प्रॉब्लम आईडी (वैकल्पिक)", + "wizard_new_problem": "नया प्रॉब्लम शुरू करें →", + "wizard_creators_only": "विज़ार्ड प्रॉब्लम लेखकों और सत्यापकों के लिए है।", + "wizard_lint_title": "स्टेटमेंट लिंट", + "wizard_lint_clean": "कोई चेतावनी नहीं — कथन अच्छा पढ़ा जाता है।", + "wizard_readability_title": "पठनीयता", + "wizard_readability_consistent": "भाषा संस्करण लगातार पढ़े जाते हैं।", + "wizard_readability_drift": "भाषा संस्करणों का स्तर भिन्न है — कठिन को सरल करें।", + "wizard_translation_title": "साइडकार अनुवाद", + "wizard_translation_complete": "सभी स्थानीयकृत फ़ील्ड भरे गए हैं।", + "wizard_translation_gaps": "कुछ स्थानीयकृत फ़ील्ड गायब हैं — सबमिट करने से पहले पूरे करें।", + "nav_author_wizard": "रचना विज़ार्ड" } diff --git a/src/locales/hr.json b/src/locales/hr.json index 5d87aeb9..87b44492 100644 --- a/src/locales/hr.json +++ b/src/locales/hr.json @@ -1544,5 +1544,19 @@ "requests_empty": "Još nema zahtjeva", "requests_empty_hint": "Glasaj za zadatke koje želiš vidjeti — autori prate ovu ploču.", "amas_subtitle": "AMA s osvajačima medalja, ploča zahtjeva i tvoja reputacija.", - "nav_amas": "Zajednica" + "nav_amas": "Zajednica", + "wizard_title": "Čarobnjak za izradu", + "wizard_subtitle": "Sedam koraka od ideje do predaje — s provjerama dovršenosti uživo.", + "wizard_problem_id": "Id nacrta (neobavezno)", + "wizard_new_problem": "Započni novi zadatak →", + "wizard_creators_only": "Čarobnjak je za autore i verifikatore zadataka.", + "wizard_lint_title": "Lint teksta zadatka", + "wizard_lint_clean": "Nema upozorenja — tekst se dobro čita.", + "wizard_readability_title": "Čitljivost", + "wizard_readability_consistent": "Jezici se čitaju dosljedno.", + "wizard_readability_drift": "Jezici se razlikuju u razini — pojednostavi teži.", + "wizard_translation_title": "Prateći prijevod", + "wizard_translation_complete": "Sva lokalizirana polja su ispunjena.", + "wizard_translation_gaps": "Nedostaju neka lokalizirana polja — popuni ih prije predaje.", + "nav_author_wizard": "Čarobnjak za izradu" } diff --git a/src/locales/hu.json b/src/locales/hu.json index ac5bc656..cc88c472 100644 --- a/src/locales/hu.json +++ b/src/locales/hu.json @@ -1544,5 +1544,19 @@ "requests_empty": "Még nincs kérés", "requests_empty_hint": "Szavazz azokra a feladatokra, amelyeket látni akarsz — a szerzők figyelik ezt a táblát.", "amas_subtitle": "AMA-k érmesekkel, a feladatkérés-tábla és a reputációd.", - "nav_amas": "Közösség" + "nav_amas": "Közösség", + "wizard_title": "Szerzői varázsló", + "wizard_subtitle": "Hét lépés az ötlettől a beküldésig — élő készültség-ellenőrzéssel.", + "wizard_problem_id": "Vázlat azonosító (opcionális)", + "wizard_new_problem": "Új feladat indítása →", + "wizard_creators_only": "A varázsló feladatszerzőknek és -ellenőröknek szól.", + "wizard_lint_title": "Feladatszöveg-lint", + "wizard_lint_clean": "Nincs figyelmeztetés — a szöveg jól olvasható.", + "wizard_readability_title": "Olvashatóság", + "wizard_readability_consistent": "A nyelvváltozatok konzisztensen olvashatók.", + "wizard_readability_drift": "A nyelvváltozatok szintje eltér — egyszerűsítsd a nehezebbet.", + "wizard_translation_title": "Kísérő fordítás", + "wizard_translation_complete": "Minden honosított mező ki van töltve.", + "wizard_translation_gaps": "Néhány honosított mező hiányzik — egészítsd ki beküldés előtt.", + "nav_author_wizard": "Szerzői varázsló" } diff --git a/src/locales/id.json b/src/locales/id.json index 4a85524f..5bbd1f75 100644 --- a/src/locales/id.json +++ b/src/locales/id.json @@ -1544,5 +1544,19 @@ "requests_empty": "Belum ada permintaan", "requests_empty_hint": "Pilih soal yang ingin kamu lihat — penulis mengawasi papan ini.", "amas_subtitle": "AMA dengan peraih medali, papan permintaan soal, dan reputasimu.", - "nav_amas": "Komunitas" + "nav_amas": "Komunitas", + "wizard_title": "Wizard pembuatan", + "wizard_subtitle": "Tujuh langkah dari ide hingga pengiriman — dengan pemeriksaan langsung.", + "wizard_problem_id": "Id draf soal (opsional)", + "wizard_new_problem": "Mulai soal baru →", + "wizard_creators_only": "Wizard ini untuk pembuat dan verifikator soal.", + "wizard_lint_title": "Lint soal", + "wizard_lint_clean": "Tidak ada peringatan — soal mudah dibaca.", + "wizard_readability_title": "Keterbacaan", + "wizard_readability_consistent": "Versi bahasa terbaca konsisten.", + "wizard_readability_drift": "Versi bahasa berbeda tingkat bacanya — sederhanakan yang lebih sulit.", + "wizard_translation_title": "Terjemahan pendamping", + "wizard_translation_complete": "Semua field terlokalisasi terisi.", + "wizard_translation_gaps": "Beberapa field terlokalisasi belum ada — lengkapi sebelum mengirim.", + "nav_author_wizard": "Wizard pembuatan" } diff --git a/src/locales/it.json b/src/locales/it.json index d5dce2ed..9e8a18b3 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -1544,5 +1544,19 @@ "requests_empty": "Ancora nessuna richiesta", "requests_empty_hint": "Vota i problemi che vuoi vedere — gli autori guardano questa bacheca.", "amas_subtitle": "AMA con medagliati, la bacheca delle richieste e la tua reputazione.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Procedura guidata di creazione", + "wizard_subtitle": "Sette passi dall'idea all'invio — con controlli di completamento in tempo reale.", + "wizard_problem_id": "Id della bozza (opzionale)", + "wizard_new_problem": "Inizia un nuovo problema →", + "wizard_creators_only": "La procedura è per autori e verificatori di problemi.", + "wizard_lint_title": "Lint dell'enunciato", + "wizard_lint_clean": "Nessun avviso — l'enunciato si legge bene.", + "wizard_readability_title": "Leggibilità", + "wizard_readability_consistent": "Le lingue si leggono in modo coerente.", + "wizard_readability_drift": "Le lingue divergono nel livello — semplifica la più difficile.", + "wizard_translation_title": "Traduzione a fianco", + "wizard_translation_complete": "Tutti i campi localizzati sono compilati.", + "wizard_translation_gaps": "Mancano alcuni campi localizzati — completali prima di inviare.", + "nav_author_wizard": "Creazione guidata" } diff --git a/src/locales/ja.json b/src/locales/ja.json index a5b53249..f6b8fcf4 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1544,5 +1544,19 @@ "requests_empty": "まだリクエストはありません", "requests_empty_hint": "見たい問題に投票しよう — 作成者がこのボードをチェックしています。", "amas_subtitle": "メダリストAMA、問題リクエストボード、そしてあなたのレピュテーション。", - "nav_amas": "コミュニティ" + "nav_amas": "コミュニティ", + "wizard_title": "作成ウィザード", + "wizard_subtitle": "アイデアから提出までの7ステップ — 完了チェック付き。", + "wizard_problem_id": "下書き問題ID(任意)", + "wizard_new_problem": "新しい問題を始める →", + "wizard_creators_only": "ウィザードは問題作成者と検証者向けです。", + "wizard_lint_title": "問題文リント", + "wizard_lint_clean": "警告なし — 問題文は読みやすい。", + "wizard_readability_title": "読みやすさ", + "wizard_readability_consistent": "各言語版の一貫した読みやすさです。", + "wizard_readability_drift": "言語版で読みやすさがばらつきます — 難しい方を簡潔に。", + "wizard_translation_title": "サイドカー翻訳", + "wizard_translation_complete": "すべてのローカライズ済みフィールドが入力済みです。", + "wizard_translation_gaps": "未入力のローカライズフィールドがあります — 提出前に完了してください。", + "nav_author_wizard": "作成ウィザード" } diff --git a/src/locales/kk.json b/src/locales/kk.json index a4b9d358..9bb3b60b 100644 --- a/src/locales/kk.json +++ b/src/locales/kk.json @@ -1544,5 +1544,19 @@ "requests_empty": "Әзірге сұраулар жоқ", "requests_empty_hint": "Көргіңіз келетін есептерге дауыс беріңіз — авторлар осы тақтаны бақылайды.", "amas_subtitle": "Медалистермен AMA, есеп сұраулар тақтасы және репутацияңыз.", - "nav_amas": "Қауымдастық" + "nav_amas": "Қауымдастық", + "wizard_title": "Құру шебері", + "wizard_subtitle": "Идеядан жібергенге дейін жеті қадам — толықтықтың тікелей тексеруімен.", + "wizard_problem_id": "Нобай есеп id-і (міндетті емес)", + "wizard_new_problem": "Жаңа есеп бастау →", + "wizard_creators_only": "Шебер есеп авторлары мен тексерушілерге арналған.", + "wizard_lint_title": "Шарт линті", + "wizard_lint_clean": "Ескерту жоқ — шарт жақсы оқылады.", + "wizard_readability_title": "Оқылымдылық", + "wizard_readability_consistent": "Тіл нұсқалары біркелкі оқылады.", + "wizard_readability_drift": "Тіл нұсқаларының деңгейі алшақ — қиынырағын жеңілдет.", + "wizard_translation_title": "Қосалқы аударма", + "wizard_translation_complete": "Барлық локализацияланған өрістер толтырылған.", + "wizard_translation_gaps": "Кейбір локализацияланған өрістер жоқ — жібермес бұрын толтыр.", + "nav_author_wizard": "Құру шебері" } diff --git a/src/locales/ko.json b/src/locales/ko.json index d4ff9417..0a3c70e2 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -1544,5 +1544,19 @@ "requests_empty": "아직 요청 없음", "requests_empty_hint": "보고 싶은 문제에 투표하세요 — 작성자들이 이 게시판을 지켜봅니다.", "amas_subtitle": "메달리스트 AMA, 문제 요청 게시판, 그리고 당신의 평판.", - "nav_amas": "커뮤니티" + "nav_amas": "커뮤니티", + "wizard_title": "출제 마법사", + "wizard_subtitle": "아이디어에서 제출까지 일곱 단계 — 실시간 완료 확인 포함.", + "wizard_problem_id": "초안 문제 ID (선택)", + "wizard_new_problem": "새 문제 시작 →", + "wizard_creators_only": "마법사는 문제 작성자와 검증자를 위한 것입니다.", + "wizard_lint_title": "지문 린트", + "wizard_lint_clean": "경고 없음 — 지문이 읽기 좋습니다.", + "wizard_readability_title": "가독성", + "wizard_readability_consistent": "언어판이 일관되게 읽힙니다.", + "wizard_readability_drift": "언어판 간 읽기 수준이 다릅니다 — 어려운 쪽을 단순화하세요.", + "wizard_translation_title": "사이드카 번역", + "wizard_translation_complete": "모든 현지화 필드가 채워졌습니다.", + "wizard_translation_gaps": "일부 현지화 필드가 누락되었습니다 — 제출 전 완료하세요.", + "nav_author_wizard": "출제 마법사" } diff --git a/src/locales/lt.json b/src/locales/lt.json index 5e3182e2..583ac48f 100644 --- a/src/locales/lt.json +++ b/src/locales/lt.json @@ -1544,5 +1544,19 @@ "requests_empty": "Užklausų dar nėra", "requests_empty_hint": "Balsuokite už uždavinius, kuriuos norite matyti — autoriai stebi šią lentą.", "amas_subtitle": "AMA su medalininkais, uždavinių užklausų lenta ir jūsų reputacija.", - "nav_amas": "Bendruomenė" + "nav_amas": "Bendruomenė", + "wizard_title": "Kūrimo vedlys", + "wizard_subtitle": "Septyni žingsniai nuo idėjos iki pateikimo — su tikra užbaigtimo patikra.", + "wizard_problem_id": "Juodraščio id (neprivaloma)", + "wizard_new_problem": "Pradėti naują uždavinį →", + "wizard_creators_only": "Vedlys skirtas uždavinių kūrėjams ir tikrintojams.", + "wizard_lint_title": "Sąlygos lint", + "wizard_lint_clean": "Įspėjimų nėra — sąlyga skaitoma gerai.", + "wizard_readability_title": "Skaitomumas", + "wizard_readability_consistent": "Kalbos skaitomos vienodai.", + "wizard_readability_drift": "Kalbos skiriasi lygiu — supaprastink sudėtingesnę.", + "wizard_translation_title": "Lydintis vertimas", + "wizard_translation_complete": "Visi lokalizuoti laukai užpildyti.", + "wizard_translation_gaps": "Trūksta kai kurių lokalizuotų laukų — užpildyk prieš pateikiant.", + "nav_author_wizard": "Kūrimo vedlys" } diff --git a/src/locales/nl.json b/src/locales/nl.json index 426be637..941b55a6 100644 --- a/src/locales/nl.json +++ b/src/locales/nl.json @@ -1544,5 +1544,19 @@ "requests_empty": "Nog geen verzoeken", "requests_empty_hint": "Stem op de problemen die je wilt zien — auteurs volgen dit bord.", "amas_subtitle": "AMA's met medaillewinnaars, het probleemverzoekbord en je reputatie.", - "nav_amas": "Community" + "nav_amas": "Community", + "wizard_title": "Auteurswizard", + "wizard_subtitle": "Zeven stappen van idee naar inzending — met live controles.", + "wizard_problem_id": "Concept-id (optioneel)", + "wizard_new_problem": "Nieuw probleem beginnen →", + "wizard_creators_only": "De wizard is voor probleemauteurs en verificateurs.", + "wizard_lint_title": "Statement-lint", + "wizard_lint_clean": "Geen waarschuwingen — de tekst leest prettig.", + "wizard_readability_title": "Leesbaarheid", + "wizard_readability_consistent": "De talen lezen consistent.", + "wizard_readability_drift": "De talen wijken af in niveau — vereenvoudig de moeilijkste.", + "wizard_translation_title": "Begeleidende vertaling", + "wizard_translation_complete": "Alle gelokaliseerde velden zijn gevuld.", + "wizard_translation_gaps": "Sommige gelokaliseerde velden ontbreken — vul ze voor inzending.", + "nav_author_wizard": "Auteurswizard" } diff --git a/src/locales/pl.json b/src/locales/pl.json index 613365b8..3c0ac370 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -1544,5 +1544,19 @@ "requests_empty": "Brak próśb", "requests_empty_hint": "Głosuj na zadania, które chcesz zobaczyć — autorzy obserwują tę tablicę.", "amas_subtitle": "AMA z medalistami, tablica próśb o zadania i twoja reputacja.", - "nav_amas": "Społeczność" + "nav_amas": "Społeczność", + "wizard_title": "Kreator tworzenia", + "wizard_subtitle": "Siedem kroków od pomysłu do zgłoszenia — z żywą kontrolą ukończenia.", + "wizard_problem_id": "Id szkicu (opcjonalnie)", + "wizard_new_problem": "Zacznij nowe zadanie →", + "wizard_creators_only": "Kreator jest dla twórców i weryfikatorów zadań.", + "wizard_lint_title": "Lint treści", + "wizard_lint_clean": "Brak ostrzeżeń — treść czyta się dobrze.", + "wizard_readability_title": "Czytelność", + "wizard_readability_consistent": "Wersje językowe czytają się spójnie.", + "wizard_readability_drift": "Wersje różnią się poziomem — uprość trudniejszą.", + "wizard_translation_title": "Tłumaczenie towarzyszące", + "wizard_translation_complete": "Wszystkie zlokalizowane pola są wypełnione.", + "wizard_translation_gaps": "Brakuje niektórych zlokalizowanych pól — uzupełnij przed zgłoszeniem.", + "nav_author_wizard": "Kreator tworzenia" } diff --git a/src/locales/pt.json b/src/locales/pt.json index b404365d..22ec0b89 100644 --- a/src/locales/pt.json +++ b/src/locales/pt.json @@ -1544,5 +1544,19 @@ "requests_empty": "Ainda sem pedidos", "requests_empty_hint": "Vote nos problemas que quer ver — os autores acompanham este quadro.", "amas_subtitle": "AMAs com medalhistas, o quadro de pedidos e sua reputação.", - "nav_amas": "Comunidade" + "nav_amas": "Comunidade", + "wizard_title": "Assistente de criação", + "wizard_subtitle": "Sete passos da ideia ao envio — com verificação de conclusão ao vivo.", + "wizard_problem_id": "Id do rascunho (opcional)", + "wizard_new_problem": "Começar um novo problema →", + "wizard_creators_only": "O assistente é para criadores e verificadores de problemas.", + "wizard_lint_title": "Lint do enunciado", + "wizard_lint_clean": "Sem avisos — o enunciado é de boa leitura.", + "wizard_readability_title": "Legibilidade", + "wizard_readability_consistent": "Os idiomas são consistentes.", + "wizard_readability_drift": "Os idiomas divergem no nível — simplifique o mais difícil.", + "wizard_translation_title": "Tradução acompanhante", + "wizard_translation_complete": "Todos os campos localizados estão preenchidos.", + "wizard_translation_gaps": "Alguns campos localizados faltam — complete antes de enviar.", + "nav_author_wizard": "Assistente de criação" } diff --git a/src/locales/ro.json b/src/locales/ro.json index 5aa5b9bb..f94ba4a3 100644 --- a/src/locales/ro.json +++ b/src/locales/ro.json @@ -1544,5 +1544,19 @@ "requests_empty": "Nicio cerere încă", "requests_empty_hint": "Votează problemele pe care vrei să le vezi — autorii urmăresc acest tabel.", "amas_subtitle": "AMA-uri cu medaliați, tabelul de cereri de probleme și reputația ta.", - "nav_amas": "Comunitate" + "nav_amas": "Comunitate", + "wizard_title": "Asistent de creare", + "wizard_subtitle": "Șapte pași de la idee la trimitere — cu verificări live de completare.", + "wizard_problem_id": "Id-ul problemei ciornă (opțional)", + "wizard_new_problem": "Începe o problemă nouă →", + "wizard_creators_only": "Asistentul este pentru creatorii și verificatorii de probleme.", + "wizard_lint_title": "Verificare enunț", + "wizard_lint_clean": "Nicio avertizare — enunțul se citește bine.", + "wizard_readability_title": "Lizibilitate", + "wizard_readability_consistent": "Variantele de limbă sunt consecvente.", + "wizard_readability_drift": "Variantele diferă la nivel de lectură — simplific-o pe cea grea.", + "wizard_translation_title": "Traducerea însoțitoare", + "wizard_translation_complete": "Toate câmpurile localizate sunt completate.", + "wizard_translation_gaps": "Unele câmpuri localizate lipsesc — completează-le înainte de trimitere.", + "nav_author_wizard": "Asistent de creare" } diff --git a/src/locales/ru.json b/src/locales/ru.json index 3538244d..d2f4f489 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1544,5 +1544,19 @@ "requests_empty": "Запросов пока нет", "requests_empty_hint": "Голосуйте за задачи, которые хотите видеть — авторы следят за этой доской.", "amas_subtitle": "AMA с медалистами, доска запросов задач и ваша репутация.", - "nav_amas": "Сообщество" + "nav_amas": "Сообщество", + "wizard_title": "Мастер создания", + "wizard_subtitle": "Семь шагов от идеи до отправки — с живой проверкой готовности.", + "wizard_problem_id": "Id черновика (необязательно)", + "wizard_new_problem": "Начать новую задачу →", + "wizard_creators_only": "Мастер — для авторов и верификаторов задач.", + "wizard_lint_title": "Линтер условия", + "wizard_lint_clean": "Предупреждений нет — условие читается хорошо.", + "wizard_readability_title": "Читаемость", + "wizard_readability_consistent": "Языковые версии читаются согласованно.", + "wizard_readability_drift": "Языковые версии расходятся по уровню — упростите более сложную.", + "wizard_translation_title": "Сопутствующий перевод", + "wizard_translation_complete": "Все локализованные поля заполнены.", + "wizard_translation_gaps": "Некоторые локализованные поля отсутствуют — заполните до отправки.", + "nav_author_wizard": "Мастер создания" } diff --git a/src/locales/sr-Latn.json b/src/locales/sr-Latn.json index 991b034e..ad05b907 100644 --- a/src/locales/sr-Latn.json +++ b/src/locales/sr-Latn.json @@ -1544,5 +1544,19 @@ "requests_empty": "Još nema zahteva", "requests_empty_hint": "Glasaj za zadatke koje želiš da vidiš — autori prate ovu tablu.", "amas_subtitle": "AMA sa osvajačima medalja, tabla zahteva i tvoja reputacija.", - "nav_amas": "Zajednica" + "nav_amas": "Zajednica", + "wizard_title": "Čarobnjak za izradu", + "wizard_subtitle": "Sedam koraka od ideje do predaje — s proverama dovršenosti uživo.", + "wizard_problem_id": "Id nacrta (neobavezno)", + "wizard_new_problem": "Započni novi zadatak →", + "wizard_creators_only": "Čarobnjak je za autore i verifikatore zadataka.", + "wizard_lint_title": "Lint teksta zadatka", + "wizard_lint_clean": "Nema upozorenja — tekst se dobro čita.", + "wizard_readability_title": "Čitljivost", + "wizard_readability_consistent": "Jezici se čitaju dosledno.", + "wizard_readability_drift": "Jezici se razlikuju u nivou — pojednostavi teži.", + "wizard_translation_title": "Prateći prevod", + "wizard_translation_complete": "Sva lokalizovana polja su popunjena.", + "wizard_translation_gaps": "Nedostaju neka lokalizovana polja — popuni ih pre predaje.", + "nav_author_wizard": "Čarobnjak za izradu" } diff --git a/src/locales/th.json b/src/locales/th.json index 2fe0f207..4de1dbf1 100644 --- a/src/locales/th.json +++ b/src/locales/th.json @@ -1544,5 +1544,19 @@ "requests_empty": "ยังไม่มีคำขอ", "requests_empty_hint": "โหวตให้โจทย์ที่คุณอยากเห็น — ผู้เขียนติดตามกระดานนี้", "amas_subtitle": "AMA กับผู้ได้เหรียญ กระดานขอโจทย์ และชื่อเสียงของคุณ", - "nav_amas": "ชุมชน" + "nav_amas": "ชุมชน", + "wizard_title": "วิซาร์ดสร้างโจทย์", + "wizard_subtitle": "เจ็ดขั้นจากไอเดียถึงส่ง — พร้อมตรวจความสมบูรณ์แบบสด", + "wizard_problem_id": "id ของโจทย์ร่าง (ไม่บังคับ)", + "wizard_new_problem": "เริ่มโจทย์ใหม่ →", + "wizard_creators_only": "วิซาร์ดมีไว้สำหรับผู้เขียนและผู้ตรวจโจทย์", + "wizard_lint_title": "ตรวจโจทย์", + "wizard_lint_clean": "ไม่มีคำเตือน — โจทย์อ่านง่าย", + "wizard_readability_title": "ความอ่านง่าย", + "wizard_readability_consistent": "แต่ละภาษาอ่านสอดคล้องกัน", + "wizard_readability_drift": "แต่ละภาษาระดับการอ่านต่างกัน — ทำฉบับที่ยากให้ง่ายขึ้น", + "wizard_translation_title": "คำแปลประกอบ", + "wizard_translation_complete": "ทุกฟิลด์แปลภาษาถูกกรอกครบ", + "wizard_translation_gaps": "ฟิลด์แปลบางส่วนขาดหาย — เติมให้ครบก่อนส่ง", + "nav_author_wizard": "วิซาร์ดสร้างโจทย์" } diff --git a/src/locales/tr.json b/src/locales/tr.json index 7e09e4a6..916f4279 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -1544,5 +1544,19 @@ "requests_description_placeholder": "Problemi veya konuyu açıkla…", "requests_open": "İstek aç", "requests_loading": "İstekler yükleniyor…", - "requests_empty": "Henüz istek yok" + "requests_empty": "Henüz istek yok", + "wizard_title": "Yazım sihirbazı", + "wizard_subtitle": "Fikirden göndermeye yedi adım — canlı tamamlama kontrolleriyle.", + "wizard_problem_id": "Taslak problem kimliği (isteğe bağlı)", + "wizard_new_problem": "Yeni problem başlat →", + "wizard_creators_only": "Sihirbaz problem yazarları ve doğrulayıcıları içindir.", + "wizard_lint_title": "Problem lint", + "wizard_lint_clean": "Uyarı yok — problem iyi okunuyor.", + "wizard_readability_title": "Okunabilirlik", + "wizard_readability_consistent": "Dil sürümleri tutarlı okunuyor.", + "wizard_readability_drift": "Dil sürümleri okuma düzeyinde ayrışıyor — zor olanı sadeleştir.", + "wizard_translation_title": "Yan çeviri", + "wizard_translation_complete": "Tüm yerelleştirilmiş alanlar dolu.", + "wizard_translation_gaps": "Bazı yerelleştirilmiş alanlar eksik — göndermeden önce tamamla.", + "nav_author_wizard": "Yazım sihirbazı" } diff --git a/src/locales/uk.json b/src/locales/uk.json index 96334e5c..719d685e 100644 --- a/src/locales/uk.json +++ b/src/locales/uk.json @@ -1544,5 +1544,19 @@ "requests_empty": "Запитів ще немає", "requests_empty_hint": "Голосуйте за задачі, які хочете бачити — автори стежать за цією дошкою.", "amas_subtitle": "AMA з медалістами, дошка запитів задач і ваша репутація.", - "nav_amas": "Спільнота" + "nav_amas": "Спільнота", + "wizard_title": "Майстер створення", + "wizard_subtitle": "Сім кроків від ідеї до надсилання — з живою перевіркою готовності.", + "wizard_problem_id": "Id чернетки (необов'язково)", + "wizard_new_problem": "Почати нову задачу →", + "wizard_creators_only": "Майстер — для авторів і верифікаторів задач.", + "wizard_lint_title": "Лінтер умови", + "wizard_lint_clean": "Попереджень немає — умова читається добре.", + "wizard_readability_title": "Читабельність", + "wizard_readability_consistent": "Мовні версії читаються узгоджено.", + "wizard_readability_drift": "Мовні версії розходяться за рівнем — спростіть складнішу.", + "wizard_translation_title": "Супутній переклад", + "wizard_translation_complete": "Усі локалізовані поля заповнені.", + "wizard_translation_gaps": "Деяких локалізованих полів бракує — заповніть до надсилання.", + "nav_author_wizard": "Майстер створення" } diff --git a/src/locales/vi.json b/src/locales/vi.json index 1ff9d4fe..83c16537 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -1544,5 +1544,19 @@ "requests_empty": "Chưa có yêu cầu", "requests_empty_hint": "Bầu chọn cho bài bạn muốn xem — tác giả theo dõi bảng này.", "amas_subtitle": "AMA với người đoạt huy chương, bảng yêu cầu bài tập và uy tín của bạn.", - "nav_amas": "Cộng đồng" + "nav_amas": "Cộng đồng", + "wizard_title": "Trình tạo bài", + "wizard_subtitle": "Bảy bước từ ý tưởng đến nộp bài — kiểm tra hoàn thành trực tiếp.", + "wizard_problem_id": "Id bản nháp (tùy chọn)", + "wizard_new_problem": "Bắt đầu bài mới →", + "wizard_creators_only": "Trình tạo dành cho người soạn và người kiểm duyệt bài.", + "wizard_lint_title": "Kiểm tra đề bài", + "wizard_lint_clean": "Không có cảnh báo — đề bài đọc tốt.", + "wizard_readability_title": "Độ dễ đọc", + "wizard_readability_consistent": "Các bản dịch đọc nhất quán.", + "wizard_readability_drift": "Các bản dịch lệch mức đọc — đơn giản hóa bản khó hơn.", + "wizard_translation_title": "Bản dịch kèm theo", + "wizard_translation_complete": "Mọi trường bản địa hóa đã được điền.", + "wizard_translation_gaps": "Thiếu một số trường bản dịch — hoàn thành trước khi nộp.", + "nav_author_wizard": "Trình tạo bài" } diff --git a/src/locales/zh-Hans.json b/src/locales/zh-Hans.json index 622817e9..9267fdcc 100644 --- a/src/locales/zh-Hans.json +++ b/src/locales/zh-Hans.json @@ -1544,5 +1544,19 @@ "requests_empty": "还没有请求", "requests_empty_hint": "为你想见的题目投票——作者们关注这块板。", "amas_subtitle": "奖牌得主 AMA、题目请求板与你的声望。", - "nav_amas": "社区" + "nav_amas": "社区", + "wizard_title": "出题向导", + "wizard_subtitle": "从想法到提交的七个步骤——带实时完成检查。", + "wizard_problem_id": "草稿题目编号(可选)", + "wizard_new_problem": "开始新题目 →", + "wizard_creators_only": "向导面向题目作者与审核者。", + "wizard_lint_title": "题面检查", + "wizard_lint_clean": "没有警告——题面易读。", + "wizard_readability_title": "可读性", + "wizard_readability_consistent": "各语言版本阅读体验一致。", + "wizard_readability_drift": "各语言版本阅读水平漂移——请简化较难的版本。", + "wizard_translation_title": "伴随翻译", + "wizard_translation_complete": "所有本地化字段均已填写。", + "wizard_translation_gaps": "部分本地化字段缺失——提交前请补全。", + "nav_author_wizard": "出题向导" } diff --git a/src/locales/zh-Hant.json b/src/locales/zh-Hant.json index 707bcb4c..da85b2eb 100644 --- a/src/locales/zh-Hant.json +++ b/src/locales/zh-Hant.json @@ -1544,5 +1544,19 @@ "requests_empty": "還沒有請求", "requests_empty_hint": "為你想見的題目投票——作者們關注這塊板。", "amas_subtitle": "獎牌得主 AMA、題目請求板與你的聲望。", - "nav_amas": "社群" + "nav_amas": "社群", + "wizard_title": "出題精靈", + "wizard_subtitle": "從想法到提交的七個步驟——帶即時完成檢查。", + "wizard_problem_id": "草稿題目編號(可選)", + "wizard_new_problem": "開始新題目 →", + "wizard_creators_only": "精靈面向題目作者與審核者。", + "wizard_lint_title": "題面檢查", + "wizard_lint_clean": "沒有警告——題面易讀。", + "wizard_readability_title": "可讀性", + "wizard_readability_consistent": "各語言版本閱讀體驗一致。", + "wizard_readability_drift": "各語言版本閱讀水平漂移——請簡化較難的版本。", + "wizard_translation_title": "伴隨翻譯", + "wizard_translation_complete": "所有在地化欄位均已填寫。", + "wizard_translation_gaps": "部分在地化欄位缺失——提交前請補全。", + "nav_author_wizard": "出題精靈" } diff --git a/src/services/ApiService.ts b/src/services/ApiService.ts index 2f515f0b..266c4b67 100644 --- a/src/services/ApiService.ts +++ b/src/services/ApiService.ts @@ -77,6 +77,10 @@ import { DivisionTableRow, AmaDetailRow, AmaListRow, + ReadabilityReport, + StatementLintWarning, + TranslationStatus, + WizardStep, AwardRow, ProblemRequestRow, ReputationProfile, @@ -895,6 +899,20 @@ export const TrackService = { }; export const ProblemService = { + // Wave F items 121/123/124/134 — wizard + statement quality. + getWizardSteps: (problemId?: number) => + apiFetch<{ count: number; steps: WizardStep[] }>( + `/problems/wizard/steps/${problemId ? `?problem_id=${problemId}` : ''}`, + ), + statementLint: (problemId: number) => + apiFetch<{ count: number; warnings: StatementLintWarning[] }>( + `/problems/problems/${problemId}/statement-lint/`, + { method: 'POST' }, + ), + getReadability: (problemId: number) => + apiFetch(`/problems/problems/${problemId}/readability/`), + getTranslationStatus: (problemId: number) => + apiFetch(`/problems/problems/${problemId}/translation-status/`), getProblems: ( filters: { status?: string; authorId?: number | string; curriculumNode?: number | string } = {}, page: { page?: number; pageSize?: number } = {}, diff --git a/src/types/api.ts b/src/types/api.ts index df74a997..f6bdbb72 100644 --- a/src/types/api.ts +++ b/src/types/api.ts @@ -1167,3 +1167,33 @@ export interface ProblemRequestRow { vote_count: number; created_at: string; } + +// ---- Wave F statement quality (items 121/123/124/134) ---- + +export interface WizardStep { + key: string; + title_en: string; + description_en: string; + fields: string[]; + complete: boolean; +} + +export interface StatementLintWarning { + code: string; + locale: string; + message: string; +} + +export interface ReadabilityReport { + locales: Record< + string, + { score: number | null; band: string | null; words: number; sentences: number } + >; + consistent: boolean | null; +} + +export interface TranslationStatus { + fields: string[]; + locales: Record>; + complete: boolean; +}