Menu Config
The menuConfig
defines the structure and properties of the website's navigation menu, including links, submenus, and branding elements.
Each object in the array represents a language-specific menu configuration with the following properties:
Properties
Property Name |
Type |
Description |
langCode |
string |
Language code (e.g., 'uk' for Ukrainian). |
defaultLang |
boolean |
Indicates if this is the default language configuration. |
homepageLink |
string |
URL for the homepage link. |
logoImage |
string |
Information about the website's logo. |
menu |
array |
Array of menu items and their corresponding submenus. |
Property Name |
Type |
Description |
name |
string |
Display name of the menu item. |
link |
string |
URL the menu item links to. |
childs |
array |
Optional; defines the submenu items as an array of objects with name and link. |
Logo Structure (logoImage Property)
Property Name |
Type |
Description |
src |
string |
Path to the logo image file. |
alt |
string |
Alternate text for the logo image (for accessibility). |
title |
string |
Tooltip text displayed when hovering over the logo. |
export const menuConfig = [
{
langCode: 'string',
defaultLang: boolean,
homepageLink: 'string',
logoImage: {
src: "string",
alt: "string",
title: "string"
},
menu: [
{
name: 'string',
link: 'string',
childs: [
{
name: 'string',
link: 'string'
},
]
},
]
}
];