fix: replace hard-coded strings with translation keys for internationalization (#20672)
* fix: replace hard-coded strings with translation keys for internationalization Co-Authored-By: [email protected] <[email protected]> * fix: replace loading text with translation key Co-Authored-By: [email protected] <[email protected]> * fix: add translation keys for platform plans view Co-Authored-By: [email protected] <[email protected]> * fix: add translation keys for oauth view Co-Authored-By: [email protected] <[email protected]> * fix: add translation keys for users table Co-Authored-By: [email protected] <[email protected]> * fix: add translation keys for oauth view toast messages Co-Authored-By: [email protected] <[email protected]> * fix: add translation keys for verify view Co-Authored-By: [email protected] <[email protected]> * fix: update sendVerificationLogin to use t function Co-Authored-By: [email protected] <[email protected]> * fix: remove duplicate translation keys in common.json Co-Authored-By: [email protected] <[email protected]> * fix: add missing verification_email_sent translation key Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
This commit is contained in:
1 parent
027cad2cfd
commit
4383d23d4c
13 files changed
+93
-57
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { getPlaceholderAvatar } from "@calcom/lib/defaultAvatarImage";
|
||||
import { getUserAvatarUrl } from "@calcom/lib/getAvatarUrl";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { SMSLockState } from "@calcom/prisma/client";
|
||||
import { trpc } from "@calcom/trpc/react";
|
||||
import { Avatar } from "@calcom/ui/components/avatar";
|
||||
@@ -51,6 +52,7 @@ const LockStatusTable = ({
|
||||
teams?: Team[];
|
||||
setSMSLockState: (param: { userId?: number; teamId?: number; lock: boolean }) => void;
|
||||
}) => {
|
||||
const { t } = useLocale();
|
||||
function getActions({ user, team }: { user?: User; team?: Team }) {
|
||||
const smsLockState = user?.smsLockState ?? team?.smsLockState;
|
||||
if (!smsLockState) return [];
|
||||
@@ -89,10 +91,10 @@ const LockStatusTable = ({
|
||||
<>
|
||||
<Table>
|
||||
<Header>
|
||||
<ColumnTitle widthClassNames="w-auto">User/Team</ColumnTitle>
|
||||
<ColumnTitle>Status</ColumnTitle>
|
||||
<ColumnTitle widthClassNames="w-auto">{t("user_team")}</ColumnTitle>
|
||||
<ColumnTitle>{t("status")}</ColumnTitle>
|
||||
<ColumnTitle widthClassNames="w-auto">
|
||||
<span className="sr-only">Edit</span>
|
||||
<span className="sr-only">{t("edit")}</span>
|
||||
</ColumnTitle>
|
||||
</Header>
|
||||
|
||||
|
||||
Reference in new issue
Block a user