commit 3c24e707fc9c417d211318aae8437406aff912da
parent 28d6715fda0f98e11120f8728395fdf2446ab3f7
Author: William Casarin <jb55@jb55.com>
Date: Wed, 31 Jan 2024 09:34:02 -0800
translate: disable translate DMs
It's just a bad idea until we have local translations
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/damus/Views/DMView.swift b/damus/Views/DMView.swift
@@ -26,10 +26,12 @@ struct DMView: View {
}
var dm_options: EventViewOptions {
+ /*
if self.damus_state.settings.translate_dms {
return []
}
-
+ */
+
return [.no_translate]
}
diff --git a/damus/Views/DirectMessagesView.swift b/damus/Views/DirectMessagesView.swift
@@ -44,10 +44,12 @@ struct DirectMessagesView: View {
}
var options: EventViewOptions {
+ /*
if self.damus_state.settings.translate_dms {
return [.truncate_content, .no_action_bar]
}
-
+ */
+
return [.truncate_content, .no_action_bar, .no_translate]
}
diff --git a/damus/Views/Settings/TranslationSettingsView.swift b/damus/Views/Settings/TranslationSettingsView.swift
@@ -96,8 +96,10 @@ struct TranslationSettingsView: View {
Toggle(NSLocalizedString("Automatically translate notes", comment: "Toggle to automatically translate notes."), isOn: $settings.auto_translate)
.toggleStyle(.switch)
+ /*
Toggle(NSLocalizedString("Translate DMs", comment: "Toggle to translate direct messages."), isOn: $settings.translate_dms)
.toggleStyle(.switch)
+ */
}
}
}