0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor(console,phrases): update organization template phrases (#5688)

This commit is contained in:
Xiao Yijun 2024-04-12 11:30:05 +08:00 committed by GitHub
parent 543931aa88
commit 97f2d9b8d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 11 additions and 26 deletions

View file

@ -101,7 +101,7 @@ function PermissionsTable({
const handleEdit = async (scope: ScopeResponse, editedData: EditScopeData) => {
const patchApiEndpoint = `api/resources/${scope.resourceId}/scopes/${scope.id}`;
await api.patch(patchApiEndpoint, { json: editedData });
toast.success(t('permissions.updated'));
toast.success(t('general.saved'));
onPermissionUpdated();
};

View file

@ -74,7 +74,7 @@ function Permissions({ organizationRoleId }: Props) {
? `api/resources/${scope.resourceId}/scopes/${scope.id}`
: `api/organization-scopes/${scope.id}`;
await api.patch(patchApiEndpoint, { json: editedData });
toast.success(t('permissions.updated'));
toast.success(t('general.saved'));
mutate();
};

View file

@ -113,7 +113,7 @@ describe('User RBAC', () => {
const newDescription = `New: ${permissionDescription}`;
await expect(page).toFillForm('.ReactModalPortal form', { description: newDescription });
await expect(page).toClick('.ReactModalPortal button[type=submit]');
await waitForToast(page, { text: 'Permission updated.', type: 'success' });
await waitForToast(page, { text: 'Saved', type: 'success' });
await expect(page).toMatchElement('table tbody tr td div', {
text: newDescription,
});

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Organisationsrollendetails',
back_to_org_roles: 'Zurück zu den Org-Rollen',
back_to_org_roles: 'Zurück zu den Organisationsrollen',
org_role: 'Org-Rolle',
delete_confirm:
'Dadurch werden die mit dieser Rolle verbundenen Berechtigungen von den betroffenen Benutzern entfernt und die Beziehungen zwischen Organisationsrollen, Mitgliedern in der Organisation und Organisationsberechtigungen gelöscht.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Bearbeitungsberechtigung',
delete: 'Löschberechtigung',
remove: 'Entfernungsberechtigung',
updated: 'Berechtigung aktualisiert.',
edit_title: 'API-Berechtigung bearbeiten',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Organization role details',
back_to_org_roles: 'Back to org roles',
back_to_org_roles: 'Back to organization roles',
org_role: 'Organization role',
delete_confirm:
'Doing so will remove the permissions associated with this role from the affected users and delete the relations among organization roles, members in the organization, and organization permissions.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Edit permission',
delete: 'Delete permission',
remove: 'Remove permission',
updated: 'Permission updated.',
edit_title: 'Edit API permission',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Detalles del rol de la organización',
back_to_org_roles: 'Volver a roles de la organización',
back_to_org_roles: 'Volver a los roles de la organización',
org_role: 'Rol de la organización',
delete_confirm:
'Al hacerlo, se eliminarán los permisos asociados con este rol de los usuarios afectados y se borrarán las relaciones entre roles de organización, miembros en la organización y permisos de organización.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Permiso de edición',
delete: 'Permiso de eliminación',
remove: 'Permiso de remover',
updated: 'Permiso actualizado.',
edit_title: 'Editar permiso de API',
};

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Permission de modifier',
delete: 'Permission de supprimer',
remove: 'Permission de retirer',
updated: 'Permission mise à jour.',
edit_title: 'Modifier lautorisation de lAPI',
};

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Permesso di modifica',
delete: 'Permesso di cancellazione',
remove: 'Permesso di rimozione',
updated: 'Permesso aggiornato.',
edit_title: 'Modifica permesso API',
};

View file

@ -10,7 +10,6 @@ const permissions = {
edit: '編集権限',
delete: '削除権限',
remove: '除去権限',
updated: '許可が更新されました。',
edit_title: 'APIの権限を編集',
};

View file

@ -9,7 +9,6 @@ const permissions = {
edit: '편집 권한',
delete: '삭제 권한',
remove: '제거 권한',
updated: '권한이 업데이트되었습니다.',
edit_title: 'API 권한 편집',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Szczegóły roli organizacji',
back_to_org_roles: 'Powrót do ról organizacji',
back_to_org_roles: 'Powrót do ról organizacyjnych',
org_role: 'Rola organizacji',
delete_confirm:
'W wyniku tego zostaną usunięte uprawnienia związane z tą rolą od dotkniętych użytkowników i zostaną usunięte związki między rolami organizacyjnymi, członkami organizacji a uprawnieniami organizacji.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Uprawnienia do edycji',
delete: 'Uprawnienia do usunięcia',
remove: 'Uprawnienia do usunięcia',
updated: 'Uprawnienia zaktualizowane.',
edit_title: 'Edytuj uprawnienia API',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Detalhes da função da organização',
back_to_org_roles: 'Voltar para funções da org',
back_to_org_roles: 'Voltar para os papéis da organização',
org_role: 'Função da organização',
delete_confirm:
'Ao fazer isso, os privilégios associados a esta função serão removidos dos usuários afetados e as relações entre funções da organização, membros na organização e permissões da organização serão excluídas.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Permissão de edição',
delete: 'Permissão de exclusão',
remove: 'Permissão de remoção',
updated: 'Permissão atualizada.',
edit_title: 'Editar permissão de API',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Detalhes da função da organização',
back_to_org_roles: 'Voltar para funções da org',
back_to_org_roles: 'Voltar aos papéis da organização',
org_role: 'Função da organização',
delete_confirm:
'Ao fazê-lo, serão removidas as permissões associadas a esta função dos utilizadores afetados e serão eliminadas as relações entre funções da organização, membros na organização e permissões da organização.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Permissão de edição',
delete: 'Permissão de eliminação',
remove: 'Permissão para remover',
updated: 'Permissão atualizada.',
edit_title: 'Editar permissão da API',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Детали роли организации',
back_to_org_roles: 'Вернуться к ролям организации',
back_to_org_roles: 'Вернуться к ролям в организации',
org_role: 'Роль организации',
delete_confirm:
'При этом будут удалены разрешения, связанные с этой ролью, у затронутых пользователей, и будут удалены связи между ролями организации, членами организации и правами организации.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Разрешение на редактирование',
delete: 'Разрешение на удаление',
remove: 'Разрешение на удаление',
updated: 'Разрешение обновлено.',
edit_title: 'Редактировать разрешение API',
};

View file

@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Kuruluş rolü ayrıntıları',
back_to_org_roles: 'Kuruluş rollerine geri dön',
back_to_org_roles: 'Organizasyon rollerine geri dön',
org_role: 'Kuruluş rolü',
delete_confirm:
'Bunu yapmak, etkilenen kullanıcılardan bu role ilişkilendirilen izinleri kaldıracak ve organizasyon rolleri, organizasyon üyeleri ve organizasyon izinleri arasındaki ilişkileri silecektir.',

View file

@ -10,7 +10,6 @@ const permissions = {
edit: 'Düzenleme izni',
delete: 'Silme izni',
remove: 'Kaldırma izni',
updated: 'İzin güncellendi.',
edit_title: 'API iznini düzenle',
};

View file

@ -9,7 +9,6 @@ const permissions = {
edit: '编辑权限',
delete: '删除权限',
remove: '移除权限',
updated: '权限已更新。',
edit_title: '编辑 API 权限',
};

View file

@ -9,7 +9,6 @@ const permissions = {
edit: '編輯權限',
delete: '刪除權限',
remove: '移除權限',
updated: '權限已更新。',
edit_title: '編輯 API 權限',
};

View file

@ -9,7 +9,6 @@ const permissions = {
edit: '編輯權限',
delete: '刪除權限',
remove: '移除權限',
updated: '權限已更新。',
edit_title: '編輯 API 權限',
};