RepoPilot

What unicode/non-Latin test cases are covered?

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

Question

What unicode/non-Latin test cases are covered?

RepoPilot

The repository has comprehensive test coverage for various non-Latin scripts and special characters. Based on the test file, here are the Unicode/non-Latin test cases covered:

European Languages:

  • German umlauts [test.js:L111-L112]: Tests ä ö ü Ä Ö Ü ß characters
  • Vietnamese [test.js:L115-L116]: Tests ố Ừ Đ characters
  • Romanian [test.js:L130-L131]: Tests ș Ț characters
  • Turkish [test.js:L133-L134]: Tests İ ı Ş ş Ç ç Ğ ğ characters

Middle Eastern/South Asian Languages:

  • Arabic [test.js:L118-L119]: Tests ث س و characters
  • Persian/Farsi [test.js:L121-L122]: Tests چ ی پ characters
  • Urdu [test.js:L124-L125]: Tests ٹ ڈ ھ characters
  • Pashto [test.js:L127-L128]: Tests ګ ړ څ characters

Slavic Languages:

  • Russian [test.js:L130-L131]: Tests Ж п ю characters

Other Unicode Cases:

  • Emojis and symbols from the usage examples (e.g., , 🦄, 🐶)
  • Locale-specific transliteration [test.js:L214-L220]: Swedish and German locale-specific handling (e.g., Räksmörgås)
  • Non-transliteration mode [test.js:L234-L243]: Tests preservation of non-ASCII characters including French accents, Swedish characters, Chinese, and Arabic when transliterate: false

FOLLOW_UPS:

  • How does the transliterate option affect Unicode handling?
  • What locales are supported beyond the test examples?
  • Does it handle combining diacritical marks?

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.