peppa/apps/web/lib/comment-hint.ts
Асель 9052f3245f Merge main into task/pep-98: PEP-112…124 texts through the dictionary
Main's new wording (PEP-123 «Продакт» words) kept and wrapped in t()/m();
wording(mode, locale) gives English words for {task}/{runner} placeholders;
glossary check (pnpm lint) passes; English for all new keys (en/merge-*.ts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 22:04:39 +05:00

9 lines
640 B
TypeScript

import { m } from "@peppa/shared/i18n";
/** PEP-115: what happens to a comment on a story, by the story's state (shown under the field). */
export function commentHint(taskStatus: string, hasLive: boolean): string {
if (hasLive) return m("Агент работает — увидит комментарий сразу.");
if (taskStatus === "backlog") return m("Агент ещё не начал — аналитик уточнит постановку и ответит здесь.");
return m("Агент сейчас не работает — увидит комментарий, когда вернётся к задаче.");
}