discourse-translator/spec/services
Régis Hanol 60ab557173
FIX: Amazon text size is 10k bytes (#137)
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
2024-04-19 16:01:06 +02:00
..
amazon_spec.rb FIX: Amazon text size is 10k bytes (#137) 2024-04-19 16:01:06 +02:00
google_spec.rb DEV: Introduce syntax_tree for ruby formatting (#93) 2022-12-29 13:35:35 +01:00
libretranslate_spec.rb FIX: Broken LibreTranslate support (#128) 2023-12-13 18:12:31 -05:00
microsoft_spec.rb DEV: Rename translator_azure_custom_domain Site Setting (#102) 2023-04-17 14:07:23 +00:00
yandex_spec.rb DEV: Introduce syntax_tree for ruby formatting (#93) 2022-12-29 13:35:35 +01:00