What unicode/non-Latin test cases are covered?
What unicode/non-Latin test cases are covered?
About sindresorhus/slugify · 2 messages · last activity 9/1/2026
The test suite covers a comprehensive set of Unicode and non-Latin character tests, organized by language/script. Here's what's tested:
Germanic languages:
- German umlauts:
ä ö ü Ä Ö Ü ß[test.js:L111]
Southeast Asian:
- Vietnamese:
ố Ừ Đ[test.js:L115]
Middle Eastern/South Asian:
- Arabic:
ث س و[test.js:L119] - Persian/Farsi:
چ ی پ[test.js:L123] - Urdu:
ٹ ڈ ھ[test.js:L127] - Pashto:
ګ ړ څ[test.js:L131]
Slavic:
- Russian:
Ж п ю[test.js:L135]
Balkan:
- Romanian:
ș Ț[test.js:L139]
Turkic:
- Turkish:
İ ı Ş ş Ç ç Ğ ğ[test.js:L143]
Caucasian:
- Armenian:
Ե ր ե ւ ա ն[test.js:L147]
Locale-specific behavior:
Tests also verify that the locale option produces different transliterations for the same input—specifically Swedish vs. German handling of Räksmörgås and Fön [test.js:L216-L220].
Transliteration disabled:
Additional tests confirm behavior when transliterate: false with Chinese (你好世界) and Arabic (مرحبا) [test.js:L234-L235].
FOLLOW_UPS:
- How does transliteration differ across locales?
- What are the default custom replacements?
- Does the library support other scripts beyond those tested?
Want to ask your own question?
Open chat for sindresorhus/slugifyPublic Q&A. Generated by RepoPilot from the actual source of sindresorhus/slugify. AI answers can be incomplete or stale — verify before relying on them.