in src/components/SiderMenu/SiderMenu.js [280:306]
updateMenuData() {
if (this.props.menuData.length === 0) {
return;
}
// eslint-disable-next-line no-plusplus
for (let i = 0; i < this.props.menuData.length; i++) {
if (this.props.menuData[i].locale) {
this.props.menuData[i].name = getIntlContent(
this.props.menuData[i].locale,
this.props.menuData[i].name,
);
}
if (this.props.menuData[i].children.length > 0) {
// eslint-disable-next-line no-plusplus
for (let j = 0; j < this.props.menuData[i].children.length; j++) {
if (this.props.menuData[i].children[j].locale) {
this.props.menuData[i].children[j].name = getIntlContent(
this.props.menuData[i].children[j].locale,
this.props.menuData[i].children[j].name,
);
}
}
}
}
}