Custom translations always fallback to default locale ('en')

Hello

I have an issue with custom translations. I tried the documentation example:

My page has an English(en) translation and a Spanish (es) translation. When I visit the English version I get the expected translation, but when I visit the Spanish version I get the English translation fallback instead of the expected Spanish translation.

In my blade file I echo the translation as followed:

What am I doing wrong?

Thanks for the assist!

Yes, this is an issue with es as language code, it works if you use es_ES both as translation key and language code in the language setup.

It also works with simply β€˜es’ if the translation strings are defined in the language files rather than in a plugin.