forked from akai/readest
translator: add daily translation quota for deepl (#1275)
This commit is contained in:
@@ -98,7 +98,7 @@ const TranslatorPopup: React.FC<TranslatorPopupProps> = ({
|
||||
setTranslation(null);
|
||||
|
||||
try {
|
||||
const input = text.replaceAll('\n', ' ').trim();
|
||||
const input = text.replaceAll('\n', '').trim();
|
||||
const result = await translate([input]);
|
||||
const translatedText = result[0];
|
||||
const detectedSource = null;
|
||||
|
||||
Reference in New Issue
Block a user