⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
'use client';
import { useTranslations } from 'next-intl';
import { byKey } from '@/utils/messageKey';
// The names in the email list. A template is known by a key from the api, and an edition
// adds its own with its messages, so the message key is built at runtime.
export function useGodEmailTemplateText() {
const t = useTranslations('god.emailTemplates');
const read = byKey(t);
return {
name: (key: string) => read(`templates.${key}.name`),
hint: (key: string) => {
const path = `templates.${key}.hint`;
return t.has(path as never) ? read(path) : null;
},
group: (group: string) => read(`groups.${group}`),
};
}