Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i enter "ü" slug generate me "ue", when i enter "ə" slug generate me "-". please fix it #7

Open
Energon7 opened this issue Nov 26, 2018 · 3 comments

Comments

@Energon7
Copy link

No description provided.

@benjaminhirsch
Copy link
Collaborator

Currently I'm generating the slug via Java Script. I'm using this https://www.npmjs.com/package/speakingurl library for the slug generation. You can pass the options via ->slugifyOptions(['key' => 'value']). Maybe there simply has to be set a specific option?

What is your expected result when you enter "ə"?

@Energon7
Copy link
Author

ə -> e

Other package for slug working correctly. You can find it on novapackages.com

@francissebin2hats
Copy link

francissebin2hats commented Oct 25, 2021

Hi

I know this is an old thread, but recently I got an apostrophe issue so found this thread and also got the solution.

->slugifyOptions(
['custom' => ['&' => 'doo']]
)

As per official doc

slug = getSlug('Foo & Bar * Baz', {
custom: {
'&': ' doo '
},
uric:true
});
console.log(slug); // Output: foo-doo-bar-baz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants