How to automatically redirect to different homepages for multilingual websites

Now I have created a multi-language website by kirby 3.2.5, and I added the line
‘languages.detect’ => true
to the config.php.
But I tested the browser accessing the home page in different languages and won’t jump to the home page of the corresponding language.
The current common language is Chinese. Use the Chinese browser to access http://www.mysite.com instead of displaying the Chinese homepage, but the English browser should redirect to http://www.mysite.com/en and it will not work.

/site/config/config.php

<?php

return [
    'cache' => [
        'driver' => 'apcucache',
    ],
    'debug' => true,
    'languages' => true,
    'languages.detect' => true,
    'panel' => [
        'language' => 'zh_CN'
    ]
];

/site/languages/zh.php

<?php

return [
    'code' => 'zh',
    'default' => true,
    'direction' => 'ltr',
    'locale' => 'zh_CN',
    'name' => '中文',
    'url' => '/'
];

/site/languages/en.php

<?php

return [
    'code' => 'en',
    'default' => false,
    'direction' => 'ltr',
    'locale' => 'en_US',
    'name' => 'English',
    'url' => '/en'
];