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.

373 B
Raw Blame
import { useTranslation } from "react-i18next";

/** Built-in roles are translated; custom roles show their name. */
export function useInstanceRoleLabel() {
  const { t } = useTranslation();
  return (role: string) =>
    role === "admin"
      ? t("settings:adminUsers.roles.admin")
      : role === "user"
        ? t("settings:adminUsers.roles.user")
        : role;
}