diff --git a/apps/site/lesson-isolation.mjs b/apps/site/lesson-isolation.mjs index 413134edf..dd51a9e4c 100644 --- a/apps/site/lesson-isolation.mjs +++ b/apps/site/lesson-isolation.mjs @@ -1,6 +1,6 @@ const LESSON_MODULE = /\/apps\/site\/src\/(?:components\/learn|lib\/learn|locales\/learn)\//; const LESSON_ENTRY = - /\/components\/islands\/(?:LearnHubPage|LearnLessonPage|LearnReload|LearnReviewPage|LessonKitPage|LessonKitReload)\.tsx$/; + /\/components\/islands\/(?:LearnHubPage|LearnLessonPage|LearnPlacementPage|LearnReload|LearnReviewPage|LessonKitPage|LessonKitReload)\.tsx$/; /** @type {(bundle: Record) => string[]} */ export const leakedLessonChunks = (bundle) => { diff --git a/apps/site/src/components/islands/LearnPlacementPage.tsx b/apps/site/src/components/islands/LearnPlacementPage.tsx new file mode 100644 index 000000000..1c039722e --- /dev/null +++ b/apps/site/src/components/islands/LearnPlacementPage.tsx @@ -0,0 +1,9 @@ +import { msg } from "@lingui/core/macro"; +import { LearnPage } from "../learn/learn-page"; + +export const PLACEMENT_TITLE = msg`Estonian placement test · Lymi`; +export const PLACEMENT_BLURB = msg`Find where to start in the free Estonian grammar course: eighteen questions from A1 basics to B1 sentences, with a suggested starting stage and links to each rule.`; + +export default function LearnPlacementPage({ locale }: { locale: string }) { + return ; +} diff --git a/apps/site/src/components/learn/Checkpoint.tsx b/apps/site/src/components/learn/Checkpoint.tsx new file mode 100644 index 000000000..d16ab3be7 --- /dev/null +++ b/apps/site/src/components/learn/Checkpoint.tsx @@ -0,0 +1,60 @@ +import { Trans } from "@lingui/react/macro"; +import { useCallback, useContext } from "react"; +import { STAGES } from "../../lib/learn/catalogue"; +import { drawBalanced } from "../../lib/learn/placement"; +import { Button } from "../Button"; +import { LoadProblem } from "./Drill"; +import { type DrillSource, drillSlugs, type Question, questionsOf } from "./drill-banks"; +import { useDrillSession } from "./drill-session"; +import { DrillRunner } from "./DrillRunner"; +import { SectionContext, useLesson } from "./lesson-context"; +import { QuizCard } from "./Quiz"; + +function drawStageQuestions(sources: readonly DrillSource[], count: number): Question[] { + return drawBalanced(questionsOf(sources), count, (question) => question.source.lesson); +} + +export function Checkpoint({ stageIndex, count = 20 }: { stageIndex: number; count?: number }) { + const { slug, finishSection } = useLesson(); + const section = useContext(SectionContext); + const stage = STAGES[stageIndex]; + const slugs = (stage?.lessons ?? []) + .map((lesson) => lesson.slug) + .filter((item): item is string => !!item && item !== slug && drillSlugs.has(item)); + + const { session, open, more } = useDrillSession( + () => slugs, + (sources) => drawStageQuestions(sources, count), + ); + const finish = useCallback(() => { + if (section) finishSection(section); + }, [section, finishSection]); + + const title = Stage checkpoint; + if (session.status === "open") + return ( + + Try a new set + + } + /> + ); + return ( + + + {session.status === "idle" && session.failed && } + + ); +} diff --git a/apps/site/src/components/learn/DrillRunner.tsx b/apps/site/src/components/learn/DrillRunner.tsx index 6de0df699..f87c796e4 100644 --- a/apps/site/src/components/learn/DrillRunner.tsx +++ b/apps/site/src/components/learn/DrillRunner.tsx @@ -22,19 +22,21 @@ import { KeepEndings } from "./endings"; import { QuizCard, ResultDots, Score } from "./Quiz"; interface Props { - id: "drill" | "warm-up" | "review"; + id: "drill" | "warm-up" | "review" | "checkpoint" | "placement"; lesson: string; title: ReactNode; questions: readonly Question[]; sources: readonly DrillSource[]; repeats: boolean; bandEnd?: ReactNode; + afterScore?: (scores: ReturnType) => ReactNode; onFinish?: () => void; end: ReactNode; } export function DrillRunner(props: Props) { - const { id, lesson, title, questions, sources, repeats, bandEnd, onFinish, end } = props; + const { id, lesson, title, questions, sources, repeats, bandEnd, afterScore, onFinish, end } = + props; const { t } = useLingui(); const [run, dispatch] = useReducer(drillReducer, { items: questions, repeats }, startRun); const [autoplay, setAutoplay] = useState(false); @@ -135,6 +137,7 @@ export function DrillRunner(props: Props) { src: clipUrl(source.lesson, clipId(item.say)), }))} /> + {afterScore?.(ruleScores(run))}
{end} diff --git a/apps/site/src/components/learn/HubView.tsx b/apps/site/src/components/learn/HubView.tsx index 11753a458..22906e750 100644 --- a/apps/site/src/components/learn/HubView.tsx +++ b/apps/site/src/components/learn/HubView.tsx @@ -11,6 +11,7 @@ import { } from "../../lib/learn/catalogue"; import { type Progress, useProgress } from "../../lib/learn/progress"; import { dueIds, localDay, useReview } from "../../lib/learn/review"; +import { localizedPath } from "../../lib/routes"; import { buttonClass } from "../Button"; import { drillSlugs } from "./drill-banks"; import { LearnLayout } from "./LearnLayout"; @@ -93,13 +94,21 @@ function Resume() { {next.et}

- - {begun ? Continue : Start lesson 1} - + ) : ( <> diff --git a/apps/site/src/components/learn/LessonView.tsx b/apps/site/src/components/learn/LessonView.tsx index f3f3d6f12..5f247b9dd 100644 --- a/apps/site/src/components/learn/LessonView.tsx +++ b/apps/site/src/components/learn/LessonView.tsx @@ -45,7 +45,8 @@ export function LessonView({ slug, sub, facts, glossary, sections: taught, recap const sections = drillSlugs.has(slug) ? [...taught, drillSection(t`Drill`)] : taught; const lesson = lessonBySlug(slug); if (!lesson) throw new Error(`No lesson ${slug}`); - const all = [...sections.map((s) => s.id), "recap"]; + const hasRecap = recap.length > 0 || words.length > 0; + const all = hasRecap ? [...sections.map((s) => s.id), "recap"] : sections.map((s) => s.id); const number = lesson.n; const level = lesson.stage.level; @@ -113,7 +114,11 @@ export function LessonView({ slug, sub, facts, glossary, sections: taught, recap
{sections.map((section) => ( @@ -121,16 +126,24 @@ export function LessonView({ slug, sub, facts, glossary, sections: taught, recap {section.children} ))} -
-
    - {recap.map((line, i) => ( - // oxlint-disable-next-line react/no-array-index-key -- the recap is fixed and numbered -
  1. {line}
  2. - ))} -
- -
- finishSection("recap")} /> + {hasRecap && ( +
+
    + {recap.map((line, i) => ( + // oxlint-disable-next-line react/no-array-index-key -- the recap is fixed and numbered +
  1. {line}
  2. + ))} +
+ +
+ )} + { + if (hasRecap) finishSection("recap"); + }} + />
diff --git a/apps/site/src/components/learn/PlacementView.tsx b/apps/site/src/components/learn/PlacementView.tsx new file mode 100644 index 000000000..7f4d51d38 --- /dev/null +++ b/apps/site/src/components/learn/PlacementView.tsx @@ -0,0 +1,167 @@ +import { Trans, useLingui } from "@lingui/react/macro"; +import { ArrowLeft, ArrowRight } from "lucide-react"; +import { lessonPath, STAGES } from "../../lib/learn/catalogue"; +import type { ruleScores } from "../../lib/learn/drill"; +import { drawPlacementStage, firstFailedStage, PER_STAGE } from "../../lib/learn/placement"; +import { localizedPath } from "../../lib/routes"; +import { Button, buttonClass } from "../Button"; +import { LoadProblem } from "./Drill"; +import { type DrillSource, drillSlugs, type Question, questionsOf } from "./drill-banks"; +import { useDrillSession } from "./drill-session"; +import { DrillRunner } from "./DrillRunner"; +import { LearnLayout } from "./LearnLayout"; +import { QuizCard } from "./Quiz"; + +function placementSlugs(): string[] { + return STAGES.flatMap((stage) => { + const drilled = stage.lessons + .map((lesson) => lesson.slug) + .filter((slug): slug is string => !!slug && drillSlugs.has(slug)); + if (drilled.length <= PER_STAGE) return drilled; + const mid = Math.floor(drilled.length / 2); + return [drilled[0] as string, drilled[mid] as string, drilled[drilled.length - 1] as string]; + }); +} + +function drawPlacement(sources: readonly DrillSource[]): Question[] { + const bySlug = new Map(sources.map((source) => [source.lesson, source])); + return STAGES.flatMap((stage) => { + const stageSources = stage.lessons + .map((lesson) => (lesson.slug ? bySlug.get(lesson.slug) : undefined)) + .filter((source): source is DrillSource => !!source); + return drawPlacementStage(questionsOf(stageSources), (question) => question.source.lesson); + }); +} + +function PlacementResult({ scores }: { scores: ReturnType }) { + const { i18n } = useLingui(); + const stageOfLesson = new Map(); + STAGES.forEach((stage, index) => { + for (const lesson of stage.lessons) { + if (lesson.slug) stageOfLesson.set(lesson.slug, index); + } + }); + + const totals = STAGES.map((stage, index) => ({ index, stage, right: 0, total: 0 })); + for (const score of scores) { + const slug = score.rule.split("/")[0] ?? ""; + const idx = stageOfLesson.get(slug); + if (idx !== undefined && totals[idx]) { + totals[idx].right += score.right; + totals[idx].total += score.total; + } + } + const active = totals.filter((entry) => entry.total > 0); + const failed = firstFailedStage(totals); + const weak = failed === undefined ? undefined : totals[failed]; + const targetStage = weak?.stage ?? STAGES[STAGES.length - 1]; + const targetNumber = (weak?.index ?? STAGES.length - 1) + 1; + const startLesson = weak + ? targetStage?.lessons.find((lesson) => lesson.slug) + : targetStage?.lessons.findLast((lesson) => lesson.slug); + + return ( +
+
+ + {weak ? ( + + Recommended start · Stage {targetNumber} ({targetStage?.level}) + + ) : ( + At least two of three right in every stage + )} + +

+ {weak && targetStage ? ( + Start with {i18n._(targetStage.name)} + ) : ( + You can start at the end of the course. + )} +

+ {startLesson?.slug && ( + + Open {i18n._(startLesson.name)} + + )} +
+
    + {active.map(({ index, stage, right, total }) => ( +
  • + + + Stage {index + 1} · {stage.level} · {i18n._(stage.name)} + + + + + {right} of {total} + + +
  • + ))} +
+
+ ); +} + +export function PlacementView() { + const { i18n } = useLingui(); + const { session, open, more } = useDrillSession(placementSlugs, drawPlacement); + + return ( + +
+
+ + +

+ Find your level +

+

+ + Eighteen short questions from A1 basics to B1 sentences. No hints beforehand — at the + end we suggest where in the course to start. + +

+
+ {session.status === "open" ? ( + Placement test} + questions={session.questions} + sources={session.sources} + repeats={false} + afterScore={(scores) => } + end={ + + } + /> + ) : ( + Placement test}> +

+ Takes about 10 minutes. Includes audio and short typed answers. +

+ + {session.status === "idle" && session.failed && } +
+ )} +
+
+ ); +} diff --git a/apps/site/src/components/learn/learn-page.tsx b/apps/site/src/components/learn/learn-page.tsx index f64695912..e4d4a36d7 100644 --- a/apps/site/src/components/learn/learn-page.tsx +++ b/apps/site/src/components/learn/learn-page.tsx @@ -47,10 +47,19 @@ const reviewPage = async (locale: string): Promise => { return { i18n, View: ReviewView }; }; +const placementPage = async (locale: string): Promise => { + const [{ PlacementView }, i18n] = await Promise.all([ + import("./PlacementView"), + learnI18n(locale), + ]); + return { i18n, View: PlacementView }; +}; + export type LearnTarget = | { kind: "lesson"; slug: string } | { kind: "hub" } | { kind: "review" } + | { kind: "placement" } | { kind: "kit" }; function load(target: LearnTarget, locale: string): Promise { @@ -61,6 +70,8 @@ function load(target: LearnTarget, locale: string): Promise { return hubPage(locale); case "review": return reviewPage(locale); + case "placement": + return placementPage(locale); case "kit": return kitPage(locale); } diff --git a/apps/site/src/components/learn/lessons/Kontrolltoo3.tsx b/apps/site/src/components/learn/lessons/Kontrolltoo3.tsx new file mode 100644 index 000000000..91929aa1e --- /dev/null +++ b/apps/site/src/components/learn/lessons/Kontrolltoo3.tsx @@ -0,0 +1,48 @@ +import { Trans, useLingui } from "@lingui/react/macro"; +import { Checkpoint } from "../Checkpoint"; +import { LessonView, Prose } from "../LessonView"; + +const SLUG = "kontrolltoo-3"; + +export function Kontrolltoo3Lesson() { + const { t } = useLingui(); + return ( + + Check what Stage 3 taught: verb base forms, infinitives, modals, going and coming back, + liking, past tense, negation in the past and the future — mixed, with no hints beforehand. + + } + facts={[ + Checkpoint, + 15 minutes, + 20 mixed questions, + ]} + words={[]} + recap={[]} + sections={[ + { + id: "test", + title: t`Stage 3 checkpoint`, + quiz: true, + children: ( + <> + +

+ + Twenty mixed questions from Stage 3. At the end you see your score for each rule + with a link back to the lesson that teaches it. + +

+
+ + + ), + }, + ]} + /> + ); +} diff --git a/apps/site/src/components/learn/lessons/Kontrolltoo4.tsx b/apps/site/src/components/learn/lessons/Kontrolltoo4.tsx new file mode 100644 index 000000000..30c4a8d81 --- /dev/null +++ b/apps/site/src/components/learn/lessons/Kontrolltoo4.tsx @@ -0,0 +1,49 @@ +import { Trans, useLingui } from "@lingui/react/macro"; +import { Checkpoint } from "../Checkpoint"; +import { LessonView, Prose } from "../LessonView"; + +const SLUG = "kontrolltoo-4"; + +export function Kontrolltoo4Lesson() { + const { t } = useLingui(); + return ( + + Check what Stage 4 taught: with and without, pronouns in every case, ordinals and dates, + time expressions, word order, adjectives, comparing, translative and -gi / -ki — mixed, + with no hints beforehand. + + } + facts={[ + Checkpoint, + 15 minutes, + 20 mixed questions, + ]} + words={[]} + recap={[]} + sections={[ + { + id: "test", + title: t`Stage 4 checkpoint`, + quiz: true, + children: ( + <> + +

+ + Twenty mixed questions from Stage 4. At the end you see your score for each rule + with a link back to the lesson that teaches it. + +

+
+ + + ), + }, + ]} + /> + ); +} diff --git a/apps/site/src/components/learn/lessons/Kontrolltoo5.tsx b/apps/site/src/components/learn/lessons/Kontrolltoo5.tsx new file mode 100644 index 000000000..8f970db0d --- /dev/null +++ b/apps/site/src/components/learn/lessons/Kontrolltoo5.tsx @@ -0,0 +1,49 @@ +import { Trans, useLingui } from "@lingui/react/macro"; +import { Checkpoint } from "../Checkpoint"; +import { LessonView, Prose } from "../LessonView"; + +const SLUG = "kontrolltoo-5"; + +export function Kontrolltoo5Lesson() { + const { t } = useLingui(); + return ( + + Check what Stage 5 taught: consonant gradation, total and partial object, plural partitive + and plural cases, perfect and pluperfect, conditional, let’s, impersonal and verb cases — + mixed, with no hints beforehand. + + } + facts={[ + Checkpoint, + 15 minutes, + 20 mixed questions, + ]} + words={[]} + recap={[]} + sections={[ + { + id: "test", + title: t`Stage 5 checkpoint`, + quiz: true, + children: ( + <> + +

+ + Twenty mixed questions from Stage 5. At the end you see your score for each rule + with a link back to the lesson that teaches it. + +

+
+ + + ), + }, + ]} + /> + ); +} diff --git a/apps/site/src/components/learn/lessons/Kontrolltoo6.tsx b/apps/site/src/components/learn/lessons/Kontrolltoo6.tsx new file mode 100644 index 000000000..f508282a2 --- /dev/null +++ b/apps/site/src/components/learn/lessons/Kontrolltoo6.tsx @@ -0,0 +1,49 @@ +import { Trans, useLingui } from "@lingui/react/macro"; +import { Checkpoint } from "../Checkpoint"; +import { LessonView, Prose } from "../LessonView"; + +const SLUG = "kontrolltoo-6"; + +export function Kontrolltoo6Lesson() { + const { t } = useLingui(); + return ( + + Check what Stage 6 taught: particle verbs, through and along, word building, -des and + -mata, participles, conjunctions, relative clauses and reported speech — mixed, with no + hints beforehand. + + } + facts={[ + Checkpoint, + 15 minutes, + 20 mixed questions, + ]} + words={[]} + recap={[]} + sections={[ + { + id: "test", + title: t`Stage 6 checkpoint`, + quiz: true, + children: ( + <> + +

+ + Twenty mixed questions from Stage 6. At the end you see your score for each rule + with a link back to the lesson that teaches it. + +

+
+ + + ), + }, + ]} + /> + ); +} diff --git a/apps/site/src/lib/learn/catalogue.ts b/apps/site/src/lib/learn/catalogue.ts index 9ed0921db..395d469ec 100644 --- a/apps/site/src/lib/learn/catalogue.ts +++ b/apps/site/src/lib/learn/catalogue.ts @@ -342,6 +342,14 @@ export const STAGES: readonly Stage[] = [ minutes: 15, blurb: msg`Free Estonian practice in the past and the future: read about a friend’s weekend and write back, say what you did and didn’t do (olin, ei läinud), what you will do (homme lähen, hakkan õppima, kavatsen tulla), fix verbs in the wrong form, and follow a conversation you can play twice. Every sentence is read aloud.`, }, + { + slug: "kontrolltoo-3", + name: msg`Stage 3 checkpoint`, + title: msg`Estonian stage 3 checkpoint`, + et: "Kontrolltöö 3", + minutes: 15, + blurb: msg`Free Estonian stage 3 checkpoint: twenty mixed questions on verbs, modals, liking, past tense and the future, with no hints beforehand and a score per rule linked to its lesson.`, + }, ], }, { @@ -462,6 +470,14 @@ export const STAGES: readonly Stage[] = [ minutes: 25, blurb: msg`A free Estonian practice lesson on looking for a flat: read an advert, write to the owner, look round the flat, follow a call about two flats and write your own message. It practises floors and dates, -ga, -ta, -na and -ks, adjectives and comparing, keegi and particle verbs. Every sentence is read aloud.`, }, + { + slug: "kontrolltoo-4", + name: msg`Stage 4 checkpoint`, + title: msg`Estonian stage 4 checkpoint`, + et: "Kontrolltöö 4", + minutes: 15, + blurb: msg`Free Estonian stage 4 checkpoint: twenty mixed questions on cases, pronouns, dates, word order, adjectives, comparing and -gi / -ki, with no hints beforehand and a score per rule linked to its lesson.`, + }, ], }, { @@ -574,6 +590,14 @@ export const STAGES: readonly Stage[] = [ minutes: 25, blurb: msg`Free Estonian writing practice: read a message to a landlady, learn the phrases for a polite message (kas te saaksite, aitäh ette, lugupidamisega), follow a phone call about a cold radiator, then write your own message and compare it with a model. Every sentence is read aloud.`, }, + { + slug: "kontrolltoo-5", + name: msg`Stage 5 checkpoint`, + title: msg`Estonian stage 5 checkpoint`, + et: "Kontrolltöö 5", + minutes: 15, + blurb: msg`Free Estonian stage 5 checkpoint: twenty mixed questions on gradation, total and partial object, plural cases, perfect, conditional, impersonal and verb cases, with no hints beforehand and a score per rule linked to its lesson.`, + }, { slug: "eksam-a2", name: msg`A2 mock exam`, @@ -670,6 +694,14 @@ export const STAGES: readonly Stage[] = [ minutes: 25, blurb: msg`Free Estonian B1 practice with news: read a local news story, tell stage 6 forms apart, fill a weather and traffic report, write and fix news sentences, follow a radio interview heard twice and write a short letter to the editor. Every sentence is read aloud.`, }, + { + slug: "kontrolltoo-6", + name: msg`Stage 6 checkpoint`, + title: msg`Estonian stage 6 checkpoint`, + et: "Kontrolltöö 6", + minutes: 15, + blurb: msg`Free Estonian stage 6 checkpoint: twenty mixed questions on B1 particle verbs, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech, with no hints beforehand and a score per rule linked to its lesson.`, + }, { slug: "eksam-b1", name: msg`B1 mock exam`, diff --git a/apps/site/src/lib/learn/placement.test.ts b/apps/site/src/lib/learn/placement.test.ts new file mode 100644 index 000000000..c60c5055b --- /dev/null +++ b/apps/site/src/lib/learn/placement.test.ts @@ -0,0 +1,63 @@ +import { describe, expect, it } from "vitest"; +import { drawBalanced, drawPlacementStage, firstFailedStage, stagePassed } from "./placement"; + +const bank = (lesson: string, rules: number, per: number) => + Array.from({ length: rules * per }, (_, i) => ({ + lesson, + rule: `${lesson}/r${i % rules}`, + id: `${lesson}-${i}`, + })); + +const lessonOf = (q: { lesson: string }) => q.lesson; + +describe("drawBalanced", () => { + const pool = [ + ...bank("a", 6, 4), + ...bank("b", 6, 4), + ...bank("c", 6, 4), + ...bank("d", 6, 4), + ...bank("e", 6, 4), + ...bank("f", 6, 4), + ...bank("g", 6, 4), + ...bank("h", 6, 4), + ...bank("small", 3, 8), + ]; + + it("draws from every lesson when there are fewer lessons than questions", () => { + for (let run = 0; run < 200; run += 1) { + const drawn = drawBalanced(pool, 20, lessonOf); + expect(drawn).toHaveLength(20); + expect(new Set(drawn.map((q) => q.lesson)).size).toBe(9); + expect(new Set(drawn.map((q) => q.id)).size).toBe(20); + } + }); + + it("takes one question per lesson when the lessons outnumber the questions", () => { + const drawn = drawPlacementStage(pool, lessonOf); + expect(new Set(drawn.map((q) => q.lesson)).size).toBe(3); + }); + + it("returns every question when the pool is smaller than the count", () => { + expect(drawBalanced(bank("a", 2, 2), 20, lessonOf)).toHaveLength(4); + }); +}); + +describe("placement scoring", () => { + it("passes a stage at two of three", () => { + expect(stagePassed({ right: 2, total: 3 })).toBe(true); + expect(stagePassed({ right: 1, total: 3 })).toBe(false); + }); + + it("places the learner at the first stage they fail, whatever comes after", () => { + const scores = [ + { right: 3, total: 3 }, + { right: 1, total: 3 }, + { right: 3, total: 3 }, + ]; + expect(firstFailedStage(scores)).toBe(1); + }); + + it("finds no failed stage when every stage passes", () => { + expect(firstFailedStage([{ right: 2, total: 3 }, undefined])).toBeUndefined(); + }); +}); diff --git a/apps/site/src/lib/learn/placement.ts b/apps/site/src/lib/learn/placement.ts new file mode 100644 index 000000000..32a974df4 --- /dev/null +++ b/apps/site/src/lib/learn/placement.ts @@ -0,0 +1,69 @@ +import { shuffle } from "./quiz"; + +export interface Drawn { + rule: string; +} + +export const PLACEMENT_PASS = 2; +export const PER_STAGE = 3; + +export function drawBalanced( + pool: readonly Q[], + count: number, + lessonOf: (question: Q) => string, +): Q[] { + const mixed = shuffle(pool); + const picked: Q[] = []; + const usedRules = new Set(); + const lessons = shuffle([...new Set(mixed.map(lessonOf))]); + for (const lesson of lessons) { + if (picked.length >= count) break; + const next = mixed.find((question) => lessonOf(question) === lesson); + if (next) { + picked.push(next); + usedRules.add(next.rule); + } + } + const byRule = new Map(); + for (const question of mixed) { + if (picked.includes(question)) continue; + const list = byRule.get(question.rule) ?? []; + list.push(question); + byRule.set(question.rule, list); + } + const fresh = shuffle([...byRule.keys()].filter((rule) => !usedRules.has(rule))); + const seen = shuffle([...byRule.keys()].filter((rule) => usedRules.has(rule))); + const rules = [...fresh, ...seen]; + for (let round = 0; picked.length < count; round += 1) { + let added = false; + for (const rule of rules) { + const next = byRule.get(rule)?.[round]; + if (next && picked.length < count) { + picked.push(next); + added = true; + } + } + if (!added) break; + } + return shuffle(picked); +} + +export function drawPlacementStage( + pool: readonly Q[], + lessonOf: (question: Q) => string, +): Q[] { + return drawBalanced(pool, PER_STAGE, lessonOf); +} + +export interface StageScore { + right: number; + total: number; +} + +export const stagePassed = ({ right, total }: StageScore): boolean => + right >= Math.min(PLACEMENT_PASS, total); + +export function firstFailedStage(scores: readonly (StageScore | undefined)[]): number | undefined { + const index = scores.findIndex((score) => score && score.total > 0 && !stagePassed(score)); + return index === -1 ? undefined : index; +} diff --git a/apps/site/src/lib/learn/verified-forms.json b/apps/site/src/lib/learn/verified-forms.json index ef1c1764c..2e71daf39 100644 --- a/apps/site/src/lib/learn/verified-forms.json +++ b/apps/site/src/lib/learn/verified-forms.json @@ -1125,6 +1125,7 @@ "kontorit": "kontor", "kontroll": "kontroll", "kontrolli": "kontroll, kontrollima", + "kontrolltöö": "kontrolltöö", "kontserdid": "kontsert", "kontserdil": "kontsert", "kontserdile": "kontsert", diff --git a/apps/site/src/lib/routes.ts b/apps/site/src/lib/routes.ts index 171720df2..3e1cd2c4a 100644 --- a/apps/site/src/lib/routes.ts +++ b/apps/site/src/lib/routes.ts @@ -14,6 +14,7 @@ export const localizedPages = { estonian: "/languages/estonian", learn: "/estonian/learn", learnReview: "/estonian/learn/review", + learnPlacement: "/estonian/learn/tasemetest", ...languagePages, assistants: "/ai-assistants", grokAssistant: "/ai-assistants/grok-bot", @@ -41,7 +42,7 @@ export type LocalizedPage = keyof typeof localizedPages; * Pages built and reachable in every locale but not launched: kept out of the sitemap, out of * search with `noindex`, and linked from nowhere. Launching one is removing it from this list. */ -export const prelaunchPages: readonly LocalizedPage[] = ["learn", "learnReview"]; +export const prelaunchPages: readonly LocalizedPage[] = ["learn", "learnReview", "learnPlacement"]; export const isPrelaunch = (page: LocalizedPage | undefined): boolean => !!page && prelaunchPages.includes(page); diff --git a/apps/site/src/locales/en.po b/apps/site/src/locales/en.po index 73411a449..c93ccbe03 100644 --- a/apps/site/src/locales/en.po +++ b/apps/site/src/locales/en.po @@ -2594,6 +2594,9 @@ msgstr "Estonian A1 · Autumn course" msgid "Estonian A2 · Tuesdays" msgstr "Estonian A2 · Tuesdays" +msgid "Estonian placement test · Lymi" +msgstr "Estonian placement test · Lymi" + msgid "Estonian startup" msgstr "Estonian startup" @@ -2864,6 +2867,9 @@ msgstr "Filter" msgid "Finance and accounting" msgstr "Finance and accounting" +msgid "Find where to start in the free Estonian grammar course: eighteen questions from A1 basics to B1 sentences, with a suggested starting stage and links to each rule." +msgstr "Find where to start in the free Estonian grammar course: eighteen questions from A1 basics to B1 sentences, with a suggested starting stage and links to each rule." + msgid "Find your exam" msgstr "Find your exam" diff --git a/apps/site/src/locales/learn/Kit/en.po b/apps/site/src/locales/learn/Kit/en.po index f2c9fc7b7..4ed3bc143 100644 --- a/apps/site/src/locales/learn/Kit/en.po +++ b/apps/site/src/locales/learn/Kit/en.po @@ -629,6 +629,9 @@ msgstr "At a café" msgid "at home" msgstr "at home" +msgid "At least two of three right in every stage" +msgstr "At least two of three right in every stage" + msgid "at school" msgstr "at school" @@ -788,6 +791,9 @@ msgstr "Each way an answer can come out: right, nearly right, another form, word msgid "Ei before the bare verb says not: ei loe." msgstr "Ei before the bare verb says not: ei loe." +msgid "Eighteen short questions from A1 basics to B1 sentences. No hints beforehand — at the end we suggest where in the course to start." +msgstr "Eighteen short questions from A1 basics to B1 sentences. No hints beforehand — at the end we suggest where in the course to start." + msgid "Elative" msgstr "Elative" @@ -935,6 +941,18 @@ msgstr "Estonian reported speech and the -vat form" msgid "Estonian somebody and nobody: -gi and -ki" msgstr "Estonian somebody and nobody: -gi and -ki" +msgid "Estonian stage 3 checkpoint" +msgstr "Estonian stage 3 checkpoint" + +msgid "Estonian stage 4 checkpoint" +msgstr "Estonian stage 4 checkpoint" + +msgid "Estonian stage 5 checkpoint" +msgstr "Estonian stage 5 checkpoint" + +msgid "Estonian stage 6 checkpoint" +msgstr "Estonian stage 6 checkpoint" + msgid "Estonian time expressions: when things happen" msgstr "Estonian time expressions: when things happen" @@ -972,6 +990,9 @@ msgstr "Fill the gap" msgid "Fill the gaps" msgstr "Fill the gaps" +msgid "Find your level" +msgstr "Find your level" + msgid "Five minutes remaining." msgstr "Five minutes remaining." @@ -1041,6 +1062,18 @@ msgstr "Free Estonian practice for phone calls: answer a call (halloo, Mari kuul msgid "Free Estonian practice in the past and the future: read about a friend’s weekend and write back, say what you did and didn’t do (olin, ei läinud), what you will do (homme lähen, hakkan õppima, kavatsen tulla), fix verbs in the wrong form, and follow a conversation you can play twice. Every sentence is read aloud." msgstr "Free Estonian practice in the past and the future: read about a friend’s weekend and write back, say what you did and didn’t do (olin, ei läinud), what you will do (homme lähen, hakkan õppima, kavatsen tulla), fix verbs in the wrong form, and follow a conversation you can play twice. Every sentence is read aloud." +msgid "Free Estonian stage 3 checkpoint: twenty mixed questions on verbs, modals, liking, past tense and the future, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Free Estonian stage 3 checkpoint: twenty mixed questions on verbs, modals, liking, past tense and the future, with no hints beforehand and a score per rule linked to its lesson." + +msgid "Free Estonian stage 4 checkpoint: twenty mixed questions on cases, pronouns, dates, word order, adjectives, comparing and -gi / -ki, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Free Estonian stage 4 checkpoint: twenty mixed questions on cases, pronouns, dates, word order, adjectives, comparing and -gi / -ki, with no hints beforehand and a score per rule linked to its lesson." + +msgid "Free Estonian stage 5 checkpoint: twenty mixed questions on gradation, total and partial object, plural cases, perfect, conditional, impersonal and verb cases, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Free Estonian stage 5 checkpoint: twenty mixed questions on gradation, total and partial object, plural cases, perfect, conditional, impersonal and verb cases, with no hints beforehand and a score per rule linked to its lesson." + +msgid "Free Estonian stage 6 checkpoint: twenty mixed questions on B1 particle verbs, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Free Estonian stage 6 checkpoint: twenty mixed questions on B1 particle verbs, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech, with no hints beforehand and a score per rule linked to its lesson." + msgid "Free Estonian writing practice: read a message to a landlady, learn the phrases for a polite message (kas te saaksite, aitäh ette, lugupidamisega), follow a phone call about a cold radiator, then write your own message and compare it with a model. Every sentence is read aloud." msgstr "Free Estonian writing practice: read a message to a landlady, learn the phrases for a polite message (kas te saaksite, aitäh ette, lugupidamisega), follow a phone call about a cold radiator, then write your own message and compare it with a model. Every sentence is read aloud." @@ -1762,6 +1795,10 @@ msgstr "One word is wrong. Tap it, then write it right." msgid "Onto and off in Estonian: -le and -lt" msgstr "Onto and off in Estonian: -le and -lt" +#. placeholder {0}: i18n._(startLesson.name) +msgid "Open {0}" +msgstr "Open {0}" + msgid "or *pole*" msgstr "or *pole*" @@ -1847,6 +1884,9 @@ msgstr "Pick up where you left off" msgid "Place words: on, under, behind" msgstr "Place words: on, under, behind" +msgid "Placement test" +msgstr "Placement test" + msgid "Play" msgstr "Play" @@ -1977,6 +2017,10 @@ msgstr "Read it again" msgid "Reading" msgstr "Reading" +#. placeholder {0}: targetStage?.level +msgid "Recommended start · Stage {targetNumber} ({0})" +msgstr "Recommended start · Stage {targetNumber} ({0})" + msgid "Relative clauses" msgstr "Relative clauses" @@ -2138,21 +2182,52 @@ msgstr "Speak more slowly, please." msgid "Speed" msgstr "Speed" +#. placeholder {0}: index + 1 +#. placeholder {1}: stage.level +#. placeholder {2}: i18n._(stage.name) +msgid "Stage {0} · {1} · {2}" +msgstr "Stage {0} · {1} · {2}" + +msgid "Stage 3 checkpoint" +msgstr "Stage 3 checkpoint" + +msgid "Stage 4 checkpoint" +msgstr "Stage 4 checkpoint" + +msgid "Stage 5 checkpoint" +msgstr "Stage 5 checkpoint" + +msgid "Stage 6 checkpoint" +msgstr "Stage 6 checkpoint" + +msgid "Stage checkpoint" +msgstr "Stage checkpoint" + msgid "Start" msgstr "Start" +msgid "Start checkpoint" +msgstr "Start checkpoint" + msgid "Start here" msgstr "Start here" msgid "Start lesson 1" msgstr "Start lesson 1" +msgid "Start placement test" +msgstr "Start placement test" + msgid "Start the conversation" msgstr "Start the conversation" msgid "Start timer" msgstr "Start timer" +#. placeholder {0}: i18n._(targetStage.name) +msgid "Start with {0}" +msgstr "Start with {0}" + msgid "Stem changes" msgstr "Stem changes" @@ -2177,9 +2252,15 @@ msgstr "Table of forms" msgid "Table of forms, a verb" msgstr "Table of forms, a verb" +msgid "Take again" +msgstr "Take again" + msgid "Take an umbrella!" msgstr "Take an umbrella!" +msgid "Takes about 10 minutes. Includes audio and short typed answers." +msgstr "Takes about 10 minutes. Includes audio and short typed answers." + msgid "Talk: meeting Mari" msgstr "Talk: meeting Mari" @@ -2535,6 +2616,9 @@ msgctxt "the statement is true" msgid "True" msgstr "True" +msgid "Try a new set" +msgstr "Try a new set" + msgid "Try again" msgstr "Try again" @@ -2826,6 +2910,9 @@ msgstr "you" msgid "You are Jaan, a doctor from Tartu. Mari speaks first; pick what you say back." msgstr "You are Jaan, a doctor from Tartu. Mari speaks first; pick what you say back." +msgid "You can start at the end of the course." +msgstr "You can start at the end of the course." + msgid "You don’t have a car." msgstr "You don’t have a car." diff --git a/apps/site/src/locales/learn/Kit/ru.po b/apps/site/src/locales/learn/Kit/ru.po index 3ca894ed6..796dcd08b 100644 --- a/apps/site/src/locales/learn/Kit/ru.po +++ b/apps/site/src/locales/learn/Kit/ru.po @@ -629,6 +629,9 @@ msgstr "В кафе" msgid "at home" msgstr "дома" +msgid "At least two of three right in every stage" +msgstr "В каждом этапе верно не меньше двух из трёх" + msgid "at school" msgstr "в школе" @@ -788,6 +791,9 @@ msgstr "Все возможные результаты: верно, почти msgid "Ei before the bare verb says not: ei loe." msgstr "Ei перед глаголом без окончания значит «не»: ei loe." +msgid "Eighteen short questions from A1 basics to B1 sentences. No hints beforehand — at the end we suggest where in the course to start." +msgstr "Восемнадцать коротких вопросов от основ A1 до предложений B1. Без подсказок заранее — в конце подскажем, с какого этапа начать." + msgid "Elative" msgstr "Элатив" @@ -935,6 +941,18 @@ msgstr "Косвенная речь и форма на -vat в эстонско msgid "Estonian somebody and nobody: -gi and -ki" msgstr "Эстонские «кто-то» и «никто»: -gi и -ki" +msgid "Estonian stage 3 checkpoint" +msgstr "Контрольная работа 3 этапа эстонского" + +msgid "Estonian stage 4 checkpoint" +msgstr "Контрольная работа 4 этапа эстонского" + +msgid "Estonian stage 5 checkpoint" +msgstr "Контрольная работа 5 этапа эстонского" + +msgid "Estonian stage 6 checkpoint" +msgstr "Контрольная работа 6 этапа эстонского" + msgid "Estonian time expressions: when things happen" msgstr "Как сказать «когда» по-эстонски" @@ -972,6 +990,9 @@ msgstr "Заполни пропуск" msgid "Fill the gaps" msgstr "Заполни пропуски" +msgid "Find your level" +msgstr "Определи свой уровень" + msgid "Five minutes remaining." msgstr "Осталось пять минут." @@ -1041,6 +1062,18 @@ msgstr "Бесплатная практика эстонского для тел msgid "Free Estonian practice in the past and the future: read about a friend’s weekend and write back, say what you did and didn’t do (olin, ei läinud), what you will do (homme lähen, hakkan õppima, kavatsen tulla), fix verbs in the wrong form, and follow a conversation you can play twice. Every sentence is read aloud." msgstr "Бесплатная практика эстонского в прошедшем и будущем: прочитай о выходных подруги и ответь, скажи, что ты делал и чего не делал (olin, ei läinud), что будешь делать (homme lähen, hakkan õppima, kavatsen tulla), исправь глаголы в неверной форме и пойми разговор, который можно прослушать дважды. Каждое предложение озвучено." +msgid "Free Estonian stage 3 checkpoint: twenty mixed questions on verbs, modals, liking, past tense and the future, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Бесплатная контрольная 3 этапа эстонского: двадцать смешанных вопросов на глаголы, модальные глаголы, предпочтения, прошедшее и будущее время, без подсказок заранее и с разбором по правилам." + +msgid "Free Estonian stage 4 checkpoint: twenty mixed questions on cases, pronouns, dates, word order, adjectives, comparing and -gi / -ki, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Бесплатная контрольная 4 этапа эстонского: двадцать смешанных вопросов на падежи, местоимения, даты, порядок слов, прилагательные, сравнения и -gi / -ki, без подсказок заранее и с разбором по правилам." + +msgid "Free Estonian stage 5 checkpoint: twenty mixed questions on gradation, total and partial object, plural cases, perfect, conditional, impersonal and verb cases, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Бесплатная контрольная 5 этапа эстонского: двадцать смешанных вопросов на чередование, полный и частичный объект, множественные падежи, перфект, условное наклонение, безличную форму и управление глаголов." + +msgid "Free Estonian stage 6 checkpoint: twenty mixed questions on B1 particle verbs, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Бесплатная контрольная 6 этапа эстонского: двадцать смешанных вопросов на глаголы с частицами B1, словообразование, -des и -mata, причастия, союзы, придаточные предложения и косвенную речь." + msgid "Free Estonian writing practice: read a message to a landlady, learn the phrases for a polite message (kas te saaksite, aitäh ette, lugupidamisega), follow a phone call about a cold radiator, then write your own message and compare it with a model. Every sentence is read aloud." msgstr "Бесплатная практика письма на эстонском: прочитай письмо хозяйке квартиры, выучи фразы для вежливого письма (kas te saaksite, aitäh ette, lugupidamisega), послушай телефонный разговор о холодной батарее, а потом напиши своё письмо и сравни его с образцом. Каждое предложение озвучено." @@ -1762,6 +1795,10 @@ msgstr "Одно слово неверное. Нажми на него и нап msgid "Onto and off in Estonian: -le and -lt" msgstr "На стол и со стола: -le и -lt по-эстонски" +#. placeholder {0}: i18n._(startLesson.name) +msgid "Open {0}" +msgstr "Открыть «{0}»" + msgid "or *pole*" msgstr "или *pole*" @@ -1847,6 +1884,9 @@ msgstr "Продолжи с того же места" msgid "Place words: on, under, behind" msgstr "Где что: на, под, за" +msgid "Placement test" +msgstr "Тест на уровень" + msgid "Play" msgstr "Воспроизвести" @@ -1977,6 +2017,10 @@ msgstr "Перечитать" msgid "Reading" msgstr "Чтение" +#. placeholder {0}: targetStage?.level +msgid "Recommended start · Stage {targetNumber} ({0})" +msgstr "Рекомендованный старт · Этап {targetNumber} ({0})" + msgid "Relative clauses" msgstr "Придаточные с «который»" @@ -2138,21 +2182,52 @@ msgstr "Говорите помедленнее, пожалуйста." msgid "Speed" msgstr "Скорость" +#. placeholder {0}: index + 1 +#. placeholder {1}: stage.level +#. placeholder {2}: i18n._(stage.name) +msgid "Stage {0} · {1} · {2}" +msgstr "Этап {0} · {1} · {2}" + +msgid "Stage 3 checkpoint" +msgstr "Контрольная этапа 3" + +msgid "Stage 4 checkpoint" +msgstr "Контрольная этапа 4" + +msgid "Stage 5 checkpoint" +msgstr "Контрольная этапа 5" + +msgid "Stage 6 checkpoint" +msgstr "Контрольная этапа 6" + +msgid "Stage checkpoint" +msgstr "Контрольная работа" + msgid "Start" msgstr "Начать" +msgid "Start checkpoint" +msgstr "Начать контрольную" + msgid "Start here" msgstr "Начни отсюда" msgid "Start lesson 1" msgstr "Начать урок 1" +msgid "Start placement test" +msgstr "Начать тест на уровень" + msgid "Start the conversation" msgstr "Начать разговор" msgid "Start timer" msgstr "Запустить таймер" +#. placeholder {0}: i18n._(targetStage.name) +msgid "Start with {0}" +msgstr "Начни с темы «{0}»" + msgid "Stem changes" msgstr "Изменение основы" @@ -2177,9 +2252,15 @@ msgstr "Таблица форм" msgid "Table of forms, a verb" msgstr "Таблица форм глагола" +msgid "Take again" +msgstr "Пройти ещё раз" + msgid "Take an umbrella!" msgstr "Возьми зонт!" +msgid "Takes about 10 minutes. Includes audio and short typed answers." +msgstr "Займёт около 10 минут. Включает аудио и короткие письменные ответы." + msgid "Talk: meeting Mari" msgstr "Разговор: знакомство с Мари" @@ -2535,6 +2616,9 @@ msgctxt "the statement is true" msgid "True" msgstr "Верно" +msgid "Try a new set" +msgstr "Попробовать новый набор" + msgid "Try again" msgstr "Попробовать ещё раз" @@ -2826,6 +2910,9 @@ msgstr "ты" msgid "You are Jaan, a doctor from Tartu. Mari speaks first; pick what you say back." msgstr "Ты Яан, врач из Тарту. Мари говорит первой; выбирай, что ответить." +msgid "You can start at the end of the course." +msgstr "Можно начинать с конца курса." + msgid "You don’t have a car." msgstr "У тебя нет машины." diff --git a/apps/site/src/locales/learn/Kit/uk.po b/apps/site/src/locales/learn/Kit/uk.po index 6e14fb706..ae8ccaae9 100644 --- a/apps/site/src/locales/learn/Kit/uk.po +++ b/apps/site/src/locales/learn/Kit/uk.po @@ -629,6 +629,9 @@ msgstr "У кав’ярні" msgid "at home" msgstr "вдома" +msgid "At least two of three right in every stage" +msgstr "У кожному етапі правильно щонайменше два з трьох" + msgid "at school" msgstr "у школі" @@ -788,6 +791,9 @@ msgstr "Усі можливі результати: правильно, майж msgid "Ei before the bare verb says not: ei loe." msgstr "Ei перед дієсловом без закінчення означає «не»: ei loe." +msgid "Eighteen short questions from A1 basics to B1 sentences. No hints beforehand — at the end we suggest where in the course to start." +msgstr "Вісімнадцять коротких запитань від основ A1 до речень B1. Без підказок наперед — наприкінці підкажемо, з якого етапу почати." + msgid "Elative" msgstr "Елатив" @@ -935,6 +941,18 @@ msgstr "Непряма мова та форма на -vat в естонські msgid "Estonian somebody and nobody: -gi and -ki" msgstr "Естонські «хтось» і «ніхто»: -gi та -ki" +msgid "Estonian stage 3 checkpoint" +msgstr "Контрольна робота 3 етапу естонської" + +msgid "Estonian stage 4 checkpoint" +msgstr "Контрольна робота 4 етапу естонської" + +msgid "Estonian stage 5 checkpoint" +msgstr "Контрольна робота 5 етапу естонської" + +msgid "Estonian stage 6 checkpoint" +msgstr "Контрольна робота 6 етапу естонської" + msgid "Estonian time expressions: when things happen" msgstr "Як сказати «коли» естонською" @@ -972,6 +990,9 @@ msgstr "Заповни пропуск" msgid "Fill the gaps" msgstr "Заповни пропуски" +msgid "Find your level" +msgstr "Визнач свій рівень" + msgid "Five minutes remaining." msgstr "Залишилося п’ять хвилин." @@ -1041,6 +1062,18 @@ msgstr "Безкоштовна практика естонської для те msgid "Free Estonian practice in the past and the future: read about a friend’s weekend and write back, say what you did and didn’t do (olin, ei läinud), what you will do (homme lähen, hakkan õppima, kavatsen tulla), fix verbs in the wrong form, and follow a conversation you can play twice. Every sentence is read aloud." msgstr "Безкоштовна практика естонської в минулому й майбутньому: прочитай про вихідні подруги й відповідай, скажи, що ти робив і чого не робив (olin, ei läinud), що робитимеш (homme lähen, hakkan õppima, kavatsen tulla), виправ дієслова в хибній формі й зрозумій розмову, яку можна прослухати двічі. Кожне речення озвучене." +msgid "Free Estonian stage 3 checkpoint: twenty mixed questions on verbs, modals, liking, past tense and the future, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Безкоштовна контрольна 3 етапу естонської: двадцять змішаних запитань на дієслова, модальні дієслова, уподобання, минулий і майбутній час, без підказок наперед та з результатом за кожним правилом." + +msgid "Free Estonian stage 4 checkpoint: twenty mixed questions on cases, pronouns, dates, word order, adjectives, comparing and -gi / -ki, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Безкоштовна контрольна 4 етапу естонської: двадцять змішаних запитань на відмінки, займенники, дати, порядок слів, прикметники, порівняння та -gi / -ki, без підказок наперед та з результатом за кожним правилом." + +msgid "Free Estonian stage 5 checkpoint: twenty mixed questions on gradation, total and partial object, plural cases, perfect, conditional, impersonal and verb cases, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Безкоштовна контрольна 5 етапу естонської: двадцять змішаних запитань на чергування, повний і частковий додаток, множинні відмінки, перфект, умовний спосіб, безособову форму й керування дієслів, без підказок наперед." + +msgid "Free Estonian stage 6 checkpoint: twenty mixed questions on B1 particle verbs, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech, with no hints beforehand and a score per rule linked to its lesson." +msgstr "Безкоштовна контрольна 6 етапу естонської: двадцять змішаних запитань на дієслова з частками B1, словотвір, -des і -mata, дієприкметники, сполучники, підрядні речення та непряму мову, без підказок наперед." + msgid "Free Estonian writing practice: read a message to a landlady, learn the phrases for a polite message (kas te saaksite, aitäh ette, lugupidamisega), follow a phone call about a cold radiator, then write your own message and compare it with a model. Every sentence is read aloud." msgstr "Безкоштовна практика письма естонською: прочитай лист власниці квартири, вивчи фрази для ввічливого листа (kas te saaksite, aitäh ette, lugupidamisega), послухай телефонну розмову про холодну батарею, а тоді напиши свій лист і порівняй його зі зразком. Кожне речення озвучене." @@ -1762,6 +1795,10 @@ msgstr "Одне слово неправильне. Торкнись його й msgid "Onto and off in Estonian: -le and -lt" msgstr "На стіл і зі столу: -le і -lt естонською" +#. placeholder {0}: i18n._(startLesson.name) +msgid "Open {0}" +msgstr "Відкрити «{0}»" + msgid "or *pole*" msgstr "або *pole*" @@ -1847,6 +1884,9 @@ msgstr "Продовж з того ж місця" msgid "Place words: on, under, behind" msgstr "Де що: на, під, за" +msgid "Placement test" +msgstr "Тест на рівень" + msgid "Play" msgstr "Відтворити" @@ -1977,6 +2017,10 @@ msgstr "Перечитати" msgid "Reading" msgstr "Читання" +#. placeholder {0}: targetStage?.level +msgid "Recommended start · Stage {targetNumber} ({0})" +msgstr "Рекомендований старт · Етап {targetNumber} ({0})" + msgid "Relative clauses" msgstr "Підрядні речення з «який»" @@ -2138,21 +2182,52 @@ msgstr "Говоріть повільніше, будь ласка." msgid "Speed" msgstr "Швидкість" +#. placeholder {0}: index + 1 +#. placeholder {1}: stage.level +#. placeholder {2}: i18n._(stage.name) +msgid "Stage {0} · {1} · {2}" +msgstr "Етап {0} · {1} · {2}" + +msgid "Stage 3 checkpoint" +msgstr "Контрольна етапу 3" + +msgid "Stage 4 checkpoint" +msgstr "Контрольна етапу 4" + +msgid "Stage 5 checkpoint" +msgstr "Контрольна етапу 5" + +msgid "Stage 6 checkpoint" +msgstr "Контрольна етапу 6" + +msgid "Stage checkpoint" +msgstr "Контрольна робота" + msgid "Start" msgstr "Почати" +msgid "Start checkpoint" +msgstr "Почати контрольну" + msgid "Start here" msgstr "Почни звідси" msgid "Start lesson 1" msgstr "Почати урок 1" +msgid "Start placement test" +msgstr "Почати тест на рівень" + msgid "Start the conversation" msgstr "Почати розмову" msgid "Start timer" msgstr "Запустити таймер" +#. placeholder {0}: i18n._(targetStage.name) +msgid "Start with {0}" +msgstr "Почни з теми «{0}»" + msgid "Stem changes" msgstr "Зміни основи" @@ -2177,9 +2252,15 @@ msgstr "Таблиця форм" msgid "Table of forms, a verb" msgstr "Таблиця форм дієслова" +msgid "Take again" +msgstr "Пройти ще раз" + msgid "Take an umbrella!" msgstr "Візьми парасольку!" +msgid "Takes about 10 minutes. Includes audio and short typed answers." +msgstr "Займе близько 10 хвилин. Є аудіо й короткі письмові відповіді." + msgid "Talk: meeting Mari" msgstr "Розмова: знайомство з Марі" @@ -2535,6 +2616,9 @@ msgctxt "the statement is true" msgid "True" msgstr "Правда" +msgid "Try a new set" +msgstr "Спробувати новий набір" + msgid "Try again" msgstr "Спробувати ще раз" @@ -2826,6 +2910,9 @@ msgstr "ти" msgid "You are Jaan, a doctor from Tartu. Mari speaks first; pick what you say back." msgstr "Ти Яан, лікар із Тарту. Марі говорить першою; обирай, що відповісти." +msgid "You can start at the end of the course." +msgstr "Можна починати з кінця курсу." + msgid "You don’t have a car." msgstr "У тебе немає машини." diff --git a/apps/site/src/locales/learn/Kontrolltoo3/en.po b/apps/site/src/locales/learn/Kontrolltoo3/en.po new file mode 100644 index 000000000..d9d479d5f --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo3/en.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: en\n" + +msgid "15 minutes" +msgstr "15 minutes" + +msgid "20 mixed questions" +msgstr "20 mixed questions" + +msgid "Check what Stage 3 taught: verb base forms, infinitives, modals, going and coming back, liking, past tense, negation in the past and the future — mixed, with no hints beforehand." +msgstr "Check what Stage 3 taught: verb base forms, infinitives, modals, going and coming back, liking, past tense, negation in the past and the future — mixed, with no hints beforehand." + +msgid "Checkpoint" +msgstr "Checkpoint" + +msgid "Stage 3 checkpoint" +msgstr "Stage 3 checkpoint" + +msgid "Twenty mixed questions from Stage 3. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Twenty mixed questions from Stage 3. At the end you see your score for each rule with a link back to the lesson that teaches it." diff --git a/apps/site/src/locales/learn/Kontrolltoo3/ru.po b/apps/site/src/locales/learn/Kontrolltoo3/ru.po new file mode 100644 index 000000000..1fbc75c15 --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo3/ru.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: ru\n" + +msgid "15 minutes" +msgstr "15 минут" + +msgid "20 mixed questions" +msgstr "20 смешанных вопросов" + +msgid "Check what Stage 3 taught: verb base forms, infinitives, modals, going and coming back, liking, past tense, negation in the past and the future — mixed, with no hints beforehand." +msgstr "Проверь материал этапа 3: основные формы глаголов, инфинитивы, модальные глаголы, движение, предпочтения, прошедшее время, отрицание в прошлом и будущее время — всё вместе и без подсказок заранее." + +msgid "Checkpoint" +msgstr "Контрольная" + +msgid "Stage 3 checkpoint" +msgstr "Контрольная этапа 3" + +msgid "Twenty mixed questions from Stage 3. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцать смешанных вопросов из этапа 3. В конце ты увидишь результат по каждому правилу со ссылкой на нужный урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo3/uk.po b/apps/site/src/locales/learn/Kontrolltoo3/uk.po new file mode 100644 index 000000000..991acc8a1 --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo3/uk.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: uk\n" + +msgid "15 minutes" +msgstr "15 хвилин" + +msgid "20 mixed questions" +msgstr "20 змішаних запитань" + +msgid "Check what Stage 3 taught: verb base forms, infinitives, modals, going and coming back, liking, past tense, negation in the past and the future — mixed, with no hints beforehand." +msgstr "Перевір матеріал етапу 3: основні форми дієслів, інфінітиви, модальні дієслова, рух, уподобання, минулий час, заперечення в минулому й майбутній час — усе разом і без підказок наперед." + +msgid "Checkpoint" +msgstr "Контрольна" + +msgid "Stage 3 checkpoint" +msgstr "Контрольна етапу 3" + +msgid "Twenty mixed questions from Stage 3. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцять змішаних запитань з етапу 3. Наприкінці ти побачиш результат за кожним правилом із посиланням на відповідний урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo4/en.po b/apps/site/src/locales/learn/Kontrolltoo4/en.po new file mode 100644 index 000000000..83cdb0a7c --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo4/en.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: en\n" + +msgid "15 minutes" +msgstr "15 minutes" + +msgid "20 mixed questions" +msgstr "20 mixed questions" + +msgid "Check what Stage 4 taught: with and without, pronouns in every case, ordinals and dates, time expressions, word order, adjectives, comparing, translative and -gi / -ki — mixed, with no hints beforehand." +msgstr "Check what Stage 4 taught: with and without, pronouns in every case, ordinals and dates, time expressions, word order, adjectives, comparing, translative and -gi / -ki — mixed, with no hints beforehand." + +msgid "Checkpoint" +msgstr "Checkpoint" + +msgid "Stage 4 checkpoint" +msgstr "Stage 4 checkpoint" + +msgid "Twenty mixed questions from Stage 4. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Twenty mixed questions from Stage 4. At the end you see your score for each rule with a link back to the lesson that teaches it." diff --git a/apps/site/src/locales/learn/Kontrolltoo4/ru.po b/apps/site/src/locales/learn/Kontrolltoo4/ru.po new file mode 100644 index 000000000..bd6fb226a --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo4/ru.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: ru\n" + +msgid "15 minutes" +msgstr "15 минут" + +msgid "20 mixed questions" +msgstr "20 смешанных вопросов" + +msgid "Check what Stage 4 taught: with and without, pronouns in every case, ordinals and dates, time expressions, word order, adjectives, comparing, translative and -gi / -ki — mixed, with no hints beforehand." +msgstr "Проверь материал этапа 4: «с» и «без», местоимения во всех падежах, порядковые числительные и даты, выражения времени, порядок слов, прилагательные, сравнения, транслатив и -gi / -ki — всё вместе и без подсказок заранее." + +msgid "Checkpoint" +msgstr "Контрольная" + +msgid "Stage 4 checkpoint" +msgstr "Контрольная этапа 4" + +msgid "Twenty mixed questions from Stage 4. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцать смешанных вопросов из этапа 4. В конце ты увидишь результат по каждому правилу со ссылкой на нужный урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo4/uk.po b/apps/site/src/locales/learn/Kontrolltoo4/uk.po new file mode 100644 index 000000000..5ce889ba2 --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo4/uk.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: uk\n" + +msgid "15 minutes" +msgstr "15 хвилин" + +msgid "20 mixed questions" +msgstr "20 змішаних запитань" + +msgid "Check what Stage 4 taught: with and without, pronouns in every case, ordinals and dates, time expressions, word order, adjectives, comparing, translative and -gi / -ki — mixed, with no hints beforehand." +msgstr "Перевір матеріал етапу 4: «з» і «без», займенники в усіх відмінках, порядкові числівники й дати, вирази часу, порядок слів, прикметники, порівняння, транслатив і -gi / -ki — усе разом і без підказок наперед." + +msgid "Checkpoint" +msgstr "Контрольна" + +msgid "Stage 4 checkpoint" +msgstr "Контрольна етапу 4" + +msgid "Twenty mixed questions from Stage 4. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцять змішаних запитань з етапу 4. Наприкінці ти побачиш результат за кожним правилом із посиланням на відповідний урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo5/en.po b/apps/site/src/locales/learn/Kontrolltoo5/en.po new file mode 100644 index 000000000..6ebd2a8dd --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo5/en.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: en\n" + +msgid "15 minutes" +msgstr "15 minutes" + +msgid "20 mixed questions" +msgstr "20 mixed questions" + +msgid "Check what Stage 5 taught: consonant gradation, total and partial object, plural partitive and plural cases, perfect and pluperfect, conditional, let’s, impersonal and verb cases — mixed, with no hints beforehand." +msgstr "Check what Stage 5 taught: consonant gradation, total and partial object, plural partitive and plural cases, perfect and pluperfect, conditional, let’s, impersonal and verb cases — mixed, with no hints beforehand." + +msgid "Checkpoint" +msgstr "Checkpoint" + +msgid "Stage 5 checkpoint" +msgstr "Stage 5 checkpoint" + +msgid "Twenty mixed questions from Stage 5. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Twenty mixed questions from Stage 5. At the end you see your score for each rule with a link back to the lesson that teaches it." diff --git a/apps/site/src/locales/learn/Kontrolltoo5/ru.po b/apps/site/src/locales/learn/Kontrolltoo5/ru.po new file mode 100644 index 000000000..63f4f985d --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo5/ru.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: ru\n" + +msgid "15 minutes" +msgstr "15 минут" + +msgid "20 mixed questions" +msgstr "20 смешанных вопросов" + +msgid "Check what Stage 5 taught: consonant gradation, total and partial object, plural partitive and plural cases, perfect and pluperfect, conditional, let’s, impersonal and verb cases — mixed, with no hints beforehand." +msgstr "Проверь материал этапа 5: чередование согласных, полный и частичный объект, множественный партитив и падежи множественного числа, перфект и плюсквамперфект, условное наклонение, побуждение, безличная форма и управление глаголов." + +msgid "Checkpoint" +msgstr "Контрольная" + +msgid "Stage 5 checkpoint" +msgstr "Контрольная этапа 5" + +msgid "Twenty mixed questions from Stage 5. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцать смешанных вопросов из этапа 5. В конце ты увидишь результат по каждому правилу со ссылкой на нужный урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo5/uk.po b/apps/site/src/locales/learn/Kontrolltoo5/uk.po new file mode 100644 index 000000000..af4b42bef --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo5/uk.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: uk\n" + +msgid "15 minutes" +msgstr "15 хвилин" + +msgid "20 mixed questions" +msgstr "20 змішаних запитань" + +msgid "Check what Stage 5 taught: consonant gradation, total and partial object, plural partitive and plural cases, perfect and pluperfect, conditional, let’s, impersonal and verb cases — mixed, with no hints beforehand." +msgstr "Перевір матеріал етапу 5: чергування приголосних, повний і частковий додаток, множинний партитив і відмінки множини, перфект і плюсквамперфект, умовний спосіб, спонукання, безособова форма й керування дієслів — без підказок наперед." + +msgid "Checkpoint" +msgstr "Контрольна" + +msgid "Stage 5 checkpoint" +msgstr "Контрольна етапу 5" + +msgid "Twenty mixed questions from Stage 5. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцять змішаних запитань з етапу 5. Наприкінці ти побачиш результат за кожним правилом із посиланням на відповідний урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo6/en.po b/apps/site/src/locales/learn/Kontrolltoo6/en.po new file mode 100644 index 000000000..2d0673b84 --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo6/en.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: en\n" + +msgid "15 minutes" +msgstr "15 minutes" + +msgid "20 mixed questions" +msgstr "20 mixed questions" + +msgid "Check what Stage 6 taught: particle verbs, through and along, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech — mixed, with no hints beforehand." +msgstr "Check what Stage 6 taught: particle verbs, through and along, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech — mixed, with no hints beforehand." + +msgid "Checkpoint" +msgstr "Checkpoint" + +msgid "Stage 6 checkpoint" +msgstr "Stage 6 checkpoint" + +msgid "Twenty mixed questions from Stage 6. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Twenty mixed questions from Stage 6. At the end you see your score for each rule with a link back to the lesson that teaches it." diff --git a/apps/site/src/locales/learn/Kontrolltoo6/ru.po b/apps/site/src/locales/learn/Kontrolltoo6/ru.po new file mode 100644 index 000000000..8c4bf4fdf --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo6/ru.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: ru\n" + +msgid "15 minutes" +msgstr "15 минут" + +msgid "20 mixed questions" +msgstr "20 смешанных вопросов" + +msgid "Check what Stage 6 taught: particle verbs, through and along, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech — mixed, with no hints beforehand." +msgstr "Проверь материал этапа 6: глаголы с частицами, предлоги направления, словообразование, -des и -mata, причастия, союзы, придаточные предложения и косвенная речь — всё вместе и без подсказок заранее." + +msgid "Checkpoint" +msgstr "Контрольная" + +msgid "Stage 6 checkpoint" +msgstr "Контрольная этапа 6" + +msgid "Twenty mixed questions from Stage 6. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцать смешанных вопросов из этапа 6. В конце ты увидишь результат по каждому правилу со ссылкой на нужный урок." diff --git a/apps/site/src/locales/learn/Kontrolltoo6/uk.po b/apps/site/src/locales/learn/Kontrolltoo6/uk.po new file mode 100644 index 000000000..df6485bbe --- /dev/null +++ b/apps/site/src/locales/learn/Kontrolltoo6/uk.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"POT-Creation-Date: 2026-11-25 02:08+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: @lingui/cli\n" +"Language: uk\n" + +msgid "15 minutes" +msgstr "15 хвилин" + +msgid "20 mixed questions" +msgstr "20 змішаних запитань" + +msgid "Check what Stage 6 taught: particle verbs, through and along, word building, -des and -mata, participles, conjunctions, relative clauses and reported speech — mixed, with no hints beforehand." +msgstr "Перевір матеріал етапу 6: дієслова з частками, прийменники напрямку, словотвір, -des і -mata, дієприкметники, сполучники, підрядні речення та непряма мова — усе разом і без підказок наперед." + +msgid "Checkpoint" +msgstr "Контрольна" + +msgid "Stage 6 checkpoint" +msgstr "Контрольна етапу 6" + +msgid "Twenty mixed questions from Stage 6. At the end you see your score for each rule with a link back to the lesson that teaches it." +msgstr "Двадцять змішаних запитань з етапу 6. Наприкінці ти побачиш результат за кожним правилом із посиланням на відповідний урок." diff --git a/apps/site/src/locales/ru.po b/apps/site/src/locales/ru.po index 93b454d01..9aa8279fb 100644 --- a/apps/site/src/locales/ru.po +++ b/apps/site/src/locales/ru.po @@ -2595,6 +2595,9 @@ msgstr "Эстонский A1 · осенний курс" msgid "Estonian A2 · Tuesdays" msgstr "Эстонский A2 · по вторникам" +msgid "Estonian placement test · Lymi" +msgstr "Тест на уровень эстонского · Lymi" + msgid "Estonian startup" msgstr "Эстонский стартап" @@ -2865,6 +2868,9 @@ msgstr "Фильтр" msgid "Finance and accounting" msgstr "Финансы и бухгалтерия" +msgid "Find where to start in the free Estonian grammar course: eighteen questions from A1 basics to B1 sentences, with a suggested starting stage and links to each rule." +msgstr "Узнай, с какого этапа начать бесплатный курс эстонской грамматики: восемнадцать вопросов от основ A1 до предложений B1, с рекомендованным стартом и ссылками на каждое правило." + msgid "Find your exam" msgstr "Найти свой экзамен" diff --git a/apps/site/src/locales/uk.po b/apps/site/src/locales/uk.po index 37642eddd..e072346f2 100644 --- a/apps/site/src/locales/uk.po +++ b/apps/site/src/locales/uk.po @@ -2595,6 +2595,9 @@ msgstr "Естонська A1 · осінній курс" msgid "Estonian A2 · Tuesdays" msgstr "Естонська A2 · щовівторка" +msgid "Estonian placement test · Lymi" +msgstr "Тест на рівень естонської · Lymi" + msgid "Estonian startup" msgstr "Естонський стартап" @@ -2865,6 +2868,9 @@ msgstr "Фільтр" msgid "Finance and accounting" msgstr "Фінанси й бухгалтерія" +msgid "Find where to start in the free Estonian grammar course: eighteen questions from A1 basics to B1 sentences, with a suggested starting stage and links to each rule." +msgstr "Дізнайся, з якого етапу почати безкоштовний курс естонської граматики: вісімнадцять запитань від основ A1 до речень B1, із рекомендованим стартом і посиланнями на кожне правило." + msgid "Find your exam" msgstr "Знайти свій іспит" diff --git a/apps/site/src/pages/estonian/learn/tasemetest.astro b/apps/site/src/pages/estonian/learn/tasemetest.astro new file mode 100644 index 000000000..25ab9a7e3 --- /dev/null +++ b/apps/site/src/pages/estonian/learn/tasemetest.astro @@ -0,0 +1,13 @@ +--- +import LearnPlacementPage, { PLACEMENT_BLURB, PLACEMENT_TITLE } from "../../../components/islands/LearnPlacementPage"; +import { prepareLearnPage } from "../../../components/learn/learn-page"; +import LearnReload from "../../../components/islands/LearnReload"; +import MarketingLayout from "../../../layouts/MarketingLayout.astro"; + +await prepareLearnPage({ kind: "placement" }, "en"); +--- + + + + + diff --git a/apps/site/src/pages/ru/estonian/learn/tasemetest.astro b/apps/site/src/pages/ru/estonian/learn/tasemetest.astro new file mode 100644 index 000000000..5d82698d6 --- /dev/null +++ b/apps/site/src/pages/ru/estonian/learn/tasemetest.astro @@ -0,0 +1,13 @@ +--- +import LearnPlacementPage, { PLACEMENT_BLURB, PLACEMENT_TITLE } from "../../../../components/islands/LearnPlacementPage"; +import { prepareLearnPage } from "../../../../components/learn/learn-page"; +import LearnReload from "../../../../components/islands/LearnReload"; +import MarketingLayout from "../../../../layouts/MarketingLayout.astro"; + +await prepareLearnPage({ kind: "placement" }, "ru"); +--- + + + + + diff --git a/apps/site/src/pages/uk/estonian/learn/tasemetest.astro b/apps/site/src/pages/uk/estonian/learn/tasemetest.astro new file mode 100644 index 000000000..4913771f0 --- /dev/null +++ b/apps/site/src/pages/uk/estonian/learn/tasemetest.astro @@ -0,0 +1,13 @@ +--- +import LearnPlacementPage, { PLACEMENT_BLURB, PLACEMENT_TITLE } from "../../../../components/islands/LearnPlacementPage"; +import { prepareLearnPage } from "../../../../components/learn/learn-page"; +import LearnReload from "../../../../components/islands/LearnReload"; +import MarketingLayout from "../../../../layouts/MarketingLayout.astro"; + +await prepareLearnPage({ kind: "placement" }, "uk"); +--- + + + + + diff --git a/docs/analytics.md b/docs/analytics.md index 08b74215b..a18e9b807 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -78,7 +78,7 @@ Page properties contain approved routes, with private dynamic IDs replaced by `: | `android_download_started` | Site Worker, when `GET lymi.app/download/android` answers with its redirect to Lymi on Google Play: `from` and the first touch, sent, filtered and labelled with `ui_locale` exactly as `mac_download_started` is. It counts visits to the Google Play page, not installs. Answers how many visitors go to Google Play, and from which page and campaign. | | `add_to_lymi_clicked`, `deck_added` | Browser add intent, then server's new published membership. Existing membership is not another addition. On the public site any followed link to `/add/` is the intent, from a deck page or an exam page alike, and the event's `$pathname` says which. | | `site_link_followed` | Cookieless browser click on a public site link inside the top bar's Use cases or Explore menu, the phone menu, the footer, a page hero's actions, a homepage section below the use cases, the language row on `/languages`, the row linking the assistant pages to each other, or the line under an import guide's opening that leads to the matching comparison page: `place` (`use_cases_menu`, `explore_menu`, `phone_menu`, `footer`, `hero`, `landing`, `languages_hub`, `assistant_pages`, `import_guide`) and `target`, the followed path without its locale prefix, query or hash. The event's `$pathname` is the page the click came from. It answers which menu and footer entries lead visitors to use case, exam and shelf pages, whether the homepage hero's Browse free decks and assistant links are used, which homepage sections lead on to deck, docs and use case pages, which language pages `/languages` visitors open next, whether visitors move from one assistant's page to another's, and whether an import guide's reader goes on to compare Lymi with the app they are leaving; Get started leaves the site and counts as `signed_up` with its first touch instead. Top-bar links outside the menus are not counted. | -| `learn_quiz_finished` | Cookieless browser, when a visitor finishes a quiz in an Estonian lesson: `lesson`, the lesson's slug (such as `numbrid`), `quiz`, the quiz's fixed id in it (such as `teist-kummend`, or `typed-tens` for the typed quiz's range), `right` and `total` rounds, and `slips`, how many of the right rounds had a slip in spelling, only when there were any (`SentenceRound`, `FixRound`). The practice parts send it too: `Listening`, `Reading` and a `drag` `GapPassage` at Check with `total` questions or gaps, each statement of a `match` question counting as one, a `pick` `GapPassage` when its last gap is filled, a `Dialogue` at its end with `right` replies picked first time out of `total` turns, a `Sort` at Check with `right` words in their bin out of `total`, a `Match` once every pair is locked with `right` pairs matched without a wrong try out of `total`, and a `Writing` at Done with `right` checks ticked out of `total`. A `Quiz` of `OrderRound`, `FormRound`, `SentenceRound` or `FixRound` reports as any quiz. `DrillRunner` sends it at the end of each set of questions from drill banks: `quiz` is `drill` in a lesson's drill, `warm-up` in the warm-up on lesson `lesson`, or `review` with `lesson` `review` on the review page; `right` counts first answers, and `missed_rules` lists the rules with a first answer wrong as `lesson/rule` keys from the banks (such as `osastav/pole`), at most ten, never a learner's answer. Sent again after Try again or Ten more. Answers which quizzes visitors finish and which ones they get wrong, whether they come back to warm up and review, whether a right sentence is still misspelled, and which rules they keep missing. | +| `learn_quiz_finished` | Cookieless browser, when a visitor finishes a quiz in an Estonian lesson: `lesson`, the lesson's slug (such as `numbrid`), `quiz`, the quiz's fixed id in it (such as `teist-kummend`, or `typed-tens` for the typed quiz's range), `right` and `total` rounds, and `slips`, how many of the right rounds had a slip in spelling, only when there were any (`SentenceRound`, `FixRound`). The practice parts send it too: `Listening`, `Reading` and a `drag` `GapPassage` at Check with `total` questions or gaps, each statement of a `match` question counting as one, a `pick` `GapPassage` when its last gap is filled, a `Dialogue` at its end with `right` replies picked first time out of `total` turns, a `Sort` at Check with `right` words in their bin out of `total`, a `Match` once every pair is locked with `right` pairs matched without a wrong try out of `total`, and a `Writing` at Done with `right` checks ticked out of `total`. A `Quiz` of `OrderRound`, `FormRound`, `SentenceRound` or `FixRound` reports as any quiz. `DrillRunner` sends it at the end of each set of questions from drill banks: `quiz` is `drill` in a lesson's drill, `warm-up` in the warm-up on lesson `lesson`, `checkpoint` in a stage checkpoint, `placement` with `lesson` `tasemetest` on the placement test, or `review` with `lesson` `review` on the review page; `right` counts first answers, and `missed_rules` lists the rules with a first answer wrong as `lesson/rule` keys from the banks (such as `osastav/pole`), at most ten, never a learner's answer. Sent again after Try again or Ten more. Answers which quizzes visitors finish and which ones they get wrong, whether they come back to warm up and review, whether a right sentence is still misspelled, and which rules they keep missing. | | `learn_lesson_finished` | Cookieless browser, once per browser, when the last section of an Estonian lesson is done: `lesson`. Progress lives in the visitor's `localStorage`, so a cleared browser can send it again. Answers how many visitors finish each lesson. | | `site_showcase_steered` | Cookieless browser, when a visitor steers a `Showcase` on a public page: `action` (`picked` an item by click or Enter, which stops the rotation, or `replayed` the current demo) and `item`, the item's `id` (such as `routine`), never its text. The event's `$pathname` is the page. Nothing is sent while it plays by itself. Answers whether visitors steer the use-case demos on the assistant pages and the homepage AI section, which uses they open by hand, and whether anyone replays a demo. | | `ready_decks_narrowed` | Browser, when a learner changes what Today's first-run ready-made decks are about, never for the choice made for them on arrival: `topic` (`all`, `language` or `test`), the catalogue `language` tag for a language, and `searched` when the choice came from typing in the list. What was typed is never sent. Answers which topics new learners look for and whether the list needs its search. |