Skip to content

Commit

Permalink
fix: missing translation and id
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenke committed Aug 12, 2024
1 parent cd4c650 commit 9f03108
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<ocx-page-content styleClass="px-3">
<div class="flex justify-center" style="margin: 15px">
<label for="formTypeSwitch">Standard form</label>
<label for="formTypeSwitch">{{ 'DETAILS.STANDARD_FORM' | translate }}</label>
<p-inputSwitch
inputId="formTypeSwitch"
inputId="parameter_detail_formTypeSwitch"
[(ngModel)]="advancedForm"
[ngStyle]="{ margin: '0 5px' }"
(onChange)="mode !== 'edit' ? parameterForm.reset() : ''"
[pTooltip]="'PARAMETER.TOOLTIPS.FORM_TYPE' | translate"
tooltipPosition="top"
tooltipEvent="hover"
></p-inputSwitch>
<label for="formTypeSwitch">Advanced form</label>
<label for="parameter_detail_formTypeSwitch">{{ 'DETAILS.ADVANCED_FORM' | translate }}</label>
</div>

<div>
Expand Down
5 changes: 4 additions & 1 deletion src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@
"UNIT": "Tragen Sie eine Einheit ein",
"RANGE_FROM": "Bereich von",
"RANGE_TO": "Bereich bis",
"DESCRIPTION": "Bitte beschreiben Sie den Parameter"
"DESCRIPTION": "Bitte beschreiben Sie den Parameter",
"FORM_TYPE": "Wählen Sie zwischen Standard- und erweiterter Form"
}
},
"DETAILS": {
"STANDARD_FORM": "Standardformular",
"ADVANCED_FORM": "Erweitertes Formular",
"FORM_MANDATORY": "Pflichtfelder fehlen",
"VALUE_HAS_WRONG_TYPE": "Der Wert hat den falschen Typ",
"FORM_KEY_MIN_LEN": "Schlüssel sollte mindestens 3 Buchstaben haben"
Expand Down
5 changes: 4 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@
"UNIT": "Please provide a Unit",
"RANGE_FROM": "Range from",
"RANGE_TO": "Range to",
"DESCRIPTION": "Provide a description of the parameter"
"DESCRIPTION": "Provide a description of the parameter",
"FORM_TYPE": "Choose between standard and advanced form"
}
},
"DETAILS": {
"STANDARD_FORM": "Standard form",
"ADVANCED_FORM": "Advanced form",
"FORM_MANDATORY": "Mandatory fields are missing",
"VALUE_HAS_WRONG_TYPE": "Value has wrong type",
"FORM_KEY_MIN_LEN": "Key should have at least 3 letters"
Expand Down

0 comments on commit 9f03108

Please sign in to comment.