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:
@@ -26,10 +26,12 @@ struct DMView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var dm_options: EventViewOptions {
|
var dm_options: EventViewOptions {
|
||||||
|
/*
|
||||||
if self.damus_state.settings.translate_dms {
|
if self.damus_state.settings.translate_dms {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return [.no_translate]
|
return [.no_translate]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,10 +44,12 @@ struct DirectMessagesView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var options: EventViewOptions {
|
var options: EventViewOptions {
|
||||||
|
/*
|
||||||
if self.damus_state.settings.translate_dms {
|
if self.damus_state.settings.translate_dms {
|
||||||
return [.truncate_content, .no_action_bar]
|
return [.truncate_content, .no_action_bar]
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return [.truncate_content, .no_action_bar, .no_translate]
|
return [.truncate_content, .no_action_bar, .no_translate]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,8 +96,10 @@ struct TranslationSettingsView: View {
|
|||||||
Toggle(NSLocalizedString("Automatically translate notes", comment: "Toggle to automatically translate notes."), isOn: $settings.auto_translate)
|
Toggle(NSLocalizedString("Automatically translate notes", comment: "Toggle to automatically translate notes."), isOn: $settings.auto_translate)
|
||||||
.toggleStyle(.switch)
|
.toggleStyle(.switch)
|
||||||
|
|
||||||
|
/*
|
||||||
Toggle(NSLocalizedString("Translate DMs", comment: "Toggle to translate direct messages."), isOn: $settings.translate_dms)
|
Toggle(NSLocalizedString("Translate DMs", comment: "Toggle to translate direct messages."), isOn: $settings.translate_dms)
|
||||||
.toggleStyle(.switch)
|
.toggleStyle(.switch)
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user