diff --git a/.gitignore b/.gitignore
index fe92a50..6baa2c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,4 +3,6 @@
/index.php
/src/node_modules
/src/package-lock.json
-/storage
\ No newline at end of file
+/storage
+/tests/tested.json
+__pycache__
diff --git a/i18n.json.REMOVED.git-id b/i18n.json.REMOVED.git-id
index 3746578..bea66eb 100644
--- a/i18n.json.REMOVED.git-id
+++ b/i18n.json.REMOVED.git-id
@@ -1 +1 @@
-5ad28c8d02d5d6fdd61554711bd952779427686b
\ No newline at end of file
+611e2b7444b13bf5b7d8c0b33f5ebdf29c8acbe6
\ No newline at end of file
diff --git a/javascript/main.entry.js.REMOVED.git-id b/javascript/main.entry.js.REMOVED.git-id
index a4ab5c8..2fcdf20 100644
--- a/javascript/main.entry.js.REMOVED.git-id
+++ b/javascript/main.entry.js.REMOVED.git-id
@@ -1 +1 @@
-a2f08f76a93bc09fe85ebfed51247a1f37ecd9f9
\ No newline at end of file
+384f7026f90087a5f0e604c3aef95cd9f8bd9525
\ No newline at end of file
diff --git a/javascript/main.entry.js.map.REMOVED.git-id b/javascript/main.entry.js.map.REMOVED.git-id
index 231c440..c19ae8f 100644
--- a/javascript/main.entry.js.map.REMOVED.git-id
+++ b/javascript/main.entry.js.map.REMOVED.git-id
@@ -1 +1 @@
-23b01f3cc69f5cc760cde3fc373c354f95e9b721
\ No newline at end of file
+c1262f4231e67498db0dec618bed72d30c2b2c24
\ No newline at end of file
diff --git a/scripts/translate.py b/scripts/translate.py
index 3c87cd6..743975f 100644
--- a/scripts/translate.py
+++ b/scripts/translate.py
@@ -311,11 +311,13 @@ def translate(text, from_lang, to_lang, api, api_config = {}):
result['message'] = 'translate_api_not_support'
return result
+ result['translated_text'] = result['translated_text'].strip()
+
caches[cache_name] = result['translated_text']
result['success'] = True
return result
except Exception as e:
- print(e)
+ # print(e)
result['message'] = str(e)
return result
\ No newline at end of file
diff --git a/src/src/App.vue b/src/src/App.vue
index 5b88f89..7c816f2 100755
--- a/src/src/App.vue
+++ b/src/src/App.vue
@@ -12,11 +12,16 @@
v-model:enable-tooltip="enableTooltip"
v-model:translate-api="translateApi"
:translate-api-config="translateApiConfig"
- @click:translate-api="onTranslateApiClick">
+ @click:translate-api="onTranslateApiClick"
+ @click:select-language="onSelectLanguageClick">