Skip to content

Commit

Permalink
Merge pull request #398 from VVill-ga/master
Browse files Browse the repository at this point in the history
feat: keep translation text when switching languages
  • Loading branch information
Bnyro authored Jan 31, 2024
2 parents e18b932 + 871c490 commit df7691d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ fun TranslationPage(
val temp = viewModel.sourceLanguage
viewModel.sourceLanguage = viewModel.targetLanguage
viewModel.targetLanguage = temp
viewModel.insertedText = viewModel.translation.translatedText
viewModel.translateNow()
}
) {
Expand Down

0 comments on commit df7691d

Please sign in to comment.