From 3e9db329a4dd3a9d311a5bea74a8a40409b5bea1 Mon Sep 17 00:00:00 2001 From: illfixit <66363651+illfixit@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:43:57 +0200 Subject: [PATCH] chore: add translations --- .../data-offer-fake-service.ts | 2 +- .../asset-edit-page.component.ts | 6 +++++- src/assets/i18n/en.json | 19 +++++++++++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/src/app/core/services/api/fake-backend/connector-fake-impl/data-offer-fake-service.ts b/src/app/core/services/api/fake-backend/connector-fake-impl/data-offer-fake-service.ts index 471a2a2c..f0a0c71c 100644 --- a/src/app/core/services/api/fake-backend/connector-fake-impl/data-offer-fake-service.ts +++ b/src/app/core/services/api/fake-backend/connector-fake-impl/data-offer-fake-service.ts @@ -4,7 +4,7 @@ import { IdResponseDto, UiCriterionLiteralType, } from '@sovity.de/edc-client'; -import {ALWAYS_TRUE_POLICY_ID} from 'src/app/component-library/edit-asset-form/edit-asset-form/form/model/always-true-policy-id'; +import {ALWAYS_TRUE_POLICY_ID} from '../../../../../shared/business/edit-asset-form/form/model/always-true-policy-id'; import {assetIdAvailable, createAsset} from './asset-fake-service'; import { contractDefinitionIdAvailable, diff --git a/src/app/routes/connector-ui/asset-edit-page/asset-edit-page/asset-edit-page.component.ts b/src/app/routes/connector-ui/asset-edit-page/asset-edit-page/asset-edit-page.component.ts index 796ddf69..a8a944d0 100644 --- a/src/app/routes/connector-ui/asset-edit-page/asset-edit-page/asset-edit-page.component.ts +++ b/src/app/routes/connector-ui/asset-edit-page/asset-edit-page/asset-edit-page.component.ts @@ -1,7 +1,11 @@ import {Component, OnInit} from '@angular/core'; import {ActivatedRoute, Router} from '@angular/router'; import {EMPTY, Observable, catchError, finalize, tap} from 'rxjs'; -import {IdResponseDto, UiAssetEditRequest} from '@sovity.de/edc-client'; +import { + DataOfferCreationRequestPolicyEnum, + IdResponseDto, + UiAssetEditRequest, +} from '@sovity.de/edc-client'; import {EdcApiService} from 'src/app/core/services/api/edc-api.service'; import {AssetRequestBuilder} from 'src/app/core/services/asset-request-builder'; import {AssetService} from 'src/app/core/services/asset.service'; diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index c420e050..a182a81c 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -84,7 +84,15 @@ "header_name": "Header Name", "header_value": "Header Value", "add_add_header": "Add Additional Header", - "page": "Page" + "page": "Page", + "show_adv_fields": "Show Advanced Fields", + "publishing": "Publishing", + "pub_desc": "Publish data offer to other data space participants", + "pub_unrestr": "Publish unrestricted", + "pub_restr": "Publish restricted", + "pub_asset_only": "Create asset only (without data offer)", + "pub_mode": "Publishing Mode", + "doc": "Documentation" }, "tooltip": { "negotiate": "Cannot negotiate contracts with your own connector.", @@ -228,6 +236,12 @@ "title": "Data Offers", "page": "Data Offer Page" }, + "create_data_offer": { + "def_datasrc": "Define the datasource of the asset", + "data_type": "Datasource Type", + "contact_email_placeholder": "contact@my-org.com", + "contact_email": "Contact E-Mail" + }, "create_data_offer_page": { "title": "Create Data Offer" }, @@ -300,7 +314,8 @@ "date_range": "Date Range", "search_pol": "Search policies", "create_policy": "Create Policy", - "no_pol": "No policy found with given filter." + "no_pol": "No policy found with given filter.", + "expression": "Policy Expression" }, "create_policy_page": { "title": "Create Policy"