RepoPilot

What unicode/non-Latin test cases are covered?

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

Question

What unicode/non-Latin test cases are covered?

RepoPilot

The repository covers an extensive range of Unicode and non-Latin test cases across multiple languages:

Germanic languages:

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

Asian languages:

  • Vietnamese: ố Ừ Đ [test.js:L113-L115]

Middle Eastern languages:

  • Arabic: ث س و [test.js:L117-L119]
  • Persian/Farsi: چ ی پ [test.js:L121-L123]
  • Urdu: ٹ ڈ ھ [test.js:L126-L128]
  • Pashto: ګ ړ څ [test.js:L130-L132]

Slavic languages:

  • Russian: Ж п ю [test.js:L134-L136]

Other European languages:

  • Romanian: ș Ț [test.js:L138-L140]
  • Turkish: İ ı Ş ş Ç ç Ğ ğ [test.js:L142-L144]
  • Armenian: Ե ր ե ւ ա ն [test.js:L146-L148]

Other test cases:

  • Emoji replacements (unicorns, love hearts, dogs) [test.js:L101-L105]
  • Transliterate option with non-ASCII characters including Chinese and Arabic [test.js:L239-L247]
  • Locale-specific transliteration (Swedish vs German) [test.js:L217-L224]

The README indicates support extends beyond these tested cases, mentioning that "It handles most major languages" including German (umlauts), Vietnamese, Arabic, Russian, and more.

FOLLOW_UPS:

  • How does the transliterate dependency handle languages?
  • What happens with the locale option in detail?
  • How are custom replacements applied to non-ASCII?

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.