Returns language mappings between browser and Drupal language codes.
array An array containing browser language codes as keys with corresponding Drupal language codes as values.
function language_get_browser_drupal_langcode_mappings() {
$config = config('language.mappings');
if ($config
->isNew()) {
return array();
}
return $config
->get();
}