Str::slug() Language specific


I have quite a specific problem using Str::slug(). I have a multi language site in German and English.

When using Str::slug() on words with accents, I get different results depending on the language.

Str::slug(Güdemann) becomes guedemann in German, and gudemann in English.

I have set the language for the slug generator in my config but it doesn’t make a difference:

How can I set it to always use German rules?

The config setting is for single language sites and has no effect on multi-language sites. You would have to set the slug rules in the /site/language/* files: