Răsfoiți Sursa

refactor(admin-ui): Move some translation keys into common namespace

Michael Bromley 7 ani în urmă
părinte
comite
3abc0dcb0b

+ 2 - 2
admin-ui/src/app/catalog/components/facet-detail/facet-detail.component.html

@@ -22,7 +22,7 @@
 <form class="form" [formGroup]="facetForm" >
     <section class="form-block" formGroupName="facet">
         <label>{{ 'catalog.facet' | translate }}</label>
-        <vdr-form-field [label]="'catalog.name' | translate" for="name">
+        <vdr-form-field [label]="'common.name' | translate" for="name">
             <input id="name" type="text" formControlName="name" (input)="updateCode($event.target.value)">
         </vdr-form-field>
         <vdr-form-field [label]="'common.code' | translate" for="code" [readOnlyToggle]="true">
@@ -46,7 +46,7 @@
         <table class="facet-values-list table" formArrayName="values" *ngIf="0 < getValuesFormArray().length">
             <thead>
             <tr>
-                <th>{{ 'catalog.name' | translate }}</th>
+                <th>{{ 'common.name' | translate }}</th>
                 <th>{{ 'common.code' | translate }}</th>
                 <ng-container *ngFor="let customField of customValueFields">
                     <th>{{ customField.name }}</th>

+ 1 - 1
admin-ui/src/app/catalog/components/facet-list/facet-list.component.html

@@ -15,7 +15,7 @@
                 (itemsPerPageChange)="setItemsPerPage($event)">
     <vdr-dt-column>{{ 'common.ID' | translate }}</vdr-dt-column>
     <vdr-dt-column>{{ 'common.code' | translate }}</vdr-dt-column>
-    <vdr-dt-column>{{ 'catalog.name' | translate }}</vdr-dt-column>
+    <vdr-dt-column>{{ 'common.name' | translate }}</vdr-dt-column>
     <vdr-dt-column>{{ 'catalog.values' | translate }}</vdr-dt-column>
     <vdr-dt-column></vdr-dt-column>
     <ng-template let-facet="item">

+ 1 - 1
admin-ui/src/app/catalog/components/product-detail/product-detail.component.html

@@ -31,7 +31,7 @@
         <vdr-form-field [label]="'catalog.slug' | translate" for="slug">
             <input id="slug" type="text" formControlName="slug">
         </vdr-form-field>
-        <vdr-form-field [label]="'catalog.description' | translate" for="description">
+        <vdr-form-field [label]="'common.description' | translate" for="description">
             <textarea id="description" formControlName="description"></textarea>
         </vdr-form-field>
 

+ 2 - 2
admin-ui/src/app/catalog/components/product-list/product-list.component.html

@@ -14,9 +14,9 @@
                 (pageChange)="setPageNumber($event)"
                 (itemsPerPageChange)="setItemsPerPage($event)">
     <vdr-dt-column>{{ 'common.ID' | translate }}</vdr-dt-column>
-    <vdr-dt-column>{{ 'catalog.name' | translate }}</vdr-dt-column>
+    <vdr-dt-column>{{ 'common.name' | translate }}</vdr-dt-column>
     <vdr-dt-column>{{ 'catalog.slug' | translate }}</vdr-dt-column>
-    <vdr-dt-column>{{ 'catalog.description' | translate }}</vdr-dt-column>
+    <vdr-dt-column>{{ 'common.description' | translate }}</vdr-dt-column>
     <vdr-dt-column></vdr-dt-column>
     <ng-template let-product="item">
         <td class="left">{{ product.id }}</td>

+ 1 - 1
admin-ui/src/app/catalog/components/product-variants-list/product-variants-list.component.html

@@ -34,7 +34,7 @@
                 </div>
                 <div class="name">
                     <clr-input-container>
-                        <label>{{ 'catalog.name' | translate }}</label>
+                        <label>{{ 'common.name' | translate }}</label>
                         <input clrInput type="text" [formControl]="formArray.get([i, 'name'])">
                     </clr-input-container>
                 </div>

+ 1 - 3
admin-ui/src/i18n-messages/en.json

@@ -28,7 +28,6 @@
     "create-new-facet": "Create new facet",
     "create-new-option-group": "Create new option group",
     "create-new-product": "Create new product",
-    "description": "Description",
     "drop-files-to-upload": "Drop files to upload",
     "facet": "Facet",
     "facet-values": "Facet values",
@@ -37,7 +36,6 @@
     "generate-product-variants": "Generate product variants",
     "generate-variants-default-only": "This product does not have options",
     "generate-variants-with-options": "This product has options",
-    "name": "Name",
     "no-facets": "No facets",
     "no-featured-asset": "No featured asset",
     "no-selection": "No selection",
@@ -78,6 +76,7 @@
     "create": "Create",
     "created": "Created",
     "created-at": "Created at",
+    "description": "Description",
     "edit": "Edit",
     "edit-field": "Edit field",
     "enabled": "Enabled",
@@ -173,7 +172,6 @@
     "default-shipping-zone": "Default shipping zone",
     "default-tax-zone": "Default tax zone",
     "delete": "Delete",
-    "description": "Description",
     "email-address": "Email address",
     "first-name": "First name",
     "last-name": "Last name",