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

Transliteration support #25

Open
McSneaky opened this issue May 23, 2024 · 0 comments
Open

Transliteration support #25

McSneaky opened this issue May 23, 2024 · 0 comments

Comments

@McSneaky
Copy link

Why this feature is required (specific use-cases will be appreciated)?

Makes slugs working with non-english words / letters

For example currently it turns "Анна" to "" (emptry string), while it should be "anna"
"Анна (Musti) Černáč" is turned to "musti-ern" while it should be anna-musti-cernac

It's limitation of @poppins/utils, and it's string.slugify() which uses slugify package under the hood. Slugify packge just deletes all non-english letters https://www.npmjs.com/package/slugify

Alternative would be to use https://www.npmjs.com/package/transliteration slugify method:

slugify('你好,世界');
// ni-hao-shi-jie

slugify('Анна (Musti) Černáč');
// anna-musti-cernac

Have you tried any other work arounds?

Yesh, making manual slug generator that uses https://www.npmjs.com/package/transliteration

Are you willing to work on it with little guidance?

Yesh

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

1 participant