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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user