System language detected correctly, but languages.detect redirect not working

Kirby detects correct language, but doesn’t redirect.

Expected behavior
languages.detect => 'true' should redirect you to the relevant language detected by Kirby, if it exists.

To reproduce
Enable multilang, create some pages, set languages.detect to true and change your display language.

Your setup
Kirby Version
3.8.2

Site is in a subfolder on my local machine, and on my staging webserver. Also tested at localhost/

Languages set up are English and Japanese, with en and ja language codes.

Tested on iPhone with display language set to Japanese, and Chrome with locale set to japanese.

Below is the redirected result of visiting localhost/ai, with $kirby->detectedLanguage() echoed at the top of the page.

Screenshot 2022-11-27 at 7.22.00 pm

Current config.php:

<?php

return [
    'debug' => true,
    'cache' => true,
    'thumbs' => [
        'presets' => [
            'default' => ['quality' => 70],
            'large' => ['quality' => 90]
        ]
    ],
    'home' => 'games',
    'trevor' => [
        'allow_add_keys' => false,
    ],
    'languages' => 'true',
    'languages.detect' => 'true',
    'auth' => [
        'challenge' => [
            'timeout' => 5 * 60 // 5 minutes
        ],
        'trials' => 10,
        'timeout' => 3600
    ]
];

Fixed! Just to be super clear, while 'languages' => 'true' works, 'languages.detect' => 'true' does not.

'languages.detect' => true (without quotations) fixed my issue. Dumb but simple solution!