OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Slugify and diacritics

Open arkadiuszwojcik opened this issue 5 years ago • 28 comments

As I noticed, using slugify in recipes is quite often but there is one problem with it. Current implementation for sake of simplicity removes all diacritics from given string, but In many languages we whould like to transform them to other characters. For example in Polish: 'ę' -> 'e', 'ś' -> 's' etc. In CMS's often articles titles are slugify to form url but without proper mapped diacritics those urls looks odd. Basically it would be nice to have something simillar to: Diacritics.NET. Such code/service could be part of localisation module I guess.

arkadiuszwojcik avatar Nov 25 '19 11:11 arkadiuszwojcik