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

Arabic Localization Suggestions list #70

Open
Ali-Assi-AlGooru opened this issue Oct 30, 2023 · 3 comments
Open

Arabic Localization Suggestions list #70

Ali-Assi-AlGooru opened this issue Oct 30, 2023 · 3 comments

Comments

@Ali-Assi-AlGooru
Copy link

I tried the same example in the repository, and it worked well with English. However, when writing Arabic words, the spell checker detected misspelled words, but the suggestions were unreadable.

I am not sure if Arabic is not supported in the package, or if this is a bug. I would appreciate your help with this.

Here's a screenshot showing this case:

Screenshot_2023-10-30-12-47-18-739

@Lujain-M02
Copy link

hello, I am working on application and I need arabic spell checker. do you have any updates about this issue?

@illia-romanenko
Copy link
Contributor

Hey, we don't have any plans to fix this (but it might change). In the meantime we would merge a PR with a fix if someone contributes.

@Semsem-programmer
Copy link
Contributor

Semsem-programmer commented Jan 24, 2024

I solve that by edit (language_tool_client.dart) file as:

replace this line:
json.decode(result.body) as Map<String, dynamic>,

With:
json.decode(utf8.decode(result.bodyBytes)) as Map<String, dynamic>,

The Reason
Json response do not work with arabic chars (UTF-8) by default.

Hint:

You can use my changes:
#75

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

4 participants