sindresorhus / slugify

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

Ignores Turkish Character #33

Closed erdidoqan closed 4 years ago

erdidoqan commented 5 years ago

Have the same characters like 'Ö' and 'ö' in German and Turkish. How can we fix this?

0x0480 commented 5 years ago

This script can't detect text's lang. Just add chars manually to end of replacement.js , ['ü', 'u'], ['Ü', 'u'], ['ö', 'o'], ['Ö', 'o'],

sindresorhus commented 4 years ago

Closing in favor of https://github.com/sindresorhus/transliterate/issues/2, which is a more general solution to this problem.