Skip to content

⭐️⭐️⭐️ 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.

474 B
Raw Blame
'use client';

import { useTranslations } from 'next-intl';
import type { ProjectFeatures } from '@/lib/api/endpoints/settings';

// What each optional section is called. Shared by the switches that turn a section
// off, their confirmation, and the notice the section shows while it is off, so it
// is named the same everywhere.
export function useFeatureLabel() {
  const t = useTranslations('common.features');
  return (feature: keyof ProjectFeatures) => t(feature);
}