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

Option disabling transliterate #68

Open
tunnckoCore opened this issue Jun 8, 2022 · 1 comment
Open

Option disabling transliterate #68

tunnckoCore opened this issue Jun 8, 2022 · 1 comment

Comments

@tunnckoCore
Copy link

Heya, great one.

Can we add options.transliterate so we can disable transliteration? Defaulting to true if you will so.

string = transliterate(string, {customReplacements});

to

string = options.transliterate ? transliterate(string, {customReplacements}) : string;
@philwolstenholme
Copy link

This would be great, we've seen transliteration add up to 250ms of processing time when we slugify a string, and as our website only operates in English it's generally not something we ever need.

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

2 participants