translator: add daily translation quota for deepl (#1275)

This commit is contained in:
Huang Xin
2025-05-30 01:24:09 +08:00
committed by GitHub
parent 7c21f48d68
commit 6c86917098
6 changed files with 73 additions and 10 deletions
@@ -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;