Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

803 B
Raw Blame
import type { EmailLocale } from "../templates/resolve-locale";
import type { FooterLink } from "./email-footer";

const labels: Record<EmailLocale, { help: string; privacy: string }> = {
  en: { help: "Help", privacy: "Privacy" },
  de: { help: "Hilfe", privacy: "Datenschutz" },
  vi: { help: "Trợ giúp", privacy: "Quyền riêng tư" },
  ja: { help: "ヘルプ", privacy: "プライバシー" },
  "zh-tw": { help: "說明", privacy: "隱私權" },
};

export function footerLinks(
  locale: EmailLocale,
  leading: FooterLink[] = [],
): FooterLink[] {
  const copy = labels[locale];

  return [
    ...leading,
    { label: "kaneo.app", href: "https://kaneo.app" },
    { label: copy.help, href: "https://kaneo.app/docs" },
    { label: copy.privacy, href: "https://kaneo.app/privacy" },
  ];
}