How to realize language autodetection for en_us and en_gb both goto /en

I read the docs about multilanguage, but I did not found a solution, how to configure kirby to detect en_gb and en_us both as English or de_DE and de_AT as German.
My default language is German, so no matter if the browser is set to de or de_DE or de_AT kirby routes to the /de-directory.

My en.php-file in the language-folder is:

<?php

return [
    'code' => 'en',
    'default' => false,
    'direction' => 'ltr',
    'locale' => [
        'LC_ALL' => 'en_GB'
    ],
    'name' => 'English',
    'translations' => [

    ],
    'url' => '/en'
];

This works if the browser is set to en_gb, but if the browser is set to en_us, the autodetection routes to /de-directory.
Maybe this is a problem with windows (I am using laragon with nginx for developing). Did not test on a Linux system.

What does your default language config look like?

And what if you set LC_ALL to en instead of en_gb?

My de.php:

<?php 

return [
  'code'      => 'de',
  'default'   => true,
  'direction' => 'ltr',
  'locale' => [
        'LC_ALL' => 'de_AT'
],
  'name'      => 'Deutsch',
  'url' => '/de'
];

LC_ALL to en didn’t change anything.
My FF Language-Testsetting:

LC_ALL en => /de
LC_ALL en_GB => /en
LC_ALL en_US => /de

If the Browser is set to “en”, the /en folder is selected although the locale-setting in Kirby is “en_US” or “en_EN”. I want it the other way arround: Whatever en_ is set in browser, it should route to the /en-folder.
But if a locale with country suffix is set in the browser, I had to set the exact LC_ALL code.

I could add a language file foreach english locale, but then I had to add the translation to each english (not default) language file.

This works, but feels ugly to me.
en.php:

<?php

$lang = 'en';
if (strtolower(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 3)) === 'en-') {
    $lang = str_replace('-', '_', substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5));
};

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