Hi everyone,
I'd like to share a small community patch that makes the automatic spell checker work with **Spanish (Argentina)** in **ONLYOFFICE Desktop Editors for Windows**.
**The problem**
When "Spanish (Argentina)" is selected as the text language, the spell check mark (the "A" icon) doesn't appear and misspelled words are not underlined. With "Spanish (Spain)" it works fine.
**What I found**
In the desktop version, spell checking is done by a native engine built into the application, not by the JavaScript editor code. That engine has a fixed table that maps Windows language codes to dictionary folders. For Spanish it only has one entry: `es_ES` with code `3082` (Spain). There is no entry for `11274` (Argentina).
This is why the usual workarounds don't help: copying `es_ES` as `es_AR` or creating an `es_AR.json` file has no effect at runtime.
**What the patch does**
It doesn't touch any `.exe` or `.dll`. It only edits the `sdk-all-min.js` files in `editors/sdkjs/*/`, in two places:
- It adds `11274` to the list returned by `spellcheckGetLanguages()`, so Spanish (Argentina) is shown as having a spell checker.
- It replaces `11274` with `3082` in the `usrLang` list sent to the native `SpellCheck` call, so the engine uses the `es_ES` dictionary that already ships with ONLYOFFICE.
Safety measures:
- It validates all files before writing anything and aborts if it doesn't recognize the code.
- It creates a `.bak_esAR` backup of each file and never overwrites an existing backup.
- A second `.bat` script restores the original files at any time.
**Limitations**
- It uses the Spain Spanish dictionary, so Argentine voseo forms ("tenés", "querés") will be flagged as errors.
- It was tested on Desktop Editors **10.0.0.169** on Windows. Other versions may or may not work.
- Updates replace the SDK files, so the patch must be re-applied after updating.
- This is an unofficial modification and is not affiliated with ONLYOFFICE.
**Download and instructions**
https://github.com/guillermonestord-web/OnlyOfficeArgentinaPatchDic
I'd appreciate any feedback or testing on other versions. And if the team ever considers adding native support for es-AR (language code 11274) in the spell checker engine, that would make this patch unnecessary.
Thanks!