translate: disable translate DMs

It's just a bad idea until we have local translations

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-01-31 09:34:02 -08:00
parent 28d6715fda
commit 3c24e707fc
3 changed files with 8 additions and 2 deletions

View File

@@ -26,10 +26,12 @@ struct DMView: View {
}
var dm_options: EventViewOptions {
/*
if self.damus_state.settings.translate_dms {
return []
}
*/
return [.no_translate]
}

View File

@@ -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]
}

View File

@@ -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)
*/
}
}
}