Skip to content

Commit

Permalink
refactor(console,phrases): update organization template phrases
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyijun committed Apr 12, 2024
1 parent 97af438 commit ce5c742
Show file tree
Hide file tree
Showing 26 changed files with 11 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/console/src/components/PermissionsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const permissions = {
edit: 'Bearbeitungsberechtigung',
delete: 'Löschberechtigung',
remove: 'Entfernungsberechtigung',
updated: 'Berechtigung aktualisiert.',
edit_title: 'API-Berechtigung bearbeiten',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const permissions = {
edit: 'Edit permission',
delete: 'Delete permission',
remove: 'Remove permission',
updated: 'Permission updated.',
edit_title: 'Edit API permission',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 l’autorisation de l’API',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

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

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

Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const organization_role_details = {
page_title: 'Детали роли организации',
back_to_org_roles: 'Вернуться к ролям организации',
back_to_org_roles: 'Вернуться к ролям в организации',
org_role: 'Роль организации',
delete_confirm:
'При этом будут удалены разрешения, связанные с этой ролью, у затронутых пользователей, и будут удалены связи между ролями организации, членами организации и правами организации.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const permissions = {
edit: 'Разрешение на редактирование',
delete: 'Разрешение на удаление',
remove: 'Разрешение на удаление',
updated: 'Разрешение обновлено.',
edit_title: 'Редактировать разрешение API',
};

Expand Down
Original file line number Diff line number Diff line change
@@ -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.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const permissions = {
edit: '编辑权限',
delete: '删除权限',
remove: '移除权限',
updated: '权限已更新。',
edit_title: '编辑 API 权限',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const permissions = {
edit: '編輯權限',
delete: '刪除權限',
remove: '移除權限',
updated: '權限已更新。',
edit_title: '編輯 API 權限',
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const permissions = {
edit: '編輯權限',
delete: '刪除權限',
remove: '移除權限',
updated: '權限已更新。',
edit_title: '編輯 API 權限',
};

Expand Down

0 comments on commit ce5c742

Please sign in to comment.