mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 02:50:39 +00:00
Language editor refactoring part 3 (backend + frontend)
This commit is contained in:
@@ -526,6 +526,18 @@ function get_file_type($file_mimetype)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* It map language translations as language key and language value
|
||||
*
|
||||
* @param $translations
|
||||
* @return mixed
|
||||
*/
|
||||
function map_language_translations($translations)
|
||||
{
|
||||
return $translations->map(function ($string) {
|
||||
return [$string->key => $string->value];
|
||||
})->collapse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get file type from mimetype
|
||||
|
||||
Reference in New Issue
Block a user