-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Wrong transforms for Cyrillic letters #19
Comments
Hi @serggi, congrats to your first GitHub issue 🎉🚀 It looks like the Probably we should add $locale.'-'.$locale.'_'.$rule,
\Locale::getPrimaryLanguage($locale).'-'.\Locale::getPrimaryLanguage($locale).'_'.$rule, to slug-generator/src/SlugGenerator.php Lines 287 to 289 in 87a661a
Or it might be better to handle all script rules like I’m not sure if we can use the Until this issue is fixed by the library itself you can use the $slugGenerator->generate('щ', ['locale' => 'uk', 'preTransforms' => ['uk-uk_Latn/BGN']]); |
Thanks, Martin for your help and your advice. It works well. |
Hi, thanks for a bundle.
Can you help me understand why Cyrillic (I've checked ukrainian ans russian) letters don't transform like here
https://github.com/unicode-org/cldr/blob/master/common/transforms/Ukrainian-Latin-BGN.xml
$slugGenerator->generate('щ', ['locale' => 'uk'])
gives mes
instead ofshch
The text was updated successfully, but these errors were encountered: