Skip to content

Commit 2b6461e

Browse files
committed
feat(core, react): add schemas, i18n, and config types for invitations
1 parent 41ed260 commit 2b6461e

9 files changed

Lines changed: 678 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
@@ -1069,5 +1069,124 @@
10691069
"install_guardian_description": "In order to continue, install the Auth0 Guardian app via the app store from your mobile device"
10701070
}
10711071
}
1072+
},
1073+
"member_management": {
1074+
"header": {
1075+
"title": "Members",
1076+
"description": "Manage the members of your organization."
1077+
},
1078+
"invite_button": "Invite Member",
1079+
"tabs": {
1080+
"members": "Members",
1081+
"invitations": "Invitations"
1082+
},
1083+
"member": {
1084+
"table": {
1085+
"columns": {
1086+
"name": "Name",
1087+
"email": "Email",
1088+
"roles": "Roles"
1089+
},
1090+
"empty_message": "No members found."
1091+
},
1092+
"remove": {
1093+
"title": "Remove Member",
1094+
"description": "Are you sure you want to remove ${name} from this organization?",
1095+
"confirm_button": "Remove",
1096+
"cancel_button": "Cancel",
1097+
"success": "${name} has been removed from the organization."
1098+
},
1099+
"error": {
1100+
"fetch_failed": "Failed to load members. Please try again.",
1101+
"remove_failed": "Failed to remove member. Please try again."
1102+
}
1103+
},
1104+
"invitation": {
1105+
"table": {
1106+
"columns": {
1107+
"email": "Email",
1108+
"status": "Status",
1109+
"inviter": "Invited By",
1110+
"created_at": "Created At",
1111+
"expires_at": "Expires At",
1112+
"roles": "Roles"
1113+
},
1114+
"empty_message": "No pending invitations.",
1115+
"search_placeholder": "Search by email...",
1116+
"filter_by_role": "Filter By Role",
1117+
"all_roles": "All",
1118+
"reset_filter": "Reset",
1119+
"showing_results": "Showing ${start}-${end} of ${total}",
1120+
"status_pending": "Pending",
1121+
"status_expired": "Expired"
1122+
},
1123+
"actions": {
1124+
"menu_label": "Actions",
1125+
"view_details": "View Details",
1126+
"copy_url": "Copy Invitation URL",
1127+
"revoke_and_resend": "Revoke and Resend",
1128+
"revoke": "Revoke Invitation"
1129+
},
1130+
"create": {
1131+
"title": "Invite Member",
1132+
"description": "Send an invitation to join this organization.",
1133+
"email_label": "Email Address",
1134+
"email_placeholder": "Enter email address and press Enter",
1135+
"email_helper": "Add up to 10 members in a comma-separated list.",
1136+
"email_limit_error": "You can add up to 10 email addresses.",
1137+
"email_invalid_error": "Please enter a valid email address.",
1138+
"email_duplicate_error": "This email has already been added.",
1139+
"email_required_error": "Please enter at least one email address.",
1140+
"roles_label": "Roles",
1141+
"roles_placeholder": "Select roles (optional)",
1142+
"provider_label": "Provider",
1143+
"provider_placeholder": "Select provider (optional)",
1144+
"provider_helper": "If none is selected, the member can log in with any provider.",
1145+
"submit_button": "Send Invite",
1146+
"creating": "Creating...",
1147+
"cancel_button": "Cancel",
1148+
"success": "Invitation sent to ${email}."
1149+
},
1150+
"details": {
1151+
"title": "Invitation Details",
1152+
"email_label": "Email",
1153+
"status_label": "Status",
1154+
"roles_label": "Roles",
1155+
"provider_label": "Identity Provider",
1156+
"created_at_label": "Created",
1157+
"expires_at_label": "Expires",
1158+
"invited_by_label": "Invited By",
1159+
"invitation_url_label": "Invitation URL",
1160+
"copy_url_button": "Copy",
1161+
"close_button": "Close",
1162+
"revoke_button": "Revoke Invitation",
1163+
"resend_button": "Revoke and Resend"
1164+
},
1165+
"revoke": {
1166+
"title": "Revoke Invitation",
1167+
"description": "Are you sure you want to revoke the invitation to <bold>${email}</bold>?",
1168+
"confirm_button": "Revoke",
1169+
"cancel_button": "Cancel",
1170+
"success": "Invitation for ${email} has been revoked."
1171+
},
1172+
"revoke_resend": {
1173+
"title": "Revoke and Resend Invitation",
1174+
"description": "Are you sure you want to revoke the current invitation and send a new one to <bold>${email}</bold>?",
1175+
"confirm_button": "Proceed",
1176+
"cancel_button": "Cancel"
1177+
},
1178+
"success": {
1179+
"url_copied": "Invitation URL copied to clipboard.",
1180+
"invitation_resent": "Invitation resent to ${email}."
1181+
},
1182+
"error": {
1183+
"fetch_failed": "Failed to load invitations. Please try again.",
1184+
"create_failed": "Failed to send invitation. Please try again.",
1185+
"revoke_failed": "Failed to revoke invitation. Please try again.",
1186+
"resend_failed": "Failed to resend invitation. Please try again.",
1187+
"revoke_resend_failed": "Failed to revoke and resend invitation. Please try again.",
1188+
"copy_url_failed": "Failed to copy invitation URL. Please try again."
1189+
}
1190+
}
10721191
}
10731192
}

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

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,5 +1071,124 @@
10711071
"install_guardian_description": "続行するには、お使いのモバイルデバイスからアプリストア経由でAuth0 Guardianアプリをインストールしてください。"
10721072
}
10731073
}
1074+
},
1075+
"member_management": {
1076+
"header": {
1077+
"title": "メンバー",
1078+
"description": "組織のメンバーを管理します。"
1079+
},
1080+
"invite_button": "メンバーを招待",
1081+
"tabs": {
1082+
"members": "メンバー",
1083+
"invitations": "招待"
1084+
},
1085+
"member": {
1086+
"table": {
1087+
"columns": {
1088+
"name": "名前",
1089+
"email": "メール",
1090+
"roles": "ロール"
1091+
},
1092+
"empty_message": "メンバーが見つかりません。"
1093+
},
1094+
"remove": {
1095+
"title": "メンバーを削除",
1096+
"description": "この組織から${name}を削除してもよろしいですか?",
1097+
"confirm_button": "削除",
1098+
"cancel_button": "キャンセル",
1099+
"success": "${name}が組織から削除されました。"
1100+
},
1101+
"error": {
1102+
"fetch_failed": "メンバーの読み込みに失敗しました。もう一度お試しください。",
1103+
"remove_failed": "メンバーの削除に失敗しました。もう一度お試しください。"
1104+
}
1105+
},
1106+
"invitation": {
1107+
"table": {
1108+
"columns": {
1109+
"email": "メール",
1110+
"status": "ステータス",
1111+
"inviter": "招待者",
1112+
"created_at": "作成日",
1113+
"expires_at": "有効期限",
1114+
"roles": "ロール"
1115+
},
1116+
"empty_message": "保留中の招待はありません。",
1117+
"search_placeholder": "メールで検索...",
1118+
"filter_by_role": "ロールで絞り込み",
1119+
"all_roles": "すべて",
1120+
"reset_filter": "リセット",
1121+
"showing_results": "${start}〜${end} / ${total}件",
1122+
"status_pending": "保留中",
1123+
"status_expired": "期限切れ"
1124+
},
1125+
"actions": {
1126+
"menu_label": "アクション",
1127+
"view_details": "詳細を表示",
1128+
"copy_url": "招待URLをコピー",
1129+
"revoke_and_resend": "取り消して再送信",
1130+
"revoke": "招待を取り消す"
1131+
},
1132+
"create": {
1133+
"title": "メンバーを招待",
1134+
"description": "この組織に参加するための招待を送信します。",
1135+
"email_label": "メールアドレス",
1136+
"email_placeholder": "メールアドレスを入力してEnterを押してください",
1137+
"email_helper": "カンマ区切りで最大10名まで追加できます。",
1138+
"email_limit_error": "メールアドレスは最大10件まで追加できます。",
1139+
"email_invalid_error": "有効なメールアドレスを入力してください。",
1140+
"email_duplicate_error": "このメールアドレスは既に追加されています。",
1141+
"email_required_error": "メールアドレスを1つ以上入力してください。",
1142+
"roles_label": "ロール",
1143+
"roles_placeholder": "ロールを選択(任意)",
1144+
"provider_label": "プロバイダー",
1145+
"provider_placeholder": "プロバイダーを選択(任意)",
1146+
"provider_helper": "選択しない場合、メンバーは任意のプロバイダーでログインできます。",
1147+
"submit_button": "招待を送信",
1148+
"creating": "作成中...",
1149+
"cancel_button": "キャンセル",
1150+
"success": "${email}に招待を送信しました。"
1151+
},
1152+
"details": {
1153+
"title": "招待の詳細",
1154+
"email_label": "メール",
1155+
"status_label": "ステータス",
1156+
"roles_label": "ロール",
1157+
"provider_label": "IDプロバイダー",
1158+
"created_at_label": "作成日",
1159+
"expires_at_label": "有効期限",
1160+
"invited_by_label": "招待者",
1161+
"invitation_url_label": "招待URL",
1162+
"copy_url_button": "コピー",
1163+
"close_button": "閉じる",
1164+
"revoke_button": "招待を取り消す",
1165+
"resend_button": "取り消して再送信"
1166+
},
1167+
"revoke": {
1168+
"title": "招待を取り消す",
1169+
"description": "<bold>${email}</bold>への招待を取り消してもよろしいですか?",
1170+
"confirm_button": "取り消す",
1171+
"cancel_button": "キャンセル",
1172+
"success": "${email}への招待が取り消されました。"
1173+
},
1174+
"revoke_resend": {
1175+
"title": "招待を取り消して再送信",
1176+
"description": "現在の招待を取り消し、<bold>${email}</bold>に新しい招待を送信してもよろしいですか?",
1177+
"confirm_button": "続行",
1178+
"cancel_button": "キャンセル"
1179+
},
1180+
"success": {
1181+
"url_copied": "招待URLをクリップボードにコピーしました。",
1182+
"invitation_resent": "${email}に招待を再送信しました。"
1183+
},
1184+
"error": {
1185+
"fetch_failed": "招待の読み込みに失敗しました。もう一度お試しください。",
1186+
"create_failed": "招待の送信に失敗しました。もう一度お試しください。",
1187+
"revoke_failed": "招待の取り消しに失敗しました。もう一度お試しください。",
1188+
"resend_failed": "招待の再送信に失敗しました。もう一度お試しください。",
1189+
"revoke_resend_failed": "招待の取り消しと再送信に失敗しました。もう一度お試しください。",
1190+
"copy_url_failed": "招待URLのコピーに失敗しました。もう一度お試しください。"
1191+
}
1192+
}
10741193
}
10751194
}

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)