add toggle for autmatically translated messages for notification and chat or manual translation on message action. Due to heavy battery usage.

This commit is contained in:
ericz committed 2026-05-20 21:24:54 +02:00
1 parent bc5f299350
commit 9ada4ea601
44 files changed
+424 -24

No files matched your search

+16 -1
View File
@@ -89,7 +89,22 @@ class TranslationService extends ChangeNotifier {
'en';
}
bool shouldTranslateIncoming({
bool shouldAutoTranslateIncoming({
required String text,
required bool isCli,
required bool isOutgoing,
}) {
if (!_settings.autoTranslateIncomingMessages) {
return false;
}
return canTranslateIncoming(
text: text,
isCli: isCli,
isOutgoing: isOutgoing,
);
}
bool canTranslateIncoming({
required String text,
required bool isCli,
required bool isOutgoing,