-
{item.title}
+
{t(item.title || "")}
{item.description && (
= observer((props) => {
// store hooks
const { data } = useUser();
const { allowPermissions } = useUserPermissions();
+ const { t } = useTranslation();
// auth
const isOwner = view?.owned_by === data?.id;
const isAdmin = allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.WORKSPACE);
@@ -54,26 +56,26 @@ export const WorkspaceViewQuickActions: React.FC = observer((props) => {
{
key: "edit",
action: () => setUpdateViewModal(true),
- title: "Edit",
+ title: t("edit"),
icon: Pencil,
shouldRender: isOwner,
},
{
key: "open-new-tab",
action: handleOpenInNewTab,
- title: "Open in new tab",
+ title: t("open_in_new_tab"),
icon: ExternalLink,
},
{
key: "copy-link",
action: handleCopyText,
- title: "Copy link",
+ title: t("copy_link"),
icon: LinkIcon,
},
{
key: "delete",
action: () => setDeleteViewModal(true),
- title: "Delete",
+ title: t("delete"),
icon: Trash2,
shouldRender: isOwner || isAdmin,
},