mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
feat: add SCThingTranslator class. move functionality accordingly
This commit is contained in:
committed by
Karl-Philipp Wulfert
parent
797e5ca9de
commit
90e3d22399
@@ -88,8 +88,12 @@ export interface SCDish extends SCDishWithoutReferences {
|
||||
}
|
||||
|
||||
export interface SCDishTranslatableProperties
|
||||
extends SCThingWithCategoriesTranslatableProperties,
|
||||
SCThingThatCanBeOfferedTranslatableProperties {}
|
||||
extends SCThingWithCategoriesTranslatableProperties, SCThingThatCanBeOfferedTranslatableProperties {
|
||||
/**
|
||||
* Characteristics of the dish
|
||||
*/
|
||||
characteristics?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Dish meta data
|
||||
@@ -101,6 +105,21 @@ export class SCDishMeta extends SCThingMeta {
|
||||
categories: 'Kategorien',
|
||||
},
|
||||
};
|
||||
|
||||
static fieldValueTranslations = {
|
||||
...SCThingMeta.fieldValueTranslations,
|
||||
de: {
|
||||
categories: {
|
||||
appetizer: 'Vorspeise',
|
||||
dessert: 'Nachtisch',
|
||||
'main dish': 'Hauptgericht',
|
||||
salad: 'Salat',
|
||||
'side dish': 'Beilage',
|
||||
soup: 'Suppe',
|
||||
},
|
||||
type: 'Essen',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user