RepoPilot

What unicode/non-Latin test cases are covered?

About sindresorhus/slugify · 2 messages · last activity 5/25/2026

Question

What unicode/non-Latin test cases are covered?

RepoPilot

The sindresorhus/slugify repository has comprehensive test coverage for non-Latin scripts. Here are the covered test cases:

German (umlauts)

  • ä ö ü Ä Ö Ü ßae oe ue Ae Oe Ue ss [test.js:L108-L109]

Vietnamese

  • ố Ừ Đo U D [test.js:L113-L114]

Arabic

  • ث س وth s w [test.js:L118-L119]

Persian/Farsi

  • چ ی پch y p [test.js:L123-L124]

Urdu

  • ٹ ڈ ھt d h [test.js:L129-L130]

Pashto

  • ګ ړ څg r c [test.js:L134-L135]

Russian

  • Ж п юZh p yu [test.js:L139-L140]

Romanian

  • ș Țs T [test.js:L144-L145]

Turkish

  • İ ı Ş ş Ç ç Ğ ğI i S s C c G g [test.js:L149-L150]

Armenian

  • Ե ր ե ւ ա նYe r ye a n [test.js:L154-L155]

Chinese and Arabic with transliterate disabled

  • 你好世界你好世界 (preserved) [test.js:L238]
  • مرحبامرحبا (preserved) [test.js:L239]

Additionally, there are tests for accented characters like French (Déjà Vudeja-vu) and Swedish (Räksmörgås) with locale-specific variations [test.js:L214-L218].

FOLLOW_UPS:

  • How does the locale option affect transliteration output?
  • What happens when transliterate option is set to false?
  • Which special characters get custom replacements by default?

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.