Question
What unicode/non-Latin test cases are covered?
About sindresorhus/slugify · 2 messages · last activity 5/25/2026
What unicode/non-Latin test cases are covered?
The sindresorhus/slugify repository has comprehensive test coverage for non-Latin scripts. Here are the covered test cases:
German (umlauts)
ä ö ü Ä Ö Ü ß → ae oe ue Ae Oe Ue ss [test.js:L108-L109]Vietnamese
ố Ừ Đ → o U D [test.js:L113-L114]Arabic
ث س و → th s w [test.js:L118-L119]Persian/Farsi
چ ی پ → ch y p [test.js:L123-L124]Urdu
ٹ ڈ ھ → t d h [test.js:L129-L130]Pashto
ګ ړ څ → g r c [test.js:L134-L135]Russian
Ж п ю → Zh p yu [test.js:L139-L140]Romanian
ș Ț → s T [test.js:L144-L145]Turkish
İ ı Ş ş Ç ç Ğ ğ → I i S s C c G g [test.js:L149-L150]Armenian
Ե ր ե ւ ա ն → Ye r ye a n [test.js:L154-L155]Chinese and Arabic with transliterate disabled
你好世界 → 你好世界 (preserved) [test.js:L238]مرحبا → مرحبا (preserved) [test.js:L239]Additionally, there are tests for accented characters like French (Déjà Vu → deja-vu) and Swedish (Räksmörgås) with locale-specific variations [test.js:L214-L218].
FOLLOW_UPS:
Want to ask your own question?
Open chat for sindresorhus/slugify →Public Q&A. Generated by RepoPilot from the actual source of sindresorhus/slugify. AI answers can be incomplete or stale — verify before relying on them.