Closed strarsis closed 2 years ago
Can you provide an example of something that works as you expect with locale: undefined
but not locale: 'en'
? If I do slugify('hello world', {locale: 'en'})
, that works as expected. slugify('%', {locale: 'en'})
works as expected too.
@Trott: You are right, for whatever reason I encountered this issue. But while creating some tests, I wasn't able to reproduce the issue. 🤷♂️
Passing no locale (
undefined
) toslugify
makes it apply slugify rules for the English locale (by default).en
as locale is currently handled as unknown locale byslugify
, withnull
as returned result. I have to passen
locales asundefined
to make it work. It would be nice ifslugify
treats theen
locale as English (undefined
).