From b68040cf53fef4263cc8987f4dd211bd2e88da8a Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 2 Nov 2025 12:37:53 -0700 Subject: [PATCH] feat(translation): add --- internal/i18n/locales/tok.toml | 159 +++++++++++++++++---------------- 1 file changed, 82 insertions(+), 77 deletions(-) diff --git a/internal/i18n/locales/tok.toml b/internal/i18n/locales/tok.toml index 5c7fb4ef28ad53a102c7144e36e0b3a3a17ec00a..94b475f9358ee936e50c6645c516abbb50ad7c8f 100644 --- a/internal/i18n/locales/tok.toml +++ b/internal/i18n/locales/tok.toml @@ -4,111 +4,116 @@ # plan rendering [plan] -no_goal = "No goal set yet" -legend_label = "Legend:" -no_tasks = "No tasks yet." +no_goal = "wile suli li lon ala" +legend_label = "nasin sitelen:" +no_tasks = "pali li lon ala." # status labels [status] -pending = "pending" -in_progress = "in progress" -completed = "completed" -failed = "failed" -cancelled = "cancelled" +pending = "awen" +in_progress = "pali lon" +completed = "pini" +failed = "pakala" +cancelled = "weka" # shared helpers [session] -none_active = "No active session. Start one with `np s`." +none_active = "tenpo pali li lon ala. o open kepeken `np s`." # start command (cmd/s.go) [session.start] -already_active = "Session %s is already active for %s.\n" -already_active_guidance = "Ask your operator whether they want to resume (`np r`) or archive (`np a`) it." -now_active = "Session %s is now active for %s.\n\n" -guidance = """If you haven't already, read any provided issue/ticket/file/webpage/commit/etc. references and thoroughly mull them over. If you already see the contents above, don't re-read them. If there were no referenced files or you don't have a clear picture of the issue, you may selectively read additional relevant files until you do have a clear picture. -Set the goal with `np g s -t "goal title" -d "goal description"`. -Capture the most concise form of the overarching goal using no more than 20 words in the title. Elaborate _usefully_ in the description; don't just repeat the title in more flowery language. In case we're interrupted and need to pick up from this plan later, include: -- Summaries of only the relevant portions of the referenced content. Include their URLs/IDs/hashes. Copy the user's language around the references: if they say 'look at bug REF', use 'Bug: REF' near the summary. If 'issue NUM', then 'Issue: NUM.' -- Paths to the relevant files, and if there are particularly relevant symbols from those files, include them too. DO NOT summarise the files or symbols. Only list them if they're relevant -- An 'Immediate thoughts:' line at the bottom. You should have enough files to have some idea of the issue and its resolution; briefly capture your immediate thoughts in this line, couching with appropriate uncertainty. -Add single tasks with `np t a -t "task" -d "details"`, but prefer batching. For multi-line descriptions, use literal newlines: - np t a -t "first task" -d "step 1 details" -t "second task" -d "step 2 with - more details" -t "third task" -d "step three" -Keep task statuses up to date as you work: - Single update: `np t u -i task-id -s in_progress|completed|failed|cancelled` - But prefer batching: `np t u -i abc123 -s completed -i def456 -s in_progress` -Use `np p` if you need to review the full plan.""" +already_active = "tenpo pali %s li lon nasin %s.\n" +already_active_guidance = "o toki tawa jan lawa sina: ona li wile awen pali (`np r`) anu poki e ona (`np a`)." +now_active = "tenpo pali %s li open lon nasin %s.\n\n" +guidance = """o lukin pona e ijo pana (lipu/issue/tomo sitelen/ilo/lipu lawa/commit/etc.). o pilin e ona lon lawa. sina lukin e ona kama la, o lukin ala sin. taso sina sona ala pona, o alasa lukin e lipu ante lon ijo ni taso: ona li pona tawa wile sina, kepeken tenpo lili taso. + +o pana e wile suli kepeken `np g s -t "nimi wile" -d "toki wile"`. + +nimi wile o lili, tan ni: o kepeken ala nimi mute (li suli lili kepeken nimi 20 taso). lon 'description', o toki pona e sona mute — o kepeken ala ijo sama pi 'title'. ken la pali li pakala; tan ni, o pana e ijo ni: +- sitelen lili taso pi ijo pana. o pana e URL/ID/hash. +- nasin pi lipu suli: nasin pi lipu tawa pali; sina ken pana e nimi pi ijo wawa tan lipu. o ante ala e lipu anu ilo pona ona. +- linja: 'sona pini lon tenpo ni:' o pana e pilin pi tenpo ni lon ijo ni, kepeken musi pi sona lili. + +o pana e pali wan kepeken `np t a -t "pali wan" -d "sona"`; taso o kepeken 'batch' la, li pona mute. tawa linja mute lon 'description', o kepeken linja pi nimi mute: + np t a -t "pali wan" -d "sona pi tenpo 1" -t "pali tu" -d "tenpo 2 la + sona mute" -t "pali tu wan" -d "tenpo 3" + +o awen ante e 'status' pi pali la: + lon pali wan: `np t u -i task-id -s in_progress|completed|failed|cancelled` + taso o kepeken 'batch': `np t u -i abc123 -s completed -i def456 -s in_progress` + +sina wile lukin e lipu pali ale la, o kepeken `np p`.""" # resume command (cmd/r.go) [session.resume] -header = "\nResuming session. To continue:" -guidance = """1. Thoroughly consider the goal and its description. -2. Read the referenced files and symbols, especially in the pending tasks, to understand what work remains. -3. Add more tasks if needed. For multi-line descriptions, use literal newlines: +header = "\nmi awen pali e tenpo pali. tawa kama:" +guidance = """1. o pilin wawa e wile suli en toki ona. +2. o lukin e lipu pana en ijo suli (kepeken pali 'awen'), tawa sona e pali pi sin lon. +3. o pana e pali sin la. linja mute li ken lon 'description': # Single - np t a -t "task title" -d "details" - - # Batch (preferred for multiple additions) - np t a -t "first" -d "step 1 details" -t "second" -d "step 2 with - more details" -t "third" -d "step three"` -4. Update task status as you work: - Single: `np t u -i -s ` - Batch: `np t u -i -s -i -s ` - Statuses: pending, in_progress, completed, failed, cancelled""" -in_progress_count = "\n%d task(s) are in progress.\n" -pending_count = "%d task(s) are pending.\n" + np t a -t "nimi pali" -d "sona" + + # Batch (li pona tawa mute) + np t a -t "wan" -d "tenpo 1" -t "tu" -d "tenpo 2 la + sona mute" -t "tu wan" -d "tenpo 3" +4. o ante e 'status' la: + lon wan: `np t u -i -s ` + lon mute: `np t u -i -s -i -s ` + 'status': pending, in_progress, completed, failed, cancelled""" +in_progress_count = "\n%d pali li lon pali.\n" +pending_count = "%d pali li awen.\n" # archive command (cmd/a.go) [session.archive] -success = "Session %s archived.\n" -none_active = "No active session. Start one with `np s`." +success = "tenpo pali %s li poki lon lipu.\n" +none_active = "tenpo pali li lon ala. o open kepeken `np s`." # goal set command (cmd/g/s.go) [goal.set] -title_required = "Goal title is required." -description_required = "Goal description is required." -already_set = "Goal already set. Use 'np g u' to update it (requires -r/--reason flag)." -guidance = "Study everything above carefully, the reference content, the source code, the documentation, etc. Once you've a solid understanding of how to approach resolving the request, fill out your task list. Prefer adding/updating in batch." +title_required = "nimi pi wile suli li wile." +description_required = "toki 'description' pi wile suli li wile." +already_set = "wile suli li lon. o kepeken 'np g u' tawa ante (o kepeken -r/--reason)." +guidance = "o lukin pona e ijo ale sewi ni: sitelen pana, lipu sona, lipu lawa, ante. sina sona pona la, o pana e lipu pali sina. o pana/ante kepeken 'batch' la, li pona." # goal update command (cmd/g/u.go) [goal.update] -not_set = "No goal set yet. Use 'np g s' first." -reason_required = "Reason is required for goal updates." -title_empty = "Goal title cannot be empty." -no_changes_provided = "Provide at least one of --title or --description to update the goal." -no_changes_made = "Goal already matches the provided values; no changes made." -guidance = "Goal updated. Ensure pending tasks still align with the goal and adjust them and/or add new tasks if necessary." +not_set = "wile suli li lon ala. o kepeken 'np g s' lon pini." +reason_required = "toki tan li wile tawa ante e wile." +title_empty = "nimi pi wile suli li ken ala jo e ala." +no_changes_provided = "o pana e ala lili — kepeken ala wan tan --title anu --description." +no_changes_made = "wile li sama kepeken ni; mi ante ala." +guidance = "mi ante e wile. o kama sona la pali awen li jo 'wile' anu seme; o ante e ona anu o pana e pali sin." # task add command (cmd/t/a.go) [task.add] -count_mismatch = "Number of titles and descriptions must match." -none_provided = "Provide at least one task with -t title -d description." -title_empty_at = "Task title at position %d cannot be empty.\n" -title_empty = "Task title cannot be empty." -success = "Added %d task(s).\n" -guidance = """Update task statuses as you work: - Single: `np t u -i task-id -s in_progress|completed|failed|cancelled`. - Batch: `np t u -i abc123 -s completed -i def456 -s in_progress`.""" +count_mismatch = "nanpa pi nimi en 'description' li sama ala." +none_provided = "o pana e pali ala wan kepeken -t nimi -d 'description'." +title_empty_at = "nimi pali lon nanpa %d li ken ala jo e ala.\n" +title_empty = "nimi pali li wile." +success = "pali %d li lon.\n" +guidance = """o ante e 'status' pi pali: + lon wan: `np t u -i task-id -s in_progress|completed|failed|cancelled`. + lon mute: `np t u -i abc123 -s completed -i def456 -s in_progress`.""" # task list command (cmd/t/t.go) [task.list] -invalid_status = "Invalid status %q. Valid: pending, in_progress, completed, failed, cancelled, all.\n" +invalid_status = "status %q li ike. ken pona: pending, in_progress, completed, failed, cancelled, all.\n" # task update command (cmd/t/u.go) [task.update] -no_ids = "Provide at least one task ID with -i/--id." -title_desc_single_only = "Title and description updates are only supported for single task updates." -status_count_mismatch = "Multiple task IDs provided but status count doesn't match. For batch updates, provide equal -i and -s flags." -invalid_status = "Invalid status %q for task %s. Valid: pending, in_progress, completed, failed, cancelled.\n" -reason_required_status = "Reason (-r/--reason) is required when changing status to cancelled or failed." -not_found = "Task %q not found in current session.\n" -no_updates = "No tasks were updated (all tasks either not found or already at target status)." -success = "Updated %d task(s).\n" -none_pending_archive = "No pending tasks remaining. If you've completed the goal, escalate to the operator and ask whether to archive the session (`np a`)." -continue_working = "Continue working through remaining tasks. Use `np t u -i -s -i -s ` to update multiple tasks at once." -title_empty = "Task title cannot be empty." -invalid_status_single = "Invalid status %q. Valid: pending, in_progress, completed, failed, cancelled.\n" -no_changes_provided = "Provide at least one of --title, --description, or --status to update the task." -reason_required = "Reason (-r/--reason) is required for title/description updates or when changing status to cancelled/failed." -completed_continue = "Task marked completed. Continue working through remaining tasks. Use `np t u -i -s -i -s ` to update multiple at once." -updated_review = "Task updated. Use `np p` to review the full plan." +no_ids = "o pana e i pali kepeken -i/--id." +title_desc_single_only = "ante pi nimi en 'description' li ken taso lon pali wan." +status_count_mismatch = "sina pana e i mute taso nanpa pi 'status' li sama ala. tawa 'batch', o pana e i en s kepeken nanpa sama." +invalid_status = "status %q tawa pali %s li ike. ken pona: pending, in_progress, completed, failed, cancelled.\n" +reason_required_status = "toki tan (-r/--reason) li wile la sina ante e 'status' tawa cancelled anu failed." +not_found = "pali %q li lon ala lon tenpo ni.\n" +no_updates = "mi ante ala e pali (pali ale li lon anu lon 'status' lon ni sama).\n" +success = "mi ante e pali %d.\n" +none_pending_archive = "pali awen li lon ala. sina pali e wile la, o o ante tawa jan lawa: wile ala wile poki e tenpo pali (`np a`)." +continue_working = "o awen pali lon pali li lon. o kepeken `np t u -i -s -i -s ` tawa ante mute." +title_empty = "nimi pali li wile." +invalid_status_single = "status %q li ike. ken pona: pending, in_progress, completed, failed, cancelled.\n" +no_changes_provided = "o pana e ala lili — o kepeken wan tan --title, --description, anu --status." +reason_required = "toki tan (-r/--reason) li wile lon ante e nimi/'description' anu la 'status' tawa cancelled/failure." +completed_continue = "pali li kama pini. o awen pali lon pali li lon. o kepeken `np t u -i -s -i -s ` tawa ante mute." +updated_review = "pali li ante. o kepeken `np p` tawa lukin e lipu pali ale."