RepoPilot

What unicode/non-Latin test cases are covered?

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

Question

What unicode/non-Latin test cases are covered?

RepoPilot

The repository includes comprehensive unicode and non-Latin test cases covering multiple language families:

Germanic Languages:

  • German umlauts: ä ö ü Ä Ö Ü ß [test.js:L111]

Romance Languages:

  • Vietnamese: ố Ừ Đ [test.js:L115]
  • Romanian: ș Ț [test.js:L143]

Semitic Languages:

  • Arabic: ث س و [test.js:L119]
  • Persian/Farsi: چ ی پ [test.js:L123]
  • Urdu: ٹ ڈ ھ [test.js:L127]

Other Languages:

  • Pashto: ګ ړ څ [test.js:L131]
  • Russian (Cyrillic): Ж п ю [test.js:L135]
  • Turkish: İ ı Ş ş Ç ç Ğ ğ [test.js:L145]

The test cases also cover:

  • Locale-specific behavior (Swedish and German transliteration variations for Räksmörgås) [test.js:L217-L221]
  • Behavior with transliterate: false option for non-ASCII preservation, including Chinese 你好世界 and Arabic مرحبا [test.js:L230-L235]

These tests verify that the slugify function correctly handles transliteration across diverse character sets and language-specific rules.

FOLLOW_UPS:

  • How does the transliterate option affect output?
  • What is the default custom replacements behavior?
  • How does locale selection impact transliteration?

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.