Topic: MDBSideNav Collapse button language

joseeduardot premium asked 4 years ago


The MDBSideNav doesn have any properties for the collapse button, I've tried changing it directly on /package/dist/mdbreact.js to no success. I need it to be in portuguese as the app is destined for brazilian markets.

**

  _createClass(SideNavNav, [{
key: "render",
value: function render() {
  var _this2 = this;

  var _this$props = this.props,
      Tag = _this$props.tag,
      children = _this$props.children,
      className = _this$props.className,
      attributes = _objectWithoutProperties(_this$props, ["tag", "children", "className"]);

  var accordion = this.state.accordion;
  var classes = classNames("collapsible", "collapsible-accordion", className);
  var modified = React__default.Children.map(this.props.children, function (child, i) {
    if (child.type.displayName === "SideNavCat") {
      return React__default.cloneElement(child, {
        onClick: _this2.onClick(i),
        isOpen: accordion === i
      });
    } else {
      return child;
    }
  });
  return React__default.createElement(SideNavContext.Consumer, null, function (_ref) {
    var slim = _ref.slim,
        slimInitial = _ref.slimInitial,
        toggleSlim = _ref.toggleSlim,
        right = _ref.right;
    var iconClass = ['mr-2', "sv-slim-icon", "fas", "icon-rotate"];
    right & slim && iconClass.push('fa-angle-double-left');
    right & !slim && iconClass.push('fa-angle-double-right');
    !right & !slim && iconClass.push('fa-angle-double-left');
    !right & slim && iconClass.push('fa-angle-double-right');
    return React__default.createElement(React__default.Fragment, null, React__default.createElement("li", null, React__default.createElement(Tag, _extends({}, attributes, {
      className: classes
    }), modified, slimInitial && React__default.createElement("li", {
      onClick: toggleSlim()
    }, React__default.createElement("a", {
      href: "#!",
      className: "waves-effect"
    }, React__default.createElement("i", {
      className: iconClass.join(" ")
    }), "Minimizar menu")))));
  });
}

}]);

**

** Is there any way to change it? I need it to be 'Minimizar menu' or similar**


Jakub Chmura staff answered 4 years ago


Hi @joseeduardot

Thank for your feedback!

We currently working on Sidenav component. I think this changes need to be implemented immediately.

We will try to do this as soon as possible. I hope this feature will be published in the next release.

Best regards,

Kuba


joseeduardot premium commented 4 years ago

Do you guys have a forecast as to when this will be available?


Jakub Chmura staff commented 4 years ago

Hi @joseeduardot

If everything goes fine next release will be published at the closest Monday.

Best regards,

Kuba



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: 4.19.1
  • Device: Razer Blade Pro
  • Browser: Chrome
  • OS: Ubuntu 19.04
  • Provided sample code: No
  • Provided link: No