mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-22 14:03:44 +08:00
fix: 翻译禁用换行符
This commit is contained in:
parent
82943020f7
commit
4c6a5f7565
@ -166,7 +166,8 @@ class InputMethodDialogUIModel extends _$InputMethodDialogUIModel {
|
||||
_translateTimer =
|
||||
Timer(Duration(milliseconds: webMessage ? 1 : 400), () async {
|
||||
try {
|
||||
final r = await Api.doGoogleTranslate(sourceText);
|
||||
final inputText = sourceText.replaceAll("\n", " ");
|
||||
final r = await Api.doGoogleTranslate(inputText);
|
||||
if (r != null) {
|
||||
String resultText = r;
|
||||
// resultText 首字母大写
|
||||
|
Loading…
Reference in New Issue
Block a user