Document editor spellcheck for Spanish language

Hello team,

In my Angular application, we are utilizing the spell check feature in the Document Editor for both English and Spanish regions. I've configured the "enableSpellCheck" attribute to true in my codebase, with language IDs set to 1033 for English and 1034 for Spanish. However, while the spell check feature is functioning correctly for English, it appears to not be working for Spanish.

Also please find the below api payload for your reference: 

https://ej2services.syncfusion.com/production/web-services/api/documenteditor/SpellCheck

{"LanguageID":1034,"TexttoCheck":"Presentee","CheckSpelling":true,"CheckSuggestion":true}
And this is the api response I receive

Image_5825_1719846989896

Please find the version we are consuming in Angular app.

document editor version: @syncfusion/ej2-angular-documenteditor": "21.1.35-ngcc"

Angular : v12


4 Replies

DS Dhanush Sekar Syncfusion Team July 2, 2024 06:14 PM UTC

Hi Ugandhar,


Currently, we are checking this scenario and will update the details on July 3, 2024.


Regards,

Dhanush Sekar



DS Dhanush Sekar Syncfusion Team July 3, 2024 06:02 PM UTC

Hi Ugandhar,


We have tried to replicate the reported issue in v26.1.40. We didn't encounter any issue from our end. Please refer the below sample and video for reference.

Sample:Sdjmjr (forked) - StackBlitz

Note: The document editor does not support spell check for documents containing multiple languages, such as English and Spanish.


Regards,

Dhanush Sekar


Attachment: New_folder_(7)_8f3ef241.zip


UG ugandhar.sridhar replied to Dhanush Sekar July 22, 2024 06:06 PM UTC

Hi Dhanush 


Thank you for the response. I’m using Syncfusion version

"@syncfusion/ej2-angular-documenteditor": "21.1.35-ngcc" and have currently configured the Spanish language but still it is not working, whereas English language (1033) is perfectly working fine . I also watched the video you linked, but unfortunately, the StackBlitz link requires a license key, so I couldn’t verify the content.

I have a question about language settings: Do we need to configure any language settings on the backend, or is it sufficient to only configure it on the frontend? I noticed the comment in the screenshot

// Specifies the language id to map server-side dictionary.

Could you clarify whether backend language configuration is required or if frontend configuration alone is enough?


Image_8046_1721662419990

Regards,

N S Ugandhar



DS Dhanush Sekar Syncfusion Team July 23, 2024 06:14 PM UTC

Hi Ugandhar,


Yes, you need to configure language ID and dictionary files on the server side. Please refer to the steps and sample below.

  1. Download the .aff and .dic files for the Spanish language using below GitHub link
    dictionaries/dictionaries at main · wooorm/dictionaries (github.com)
  2. Open the App_Data folder and paste the downloaded files.
  3. Configure the language ID and dictionary files in spell check.json 
    Image_7261_1721757993103
  4. Then set the same language ID with spell check configuration on the client side


Note: The Document Editor does not automatically detect multiple languages. Therefore, we need to manually specify the language ID based on the language.
 

Regards,

Dhanush Sekar


Attachment: ASP.NET_Core_(3)_84034ee7.zip

Loader.
Up arrow icon