Hi,
How can translate laravel menu with Metronic 8? Currently the menu is in config directory which translator class is not accessible.
For example I have a translations file under resources/lang/translations.php with value 'settings' => 'Setting|Settings' and I want to use it in Menu.php under config directory as
trans_choice("translations.settings", 2).
Hi,
Do you have the translation file?resources/lang/en/translations.php
Thanks
Correct.
Thank for your response Faizal. But that solution doesn't work. I'm not sure what I'm missing.
Here is what I have, but output as normal text string
array(
'title' => 'translations.roles',
'path' => 'settings/roles',
'bullet' => '<span class="bullet bullet-dot"></span>',
),
The menu output is ranslations.roles
Hi
In the config/global/menu.php
file, add the translation key for the title. For example:
array(
"title" => "messages.overview",
"path" => "documentation/getting-started/overview",
),
echo __("messages.overview");