Manage Orders: Switch to translatable texts (#424)
Co-authored-by: Christian Georgi <chgeo@users.noreply.github.com>
This commit is contained in:
@@ -16,10 +16,21 @@ PlaceOfDeath = Place of Death
|
|||||||
Age = Age
|
Age = Age
|
||||||
Lifetime = Lifetime
|
Lifetime = Lifetime
|
||||||
Authors = Authors
|
Authors = Authors
|
||||||
|
|
||||||
Order = Order
|
Order = Order
|
||||||
Orders = Orders
|
Orders = Orders
|
||||||
|
OrderNo = Order Number
|
||||||
|
OrderItems = Order Items
|
||||||
|
Customer = Customer
|
||||||
|
Product = Product
|
||||||
|
ProductID = Product ID
|
||||||
|
ProductTitle = Product Title
|
||||||
|
UnitPrice = Unit Price
|
||||||
|
Quantity = Quantity
|
||||||
|
|
||||||
Price = Price
|
Price = Price
|
||||||
Currency = Currency
|
Currency = Currency
|
||||||
|
Date = Date
|
||||||
Rating = Rating
|
Rating = Rating
|
||||||
NumberOfReviews = Number of Reviews
|
NumberOfReviews = Number of Reviews
|
||||||
|
|
||||||
|
|||||||
@@ -18,22 +18,22 @@ annotate OrdersService.Orders with @(
|
|||||||
UI: {
|
UI: {
|
||||||
SelectionFields: [ createdBy ],
|
SelectionFields: [ createdBy ],
|
||||||
LineItem: [
|
LineItem: [
|
||||||
{Value: OrderNo, Label:'OrderNo'},
|
{Value: OrderNo, Label:'{i18n>OrderNo}'},
|
||||||
{Value: buyer, Label:'Customer'},
|
{Value: buyer, Label:'{i18n>Customer}'},
|
||||||
{Value: currency.symbol, Label:'Currency'},
|
{Value: currency.symbol, Label:'{i18n>Currency}'},
|
||||||
{Value: createdAt, Label:'Date'},
|
{Value: createdAt, Label:'{i18n>Date}'},
|
||||||
],
|
],
|
||||||
HeaderInfo: {
|
HeaderInfo: {
|
||||||
TypeName: 'Order', TypeNamePlural: 'Orders',
|
TypeName: '{i18n>Order}', TypeNamePlural: '{i18n>Orders}',
|
||||||
Title: {
|
Title: {
|
||||||
Label: 'Order number ', //A label is possible but it is not considered on the ObjectPage yet
|
Label: '{i18n>OrderNo}', //A label is possible but it is not considered on the ObjectPage yet
|
||||||
Value: OrderNo
|
Value: OrderNo
|
||||||
},
|
},
|
||||||
Description: {Value: createdBy}
|
Description: {Value: createdBy}
|
||||||
},
|
},
|
||||||
Identification: [ //Is the main field group
|
Identification: [ //Is the main field group
|
||||||
{Value: createdBy, Label:'Customer'},
|
{Value: createdBy, Label:'{i18n>Customer}'},
|
||||||
{Value: createdAt, Label:'Date'},
|
{Value: createdAt, Label:'{i18n>Date}'},
|
||||||
{Value: OrderNo },
|
{Value: OrderNo },
|
||||||
],
|
],
|
||||||
HeaderFacets: [
|
HeaderFacets: [
|
||||||
@@ -46,7 +46,7 @@ annotate OrdersService.Orders with @(
|
|||||||
],
|
],
|
||||||
FieldGroup#Details: {
|
FieldGroup#Details: {
|
||||||
Data: [
|
Data: [
|
||||||
{Value: currency.code, Label:'Currency'}
|
{Value: currency.code, Label:'{i18n>Currency}'}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
FieldGroup#Created: {
|
FieldGroup#Created: {
|
||||||
@@ -73,15 +73,15 @@ annotate OrdersService.Orders with @(
|
|||||||
annotate OrdersService.Orders.Items with @(
|
annotate OrdersService.Orders.Items with @(
|
||||||
UI: {
|
UI: {
|
||||||
LineItem: [
|
LineItem: [
|
||||||
{Value: product_ID, Label:'Product ID'},
|
{Value: product_ID, Label:'{i18n>ProductID}'},
|
||||||
{Value: title, Label:'Product Title'},
|
{Value: title, Label:'{i18n>ProductTitle}'},
|
||||||
{Value: price, Label:'Unit Price'},
|
{Value: price, Label:'{i18n>UnitPrice}'},
|
||||||
{Value: quantity, Label:'Quantity'},
|
{Value: quantity, Label:'{i18n>Quantity}'},
|
||||||
],
|
],
|
||||||
Identification: [ //Is the main field group
|
Identification: [ //Is the main field group
|
||||||
{Value: quantity, Label:'Quantity'},
|
{Value: quantity, Label:'{i18n>Quantity}'},
|
||||||
{Value: title, Label:'Product'},
|
{Value: title, Label:'{i18n>Product}'},
|
||||||
{Value: price, Label:'Unit Price'},
|
{Value: price, Label:'{i18n>UnitPrice}'},
|
||||||
],
|
],
|
||||||
Facets: [
|
Facets: [
|
||||||
{$Type: 'UI.ReferenceFacet', Label: '{i18n>OrderItems}', Target: '@UI.Identification'},
|
{$Type: 'UI.ReferenceFacet', Label: '{i18n>OrderItems}', Target: '@UI.Identification'},
|
||||||
|
|||||||
Reference in New Issue
Block a user