Skip to content

Commit

Permalink
Remove language tag when translation is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Mar 13, 2023
1 parent 7fe1f2f commit d5df18d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,10 @@ extension StatusView.ViewModel {
$isContentReveal,
$spoilerContent,
$content,
$language
Publishers.CombineLatest($language, $translatedFromLanguage)
.map { language, translatedFromLanguage in
translatedFromLanguage != nil ? nil : language
}
)
.map { isContentReveal, spoilerContent, content, language in
var strings: [AttributedString] = []
Expand Down

0 comments on commit d5df18d

Please sign in to comment.