Don't show translation-option for statuses with the same language as the device

This commit is contained in:
Nathan Mattes 2023-10-17 12:51:45 +02:00
parent c3ef66aeaa
commit e1d1ef83e6
1 changed files with 4 additions and 1 deletions

View File

@ -179,7 +179,10 @@ extension StatusAuthorView {
postActions.append(.editStatus)
}
if let statusLanguage = menuContext.statusLanguage, menuContext.isTranslationEnabled {
if menuContext.isTranslationEnabled,
let statusLanguage = menuContext.statusLanguage,
let deviceLanguage = Bundle.main.preferredLocalizations.first,
deviceLanguage != statusLanguage {
if menuContext.isTranslated == false {
postActions.append(.translateStatus(.init(language: statusLanguage)))
} else {