-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Code i had run
composer require laravel-admin-extensions/multi-language
edited config/admin.php with this 2 parts
'extensions' => [
'multi-language' => [
'enable' => true,
// the key should be same as var locale in config/app.php
// the value is used to show
'languages' => [
'en' => 'English',
'zh-CN' => '简体中文',
],
// default locale
'default' => 'zh-CN',
// if or not show multi-language login page, optional, default is true
'show-login-page' => true,
// if or not show multi-language navbar, optional, default is true
'show-navbar' => true,
// the cookie name for the multi-language var, optional, default is 'locale'
'cookie-name' => 'locale'
],
],
'auth' => [
'excepts' => [
'auth/login',
'auth/logout',
'locale',
'handle_action',
],
],
Metadata
Metadata
Assignees
Labels
No labels
