mirror of
https://ghfast.top/https://github.com/discourse/discourse-translator.git
synced 2026-07-16 11:46:33 +08:00
The Amazon translate API allows for a text to be up to 10k bytes. This changes the `MAXLENGTH` constant into the `MAX_BYTES` and uses a `truncate` method that works at the bytes level instead of the character/grapheme level. Ref - https://meta.discourse.org/t/increase-amazon-translate-limit-to-10-000-characters/304579 |
||
|---|---|---|
| .. | ||
| amazon_spec.rb | ||
| google_spec.rb | ||
| libretranslate_spec.rb | ||
| microsoft_spec.rb | ||
| yandex_spec.rb | ||