diff --git a/apps/client/public/locales/en-US/translation.json b/apps/client/public/locales/en-US/translation.json index d3619bc1..209280b1 100644 --- a/apps/client/public/locales/en-US/translation.json +++ b/apps/client/public/locales/en-US/translation.json @@ -340,5 +340,11 @@ "Write anything. Enter \"/\" for commands": "Write anything. Enter \"/\" for commands", "Names do not match": "Names do not match", "Today, {{time}}": "Today, {{time}}", - "Yesterday, {{time}}": "Yesterday, {{time}}" + "Yesterday, {{time}}": "Yesterday, {{time}}", + "Space created successfully": "Space created successfully", + "Space updated successfully": "Space updated successfully", + "Space deleted successfully": "Space deleted successfully", + "Members added successfully": "Members added successfully", + "Member removed successfully": "Member removed successfully", + "Member role updated successfully": "Member role updated successfully" } diff --git a/apps/client/src/features/space/components/space-member-role.tsx b/apps/client/src/features/space/components/space-member-role.tsx index b6b70a47..17e2e358 100644 --- a/apps/client/src/features/space/components/space-member-role.tsx +++ b/apps/client/src/features/space/components/space-member-role.tsx @@ -2,6 +2,8 @@ import { IconCheck } from "@tabler/icons-react"; import { Group, Select, SelectProps, Text } from "@mantine/core"; import React from "react"; import { spaceRoleData } from "@/features/space/types/space-role-data.ts"; +import { useTranslation } from "react-i18next"; +import { IRoleData } from "@/lib/types.ts"; const iconProps = { stroke: 1.5, @@ -38,9 +40,15 @@ export function SpaceMemberRole({ defaultRole, label, }: SpaceMemberRoleProps) { + const { t } = useTranslation(); + return (