RepoPilot

What unicode/non-Latin test cases are covered?

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

Question

What unicode/non-Latin test cases are covered?

RepoPilot

The repository covers extensive Unicode and non-Latin test cases, as shown in [test.js:L106-L145]:

Language Support:

  • German umlauts: ä ö ü Ä Ö Ü ßae oe ue Ae Oe Ue ss
  • Vietnamese: ố Ừ Đo U D
  • Arabic: ث س وth s w
  • Persian/Farsi: چ ی پch y p
  • Urdu: ٹ ڈ ھt d h
  • Pashto: ګ ړ څg r c
  • Russian: Ж п юZh p yu
  • Romanian: ș Țs T
  • Turkish: İ ı Ş ş Ç ç Ğ ğI i S s C c G g
  • Armenian: Ե ր ե ւ ա նYe r ye a n

Additionally, [test.js:L211-L225] tests locale-specific transliteration, such as Swedish (sv) vs. German (de) handling of Räksmörgås producing different results.

The README also mentions the library handles most major languages and references support for German umlauts, Vietnamese, Arabic, Russian, and more.

FOLLOW_UPS:

  • How does the transliterate option affect non-Latin characters?
  • What are the default customReplacements for special symbols?
  • How does locale-specific transliteration work internally?

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.