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