You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! =) First of all Thank you for this library.
I have one problem. Let me try to explain this little problem.
I use your library in my Django project. User can write english (latin) or russian (cyrillic) letters in field. If user write russian words it change word to latin letters but if user write english words I see next error: LanguageDetectionError: Can't detect language for the text "document" given.
I use this code: transliterate.translit(field_value, reversed=True)
Also I notice that in your project its impossible to detect english language, isn't it?
transliterate.detect_language(field_value) return None when user enter english word.
My aim is to transliterate only if user wrote russion word, but don't touch it user wrote english word. What can you advice?
The text was updated successfully, but these errors were encountered:
Hello! =) First of all Thank you for this library.
I have one problem. Let me try to explain this little problem.
I use your library in my Django project. User can write english (latin) or russian (cyrillic) letters in field. If user write russian words it change word to latin letters but if user write english words I see next error:
LanguageDetectionError: Can't detect language for the text "document" given.
I use this code:
transliterate.translit(field_value, reversed=True)
Also I notice that in your project its impossible to detect english language, isn't it?
transliterate.detect_language(field_value)
return None when user enter english word.My aim is to transliterate only if user wrote russion word, but don't touch it user wrote english word. What can you advice?
The text was updated successfully, but these errors were encountered: