Bug description
When you add a language-file at /resources/lang/{lang} with the same filename like a collection handle, there is shown an error on the backend.
How to reproduce
Collection aktuelles

Lang aktuelles

Error:
htmlspecialchars(): Argument #1 ($string) must be of type string, array given (View: \vendor\statamic\cms\resources\views\partials\nav-main.blade.php)
Logs
No response
Versions
Statamic 3.2.24 Pro
Laravel 8.73.2
PHP 8.0.12
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Bug description
When you add a language-file at
/resources/lang/{lang}with the same filename like a collection handle, there is shown an error on the backend.How to reproduce
Collection

aktuellesLang

aktuellesError:
Logs
No response
Versions
Statamic 3.2.24 Pro
Laravel 8.73.2
PHP 8.0.12
Installation
Fresh statamic/statamic site via CLI
Additional details
No response