Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Popup remove always translate lang, if lang is equal to the target lang.
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 20, 2022
1 parent 45eac0c commit dc8bc2f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# ChangeLog


## 0.0.34 (not released)
## 0.0.34

- Fix copy img node.
- Fix copy img node, if a block node is only contains img node, then do not copy that node.
- Popup remove always translate lang, if lang is equal to the target lang.

## 0.0.33

Expand Down
2 changes: 1 addition & 1 deletion src/chrome_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default_locale": "en",
"name": "Immersive Translate",
"description": "Let's experience immersive web translation, with bilingual simultaneous display and translation of only the important content.",
"version": "0.0.33",
"version": "0.0.34",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"commands": {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default_locale": "en",
"name": "Immersive Translate",
"description": "Let's experience immersive web translation, with bilingual simultaneous display and translation of only the important content.",
"version": "0.0.33",
"version": "0.0.34",
"homepage_url": "https://github.com/immersive-translate/immersive-translate",

"browser_specific_settings": {
Expand Down
7 changes: 5 additions & 2 deletions src/popup/old-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,11 @@ twpConfig.onReady(function () {
$("option[data-i18n=btnNeverTranslateThisLanguage]").textContent = "✔ " + neverTranslateLangText
}
$("option[data-i18n=btnNeverTranslateThisLanguage]").style.display = "block"

showAlwaysTranslateCheckbox = true

// check is lang is equal to the target lang
if(originalTabLanguage !== selectTargetLanguage.value) {
showAlwaysTranslateCheckbox = true
}
}

btnRestore.className = btnRestore.className.replace(" w3-disabled", "")
Expand Down

0 comments on commit dc8bc2f

Please sign in to comment.