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

Commit

Permalink
update icon for edge
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 10, 2022
1 parent 755fcd8 commit 8531b50
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions docs/application.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Application to Store





## Purpose

This extension is used to translate web pages, as well as selected text. Unlike other translation extensions, this extension supports bilingual display at the same time, and translates only the important content of the web page instead of the whole web page, it is like the browser's reading mode, designed to improve the user experience and help user to learn the target language when reading translated pages. It supports most websites out of the box, but has special adaptations for Twitter, Reddit and other information flow websites to make it a better experience.
Expand Down
14 changes: 9 additions & 5 deletions src/contentScript/showTranslated.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ function getTabHostName() {
}

Promise.all([twpConfig.onReady(), getTabHostName()])
.then(function (_) {
.then(async function (_) {
const tabHostName = _[1]
if (platformInfo.isMobile.any) return;

let styleTextContent = ""
fetch(chrome.runtime.getURL("/contentScript/css/showTranslated.css"))
.then(response => response.text())
.then(response => styleTextContent = response)
.catch(e => console.error(e))
try{

const response = await fetch(chrome.runtime.getURL("/contentScript/css/showTranslated.css"))
styleTextContent = await response.text()
}catch(e){
console.warn(e)
}


let pageLanguageState = "original"
let originalTabLanguage = "und"
Expand Down
Binary file modified src/icons/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/icons/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h3 class="w3-wide"><b>Immersive Translate</b></h3>
<a href="https://github.com/immersive-translate/immersive-translate/blob/main/CHANGELOG.md" class="w3-bar-item w3-button w3-padding" data-i18n="lblReleaseNotes">Release Notes</a>
<a href="https://github.com/immersive-translate/immersive-translate/issues" target="blank"
class="w3-bar-item w3-button w3-padding" data-i18n="lblReport">Report a problem</a>
<a href="https://crowdin.com/project/translate-web-pages" target="blank" class="w3-bar-item w3-button w3-padding" data-i18n="lblTranslateInterface">Translate the interface</a>
<!-- <a href="https://crowdin.com/project/translate-web-pages" target="blank" class="w3-bar-item w3-button w3-padding" data-i18n="lblTranslateInterface">Translate the interface</a> -->
</nav>

<header class="w3-bar w3-top w3-black w3-hide-large w3-xlarge" id="header">
Expand Down

0 comments on commit 8531b50

Please sign in to comment.