Importing menu data
Menus are imported as a set of five entities. Each entity covers a distinct part of the menu import model.
File overview
| File | Description |
|---|---|
menudefinitions | Defines menus by pairing a content group with a price group. |
contentgroups | Groups categories and items into named content groups. |
pricegroups | Specifies item prices and VAT configurations. |
categories | Organises items into categories and subcategories. |
items | Defines all products and containers. |
translatableContent
Several string values across the files support translations and context-specific overrides. These use the translatableContent structure described below.
| Property | Type | Required | Description |
|---|---|---|---|
value | string | Yes | Default display value, used when no matching translation is available. |
translations | object | No | Map of locale code (e.g. "sv-SE") to translated string. |
overrides | object | No | Map of named variant keys (e.g. "titleShort") to a translatableContent. Allows context-specific display variants. |
{
"value": "Beverages",
"translations": {
"sv-SE": "Drycker"
},
"overrides": {
"titleShort": {
"value": "Bev",
"translations": {
"sv-SE": "Dryck"
}
}
}
}