mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various improvements
This commit is contained in:
@@ -4182,12 +4182,7 @@ extension ChatControllerImpl {
|
||||
guard let strongSelf = self, let peerId = strongSelf.chatLocation.peerId else {
|
||||
return
|
||||
}
|
||||
var langCode = langCode
|
||||
if langCode == "nb" {
|
||||
langCode = "no"
|
||||
} else if langCode == "pt-br" {
|
||||
langCode = "pt"
|
||||
}
|
||||
let langCode = normalizeTranslationLanguage(langCode)
|
||||
let _ = updateChatTranslationStateInteractively(engine: strongSelf.context.engine, peerId: peerId, { current in
|
||||
return current?.withToLang(langCode).withIsEnabled(true)
|
||||
}).startStandalone()
|
||||
|
||||
Reference in New Issue
Block a user