RepoPilot

What unicode/non-Latin test cases are covered?

About sindresorhus/slugify · 2 messages · last activity 7/13/2026

Question

What unicode/non-Latin test cases are covered?

RepoPilot

The repository covers comprehensive unicode and non-Latin test cases across multiple language scripts. Here's what's tested:

German (umlauts): [test.js:L111-L113] Tests ä ö ü Ä Ö Ü ß transliterations to ae oe ue Ae Oe Ue ss

Vietnamese: [test.js:L115-L117] Tests ố Ừ Đ transliterations to o U D

Arabic: [test.js:L119-L121] Tests ث س و transliterations to th s w

Persian/Farsi: [test.js:L123-L125] Tests چ ی پ transliterations to ch y p

Urdu: [test.js:L127-L129] Tests ٹ ڈ ھ transliterations to t d h

Pashto: [test.js:L131-L133] Tests ګ ړ څ transliterations to g r c

Russian: [test.js:L135-L137] Tests Ж п ю transliterations to Zh p yu

Romanian: [test.js:L139-L141] Tests ș Ț transliterations to s T

Turkish: [test.js:L143-L145] Tests İ ı Ş ş Ç ç Ğ ğ transliterations to I i S s C c G g

Armenian: [test.js:L147-L149] Tests Ե ր ե ւ ա ն transliterations to Ye r ye a n

Chinese and Arabic (with transliterate disabled): [test.js:L234-L235] Tests 你好世界 and مرحبا are preserved when transliteration is disabled

Locale-specific handling: [test.js:L220-L228] Tests Swedish and German locale-specific transliteration for characters like Räksmörgås and Fön

FOLLOW_UPS:

  • How does the transliterate option affect non-ASCII handling?
  • Which languages are supported via the transliterate dependency?
  • What custom replacement examples are shown in tests?

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.