You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/node
Ian Macdonald ca3da7a603
Set the Windows spell-checking language from $LANGUAGE.
Session on Windows wants to spell-check using American English, no
matter what I do. This seems to be because it wrongly assumes my locale
to be `en-US`, when it is actually `en-GB`.

```
"spellcheck: setting languages to:  [\"en-US\"]","time":"2022-10-10T19:19:09.216Z"
```

With this patch, Windows will use `$LANGUAGE`, if set, to determine the
language to be used for spell-checking.

Linux is unaffected by this patch and will correctly infer the
spell-checking language from `$LANG`.

Create a .bat file and start Session from this:

```
@echo off
set LANGUAGE=en-GB
"C:\Users\ian\AppData\Local\Programs\Session\Session.exe" --lang=en-GB
```

Note that the use of `--lang=<language>` above sets only the Session UI
language, not the spell-checker language.

This is a partial fix for #2013, specifically [this comment](https://github.com/oxen-io/session-desktop/issues/2013#issuecomment-998679090):
3 years ago
..
config refactor main_node.js to TS 3 years ago
migration Merge branch 'dev' into menu-redesign 3 years ago
attachment_channel.ts split attachmnent logic between what is used on main and renderer 3 years ago
config.ts lint files 3 years ago
database_utility.ts feat: add search by contacts to closed group overlay 3 years ago
encrypt_attachment_buffer.ts lint files 3 years ago
getRootPath.ts fixup build appImage sqlite3 module not found 3 years ago
global_errors.ts fix: global error copy to clipboard option must not quit the app 3 years ago
latest_desktop_release.ts refactor main_node.js to TS 3 years ago
locale.ts fixup build appImage sqlite3 module not found 3 years ago
logging.ts Id blinding + onionv4 + new endpoints for sogs and fileserver (#2347) 3 years ago
logs.ts move worker_interface and logs and i18n to TS 3 years ago
menu.ts refactor main_node.js to TS 3 years ago
permissions.ts app kind of start background side 3 years ago
protocol_filter.ts app kind of start background side 3 years ago
sodiumNode.ts fix libsodium call from webworker 3 years ago
spell_check.ts Set the Windows spell-checking language from $LANGUAGE. 3 years ago
sql.ts Merge branch 'clearnet' into mark-all-as-read-optimization 3 years ago
sql_channel.ts cleanup >2 months old messages in opengroups 3 years ago
storage_item.ts WIP sql.js 3 years ago
tray_icon.ts fixup build appImage sqlite3 module not found 3 years ago
window_state.ts refactor main_node.js to TS 3 years ago