when trying to translate metronic menu (generated from config file ). it gives me:
Target class [translator] does not exist.
this error is thrown when I use __() method
I reach that i should not modify the aside_menu.php (the confige file where the menu generated from) instead, should perform modification where this values actually handled, So for this purpose Metronic team had created App\classes\Menu.php which where you should do the work for example:
=> you can translate section title from :
' . $item['section'] '=> be modified to
' . __('lang.'.$item['section']). '