simov / slugify

Slugifies a string
MIT License
1.5k stars 129 forks source link

Add Romanian locale #176

Open christianpana opened 1 year ago

christianpana commented 1 year ago

Description

This PR adds the Romanian locale to the locales.json file, making it available to use with the locale option.

There are a few special letters in the Romanian alphabet (https://en.wikipedia.org/wiki/Romanian_alphabet) but these seem to be already covered by the charmap.json file. Hence, they're not included in the locales.json file.

Tests for the romanian locale added to test/locales.js.

Example

slugify('Ă & ă', {locale: 'ro'})