language: updated language strings
MODIFY
src/app/components/account/account.component.html
src/app/components/account/account.component.html
-<p>account works!</p>
+<!-- TODO: Language Strings -->
<ng-container *ngIf="userProfile">
<h2>User information</h2>

MODIFY
src/app/components/dialogs/unregister-client/unregister-client.component.html
src/app/components/dialogs/unregister-client/unregister-client.component.html
-<h3 mat-dialog-title>{{'DIALOGS.UNREGISTER_TITLE' | translate:clientNameVersion}}</h3>
+<h3 mat-dialog-title>{{'DIALOGS.REMOVE_TITLE' | translate:clientNameVersion}}</h3>
<mat-dialog-content>
- <span [innerHTML]="'DIALOGS.UNREGISTER_SURE' | translate:clientNameVersion"></span>
+ <span [innerHTML]="'DIALOGS.REMOVE_SURE' | translate:clientNameVersion"></span>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-flat-button mat-dialog-close color="accent">{{'COMMON.CANCEL' | translate}}</button>
- <button mat-flat-button (click)="onUnregister()" color="warn">{{'DIALOGS.UNREGISTER_BTN' | translate}}</button>
+ <button mat-flat-button (click)="onUnregister()" color="warn">{{'DIALOGS.REMOVE_BTN' | translate}}</button>
</mat-dialog-actions>

MODIFY
src/app/components/header/header.component.html
src/app/components/header/header.component.html
<p #heroSubtitle>{{ heroService.hero.subtitle }}</p>
</div>
<div id="hero-btn">
- <button #loginBtn (click)="login()" [hidden]="loggedIn" id="login-btn">{{'COMMON.LOGIN_OR_REGISTER' | translate}}</button>
+ <button #loginBtn (click)="login()" [hidden]="loggedIn" id="login-btn">{{'COMMON.LOGIN' | translate}}</button>
<button #logoutBtn (click)="logout()" [hidden]="!loggedIn" id="logout-btn">{{'COMMON.LOGOUT' | translate}}</button>
</div>
</div>

MODIFY
src/app/components/marketplace-api-terms/marketplace-api-terms.component.html
src/app/components/marketplace-api-terms/marketplace-api-terms.component.html
<mat-form-field *ngIf="terms" appearance="fill">
- <mat-label>Licence Type</mat-label>
+ <mat-label>{{'WIZZARD.LICENCE_TYPE' | translate}}</mat-label>
<textarea
cdkAutosizeMaxRows="20"
cdkAutosizeMinRows="1"

MODIFY
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.html
src/app/components/marketplace-signup-stepper/marketplace-signup-stepper.component.html
<mat-stepper #stepper linear>
<mat-step
label="{{ 'WIZARD.FIRST_STEP_LABEL' | translate }}"
- [completed]="selectedClients.size >= 1"
- >
+ [completed]="selectedClients.size >= 1">
<mat-card>
<mat-card-header>
- <mat-card-title>{{
- "WIZARD.FIRST_STEP_TITLE" | translate
- }}</mat-card-title>
+ <mat-card-title>{{"WIZARD.FIRST_STEP_TITLE" | translate}}</mat-card-title>
</mat-card-header>
<mat-card-content class="mat-card-header-text">
<app-marketplace-client-app
mat-raised-button
color="primary"
matStepperNext
- (click)="nextAfterClientSelect()"
- >
+ (click)="nextAfterClientSelect()">
{{ "COMMON.NEXT" | translate }}
</button>
</mat-card-actions>
<mat-step
*ngIf="termsEnabled"
label="{{ 'WIZARD.SECOND_STEP_LABEL' | translate }}"
- [completed]="agreedTermsAndPrivacy"
- >
+ [completed]="agreedTermsAndPrivacy">
<mat-card>
<mat-card-header>
<mat-card-title>{{
}}</mat-card-title>
</mat-card-header>
<mat-card-content class="mat-card-header-text">
- <app-marketplace-api-terms
- (agreedTermsAndPrivacy)="checkTerms($event)"
- ></app-marketplace-api-terms>
+ <app-marketplace-api-terms (agreedTermsAndPrivacy)="checkTerms($event)"></app-marketplace-api-terms>
</mat-card-content>
<mat-divider></mat-divider>
<mat-card-actions class="right">
mat-raised-button
matStepperNext
color="primary"
- (click)="nextAfterTermsAgreed()"
- >
+ (click)="nextAfterTermsAgreed()">
{{ "COMMON.NEXT" | translate }}
</button>
</mat-card-actions>
<mat-step label="{{ 'WIZARD.THIRD_STEP_LABEL' | translate }}">
<mat-card>
<mat-card-header>
- <mat-card-title>{{
- "WIZARD.THIRD_STEP_TITLE" | translate
- }}</mat-card-title>
+ <mat-card-title>{{"WIZARD.THIRD_STEP_TITLE" | translate}}</mat-card-title>
</mat-card-header>
<mat-card-content class="mat-card-header-text">
<app-my-apps-use-api></app-my-apps-use-api>
<ng-container *ngIf="newContractDetails.policies">
- <h4>Policies</h4>
+ <h4>{{"WIZZARD.POLICIES" | translate}}</h4>
<!--In this version we will not have more than 2 policies-->
<div class="policies">
<app-policy-card *ngFor="let policy of newContractDetails.policies" [policy]="policy"></app-policy-card>

MODIFY
src/app/components/my-apps-use-api/my-apps-use-api.component.html
src/app/components/my-apps-use-api/my-apps-use-api.component.html
</div>
<div id="try-it-now-btn">
<ng-container *ngIf="docsAvailable">
- <a [routerLink]="[
- '/swagger',
- orgId,
- apiId,
- apiVersion
- ]"
+ <a [routerLink]="['/swagger', orgId, apiId, apiVersion]"
target="_blank">
<button
mat-raised-button
- color="primary"
- >
+ color="primary">
{{ "COMMON.API_DOCS" | translate }}
</button>
</a>
[cdkCopyToClipboard]="''"
mat-icon-button
matSuffix
- class="input-icon-btn"
- >
- <mat-icon class="input-icon-btn" color="primary" [class.disabled]=""
- >content_copy</mat-icon
- >
+ class="input-icon-btn">
+ <mat-icon class="input-icon-btn" color="primary" [class.disabled]="">content_copy</mat-icon>
</button>
</mat-form-field>
<mat-form-field>
[cdkCopyToClipboard]="''"
mat-icon-button
matSuffix
- class="input-icon-btn"
- >
+ class="input-icon-btn">
<mat-icon class="input-icon-btn" color="primary">content_copy</mat-icon>
</button>
</mat-form-field>

MODIFY
src/app/components/plan-card-list/plan-card-list.component.html
src/app/components/plan-card-list/plan-card-list.component.html
<div>
<mat-divider></mat-divider>
<button class="sign-up-button" mat-raised-button color="primary" (click)="onSignUp(plan)">
- SIGN UP
+ {{'API_DETAILS.SIGN_UP' | translate}}
</button>
</div>
</div>

MODIFY
src/app/components/toc/toc.component.html
src/app/components/toc/toc.component.html
<div class="toc divider-left" (window:scroll)="onWindowScroll()">
<ul>
- <li><span><b>Apps and APIs</b></span></li>
+ <li><span><b>{{'APPS.APPS_AND_APIS' | translate}}</b></span></li>
<li *ngFor="let link of links">
<a (click)="scroll(link.destination)" class="pointer"><span [class.primary]="link.active">{{ link.name }}</span></a>
<ul *ngIf="link.subLinks">

MODIFY
src/assets/i18n/en.json
src/assets/i18n/en.json
"API_DOCS": "API Documentation",
"ERROR": "Data could not be loaded, please try again later.",
"SUCCESS": "Successfully created!",
+ "LOGIN": "Login",
"LOGIN_OR_REGISTER": "Login / Register",
"LOGOUT": "Logout",
"VERSION": "Version",
"RESETS_AT": "Resets at",
"FIRST_OF": "1st of",
"RESETS_EVERY_SECOND": "Resets every second",
- "NO_POLICIES_FOR_API": "No policies were found for this API"
+ "NO_POLICIES_FOR_API": "No policies were found for this API",
+ "APPS_AND_APIS": "Apps and APIs"
},
"CLIENT_CREATE" : {
"SELECT": "Select from available Applications"
"REDIRECT": "You will be redirected because of an invalid URL",
"SUCCESS": "A contract has been successfully created",
"API_KEY_PREVIEW": "You will be provided an API-KEY after sign-up",
- "API_ENDPOINT_PREVIEW": "You will be provided an endpoint after sign-up"
+ "API_ENDPOINT_PREVIEW": "You will be provided an endpoint after sign-up",
+ "LICENSE_TYPE": "Licence Type",
+ "POLICIES": "Policies"
},
"POLICIES": {
"RATE_LIMIT": {
"MORE_INFO": "You will receive an email notification when there is progress in your application"
},
"DIALOGS": {
- "UNREGISTER_TITLE": "Remove Client",
- "UNREGISTER_SURE": "Are you really sure you want to <span class='warn'>remove</span> the client <b>{{value}}</b> and its contracts?",
- "UNREGISTER_BTN": "Unregister"
+ "REMOVE_TITLE": "Remove Client",
+ "REMOVE_SURE": "Are you really sure you want to <span class='warn'>remove</span> the client <b>{{value}}</b> and its contracts?",
+ "REMOVE_BTN": "Remove"
},
"API_DETAILS": {
"PLANS": "Plans",
"KEY_FEATURES": "Key Features",
"EXTENDED_DESCRIPTION": "Extended Description",
- "NO_EXT_DESCRIPTION": "No further description has been stored for this API"
+ "NO_EXT_DESCRIPTION": "No further description has been stored for this API",
+ "SIGN_UP": "Sign Up"
},
"TERMS": {
"PREFIX": "I accept the ",

language: updated language strings