Skip to content

Commit d32ea46

Browse files
committed
feat(core, react): add types, schemas, and i18n for invitations
1 parent 088fd14 commit d32ea46

13 files changed

Lines changed: 1047 additions & 0 deletions

File tree

packages/core/src/i18n/translations/en-US.json

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,5 +996,124 @@
996996
"install_guardian_description": "In order to continue, install the Auth0 Guardian app via the app store from your mobile device"
997997
}
998998
}
999+
},
1000+
"member_management": {
1001+
"header": {
1002+
"title": "Members",
1003+
"description": "Manage the members of your organization."
1004+
},
1005+
"invite_button": "Invite Member",
1006+
"tabs": {
1007+
"members": "Members",
1008+
"invitations": "Invitations"
1009+
},
1010+
"member": {
1011+
"table": {
1012+
"columns": {
1013+
"name": "Name",
1014+
"email": "Email",
1015+
"roles": "Roles"
1016+
},
1017+
"empty_message": "No members found."
1018+
},
1019+
"remove": {
1020+
"title": "Remove Member",
1021+
"description": "Are you sure you want to remove ${name} from this organization?",
1022+
"confirm_button": "Remove",
1023+
"cancel_button": "Cancel",
1024+
"success": "${name} has been removed from the organization."
1025+
},
1026+
"error": {
1027+
"fetch_failed": "Failed to load members. Please try again.",
1028+
"remove_failed": "Failed to remove member. Please try again."
1029+
}
1030+
},
1031+
"invitation": {
1032+
"table": {
1033+
"columns": {
1034+
"email": "Email",
1035+
"status": "Status",
1036+
"inviter": "Invited By",
1037+
"created_at": "Created At",
1038+
"expires_at": "Expires At",
1039+
"roles": "Roles"
1040+
},
1041+
"empty_message": "No pending invitations.",
1042+
"search_placeholder": "Search by email...",
1043+
"filter_by_role": "Filter By Role",
1044+
"all_roles": "All",
1045+
"reset_filter": "Reset",
1046+
"showing_results": "Showing ${start}-${end} of ${total}",
1047+
"status_pending": "Pending",
1048+
"status_expired": "Expired"
1049+
},
1050+
"actions": {
1051+
"menu_label": "Actions",
1052+
"view_details": "View Details",
1053+
"copy_url": "Copy Invitation URL",
1054+
"revoke_and_resend": "Revoke and Resend",
1055+
"revoke": "Revoke Invitation"
1056+
},
1057+
"create": {
1058+
"title": "Invite Member",
1059+
"description": "Send an invitation to join this organization.",
1060+
"email_label": "Email Address",
1061+
"email_placeholder": "Enter email address and press Enter",
1062+
"email_helper": "Add up to 10 members in a comma-separated list.",
1063+
"email_limit_error": "You can add up to 10 email addresses.",
1064+
"email_invalid_error": "Please enter a valid email address.",
1065+
"email_duplicate_error": "This email has already been added.",
1066+
"email_required_error": "Please enter at least one email address.",
1067+
"roles_label": "Roles",
1068+
"roles_placeholder": "Select roles (optional)",
1069+
"provider_label": "Provider",
1070+
"provider_placeholder": "Select provider (optional)",
1071+
"provider_helper": "If none is selected, the member can log in with any provider.",
1072+
"submit_button": "Send Invite",
1073+
"creating": "Creating...",
1074+
"cancel_button": "Cancel",
1075+
"success": "Invitation sent to ${email}."
1076+
},
1077+
"details": {
1078+
"title": "Invitation Details",
1079+
"email_label": "Email",
1080+
"status_label": "Status",
1081+
"roles_label": "Roles",
1082+
"provider_label": "Identity Provider",
1083+
"created_at_label": "Created",
1084+
"expires_at_label": "Expires",
1085+
"invited_by_label": "Invited By",
1086+
"invitation_url_label": "Invitation URL",
1087+
"copy_url_button": "Copy",
1088+
"close_button": "Close",
1089+
"revoke_button": "Revoke Invitation",
1090+
"resend_button": "Revoke and Resend"
1091+
},
1092+
"revoke": {
1093+
"title": "Revoke Invitation",
1094+
"description": "Are you sure you want to revoke the invitation to ${email}?",
1095+
"confirm_button": "Revoke",
1096+
"cancel_button": "Cancel",
1097+
"success": "Invitation for ${email} has been revoked."
1098+
},
1099+
"revoke_resend": {
1100+
"title": "Revoke and Resend Invitation",
1101+
"description": "Are you sure you want to revoke the current invitation and send a new one to ${email}?",
1102+
"confirm_button": "Proceed",
1103+
"cancel_button": "Cancel"
1104+
},
1105+
"success": {
1106+
"url_copied": "Invitation URL copied to clipboard.",
1107+
"invitation_resent": "Invitation resent to ${email}."
1108+
},
1109+
"error": {
1110+
"fetch_failed": "Failed to load invitations. Please try again.",
1111+
"create_failed": "Failed to send invitation. Please try again.",
1112+
"revoke_failed": "Failed to revoke invitation. Please try again.",
1113+
"resend_failed": "Failed to resend invitation. Please try again.",
1114+
"revoke_resend_failed": "Failed to revoke and resend invitation. Please try again.",
1115+
"copy_url_failed": "Failed to copy invitation URL. Please try again."
1116+
}
1117+
}
9991118
}
10001119
}

packages/core/src/i18n/translations/ja.json

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,5 +998,124 @@
998998
"install_guardian_description": "続行するには、お使いのモバイルデバイスからアプリストア経由でAuth0 Guardianアプリをインストールしてください。"
999999
}
10001000
}
1001+
},
1002+
"member_management": {
1003+
"header": {
1004+
"title": "メンバー",
1005+
"description": "組織のメンバーを管理します。"
1006+
},
1007+
"invite_button": "メンバーを招待",
1008+
"tabs": {
1009+
"members": "メンバー",
1010+
"invitations": "招待"
1011+
},
1012+
"member": {
1013+
"table": {
1014+
"columns": {
1015+
"name": "名前",
1016+
"email": "メール",
1017+
"roles": "ロール"
1018+
},
1019+
"empty_message": "メンバーが見つかりません。"
1020+
},
1021+
"remove": {
1022+
"title": "メンバーを削除",
1023+
"description": "この組織から${name}を削除してもよろしいですか?",
1024+
"confirm_button": "削除",
1025+
"cancel_button": "キャンセル",
1026+
"success": "${name}が組織から削除されました。"
1027+
},
1028+
"error": {
1029+
"fetch_failed": "メンバーの読み込みに失敗しました。もう一度お試しください。",
1030+
"remove_failed": "メンバーの削除に失敗しました。もう一度お試しください。"
1031+
}
1032+
},
1033+
"invitation": {
1034+
"table": {
1035+
"columns": {
1036+
"email": "メール",
1037+
"status": "ステータス",
1038+
"inviter": "招待者",
1039+
"created_at": "作成日",
1040+
"expires_at": "有効期限",
1041+
"roles": "ロール"
1042+
},
1043+
"empty_message": "保留中の招待はありません。",
1044+
"search_placeholder": "メールで検索...",
1045+
"filter_by_role": "ロールで絞り込み",
1046+
"all_roles": "すべて",
1047+
"reset_filter": "リセット",
1048+
"showing_results": "${start}〜${end} / ${total}件",
1049+
"status_pending": "保留中",
1050+
"status_expired": "期限切れ"
1051+
},
1052+
"actions": {
1053+
"menu_label": "アクション",
1054+
"view_details": "詳細を表示",
1055+
"copy_url": "招待URLをコピー",
1056+
"revoke_and_resend": "取り消して再送信",
1057+
"revoke": "招待を取り消す"
1058+
},
1059+
"create": {
1060+
"title": "メンバーを招待",
1061+
"description": "この組織に参加するための招待を送信します。",
1062+
"email_label": "メールアドレス",
1063+
"email_placeholder": "メールアドレスを入力してEnterを押してください",
1064+
"email_helper": "カンマ区切りで最大10名まで追加できます。",
1065+
"email_limit_error": "メールアドレスは最大10件まで追加できます。",
1066+
"email_invalid_error": "有効なメールアドレスを入力してください。",
1067+
"email_duplicate_error": "このメールアドレスは既に追加されています。",
1068+
"email_required_error": "メールアドレスを1つ以上入力してください。",
1069+
"roles_label": "ロール",
1070+
"roles_placeholder": "ロールを選択(任意)",
1071+
"provider_label": "プロバイダー",
1072+
"provider_placeholder": "プロバイダーを選択(任意)",
1073+
"provider_helper": "選択しない場合、メンバーは任意のプロバイダーでログインできます。",
1074+
"submit_button": "招待を送信",
1075+
"creating": "作成中...",
1076+
"cancel_button": "キャンセル",
1077+
"success": "${email}に招待を送信しました。"
1078+
},
1079+
"details": {
1080+
"title": "招待の詳細",
1081+
"email_label": "メール",
1082+
"status_label": "ステータス",
1083+
"roles_label": "ロール",
1084+
"provider_label": "IDプロバイダー",
1085+
"created_at_label": "作成日",
1086+
"expires_at_label": "有効期限",
1087+
"invited_by_label": "招待者",
1088+
"invitation_url_label": "招待URL",
1089+
"copy_url_button": "コピー",
1090+
"close_button": "閉じる",
1091+
"revoke_button": "招待を取り消す",
1092+
"resend_button": "取り消して再送信"
1093+
},
1094+
"revoke": {
1095+
"title": "招待を取り消す",
1096+
"description": "${email}への招待を取り消してもよろしいですか?",
1097+
"confirm_button": "取り消す",
1098+
"cancel_button": "キャンセル",
1099+
"success": "${email}への招待が取り消されました。"
1100+
},
1101+
"revoke_resend": {
1102+
"title": "招待を取り消して再送信",
1103+
"description": "現在の招待を取り消し、${email}に新しい招待を送信してもよろしいですか?",
1104+
"confirm_button": "続行",
1105+
"cancel_button": "キャンセル"
1106+
},
1107+
"success": {
1108+
"url_copied": "招待URLをクリップボードにコピーしました。",
1109+
"invitation_resent": "${email}に招待を再送信しました。"
1110+
},
1111+
"error": {
1112+
"fetch_failed": "招待の読み込みに失敗しました。もう一度お試しください。",
1113+
"create_failed": "招待の送信に失敗しました。もう一度お試しください。",
1114+
"revoke_failed": "招待の取り消しに失敗しました。もう一度お試しください。",
1115+
"resend_failed": "招待の再送信に失敗しました。もう一度お試しください。",
1116+
"revoke_resend_failed": "招待の取り消しと再送信に失敗しました。もう一度お試しください。",
1117+
"copy_url_failed": "招待URLのコピーに失敗しました。もう一度お試しください。"
1118+
}
1119+
}
10011120
}
10021121
}

packages/core/src/schemas/my-organization/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
export * from './organization-management';
88
export * from './idp-management';
99
export * from './domain-management';
10+
export * from './member-management/member-schema';
11+
export * from './member-management/invitation-schema';
12+
export * from './member-management/invitation-create-schema';
13+
export * from './member-management/invitation-create-schema-types';

0 commit comments

Comments
 (0)