Skip to content

When i change lang in login page, not working. #9

@hh0210

Description

@hh0210

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',
],
],

Screenshot (45)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions