Show existing languages in language dropdown

Hi there,

we use multiple languages for kirby and wanted to know if it is possible to show the paneluser if a specific language already exists.
Our default language is german and when you switch to english in the dropdown the .en.txt file is created with the same layout.
Is it possible to set a html class in the dropdown which checks if the .txt file for each language exists?

In the end we want to style it like this with CSS.
Language file for german, english and spanish exists, so the dropdown should look like this.

Thanks in advance,

Maybe check out this plugin instead: GitHub - doldenroller/k3-translation-status: Kirby 3 Multilanguage Plugin

1 Like

It is a good workaround for us