Fix translation detection for Cyrillic and ISO-8859-1

- Skip ISO-8859-1 Latin chars (0xC0-0xFF) to avoid Swedish false positives
- Require 3+ non-Latin chars to trigger translation
- Handle both UTF-8 and single-byte Cyrillic encodings
- Update README with ai_port option
This commit is contained in:
2026-04-30 12:15:17 +02:00
parent 4a5ca98c13
commit 2e7006a8d5
6 changed files with 3162 additions and 15 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ ai_target_lang=english
ai_skip_langs=swedish,english
```
When configured, foreign-script messages are shown immediately with an italic translation appearing below after 1-5 seconds. Leave values empty to disable.
Host can include port (`host:port`) or use a separate `ai_port=` line. When configured, foreign-script messages are shown immediately with an italic translation appearing below after 1-5 seconds. Leave values empty to disable.
## License