⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
// Fills i18next-style {{placeholders}}, so the preview reuses the app's copy.
export function fillMessage(
template: string,
values: Record<string, string | number>,
) {
return template.replace(/\{\{(\w+)\}\}/g, (match, key: string) =>
key in values ? String(values[key]) : match,
);
}
export function pluralMessage(
messages: { one: string; other: string },
count: number,
) {
return fillMessage(count === 1 ? messages.one : messages.other, { count });
}