sindresorhus / slugify

Slugify a string
MIT License
2.56k stars 81 forks source link

Option disabling `transliterate` #68

Open tunnckoCore opened 2 years ago

tunnckoCore commented 2 years ago

Heya, great one.

Can we add options.transliterate so we can disable transliteration? Defaulting to true if you will so.

https://github.com/sindresorhus/slugify/blob/b841d04d92533469714e586435ed4c1b3b451d8c/index.js#L46

to

string = options.transliterate ? transliterate(string, {customReplacements}) : string;