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

Commit

Permalink
change info, ready to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 6, 2022
1 parent f034f71 commit dfe8039
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 21 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
run: npm i
- name: Build
run: npm run build
- name: Add Version to folders
run: |
mv dist/chrome dist/chrome-${{ env.NOW }}
mv dist/firefox dist/firefox-${{ env.NOW }}
- name: zip release assets
run: |
zip -r dist/chrome-${{ env.NOW }}.zip dist/chrome-${{ env.NOW }}
zip -r dist/firefox-${{ env.NOW }}.zip dist/firefox-${{ env.NOW }}
- name: release assets
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
Expand All @@ -42,5 +50,5 @@ jobs:
prerelease: true
title: "Development Build ${{ env.NOW }}"
files: |
dist/chrome.zip
dist/firefox.zip
dist/chrome-${{ env.NOW }}.zip
dist/firefox-${{ env.NOW }}.zip
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,19 @@ jobs:
run: npm i
- name: Build
run: npm run build
- name: Add Version to folders
run: |
mv dist/chrome dist/chrome-${{ github.ref_name }}
mv dist/firefox dist/firefox-${{ github.ref_name }}
- name: zip release assets
run: |
zip -r dist/chrome-${{ github.ref_name }}.zip dist/chrome-${{ github.ref_name }}
zip -r dist/firefox-${{ github.ref_name }}.zip dist/firefox-${{ github.ref_name }}
- name: release assets
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
dist/chrome.zip
dist/firefox.zip
dist/chrome-${{ github.ref_name }}.zip
dist/firefox-${{ github.ref_name }}.zip
2 changes: 1 addition & 1 deletion PRIVACY
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ The only communication is with Google (translate.google.com and translate.google
These translation services (Google, Yandex, Bing and DeepL) can collect data to improve their services.
To translate, all content on the page is sent to Google, Yandex, Bind or DeepL servers.
For text to speech (tts) the text will be sent to Google.
The source code is available on <a href="https://github.com/FilipePS/Traduzir-paginas-web">Github</a>.
The source code is available on <a href="https://github.com/theowenyoung/Traduzir-paginas-web">Github</a>.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Translate your page in real time using Google or Yandex.

目前的版本还没准备好发布到商店,但是欢迎[下载体验](https://github.com/theowenyoung/Traduzir-paginas-web/releases),你需要在浏览器中手动安装:

1.[这里](https://github.com/theowenyoung/Traduzir-paginas-web/releases/tag/v0.0.1)下载对应浏览器的压缩包,chrome或firefox
1.[这里](https://github.com/theowenyoung/Traduzir-paginas-web/releases)下载对应浏览器的压缩包,chrome或firefox
2. 解压到以后不删除的文件夹

如果是谷歌浏览器:
Expand Down
8 changes: 4 additions & 4 deletions src/chrome_manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"manifest_version": 2,
"default_locale": "en",
"name": "TWP - Translate Web Pages",
"description": "__MSG_extensionDescription__",
"version": "9.6.1",
"homepage_url": "https://github.com/FilipePS/Traduzir-paginas-web",
"name": "沉浸式翻译",
"description": "支持双语显示,布局全面优化,和浏览器阅读模式类似,对Twitter, Reddit等网站做了定制优化",
"version": "0.0.4",
"homepage_url": "https://github.com/theowenyoung/Traduzir-paginas-web",

"commands": {
"hotkey-toggle-translation": {
Expand Down
2 changes: 1 addition & 1 deletion src/contentScript/popupMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Promise.all([twpConfig.onReady(), getTabHostName()])
<a id="btnNeverTranslate" data-i18n="btnNeverTranslate">Never translate this site</a>
<a id="neverTranslateThisLanguage" data-i18n="btnNeverTranslateThisLanguage" display="none">Never translate this language</a>
<a id="btnMoreOptions" data-i18n="btnMoreOptions">More options</a>
<a id="btnDonate" data-i18n="btnDonate" href="https://www.patreon.com/filipeps" target="_blank" rel="noopener noreferrer">Donate</a>
<a id="btnDonate" data-i18n="btnDonate" href="https://www.patreon.com/theowenyoung" target="_blank" rel="noopener noreferrer">Donate</a>
</div>
</div>
<div class="dropup">
Expand Down
10 changes: 5 additions & 5 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"manifest_version": 2,
"default_locale": "en",
"name": "TWP - Translate Web Pages",
"description": "__MSG_extensionDescription__",
"version": "9.6.1",
"homepage_url": "https://github.com/FilipePS/Traduzir-paginas-web",
"name": "沉浸式翻译 - 整页翻译·双语显示·只翻译正文",
"description": "支持双语显示,布局全面优化,和浏览器阅读模式类似,对Twitter, Reddit等网站做了定制优化",
"version": "0.0.4",
"homepage_url": "https://github.com/theowenyoung/Traduzir-paginas-web",

"browser_specific_settings": {
"gecko": {
"id": "{036a55b4-5e72-4d05-a06c-cba2dfcc134a}",
"id": "{5efceaa7-f3a2-4e59-a54b-85319448e305}",
"strict_min_version": "63.0"
}
},
Expand Down
6 changes: 3 additions & 3 deletions src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3 class="w3-wide"><b>TWP - Translate Web Pages</b></h3>
</div>
<b><a href="#donation" class="w3-bar-item w3-button w3-padding"><span data-i18n="lblMakeDonation">Make a donation</span> &#10084;</a></b>
<a href="#release_notes" class="w3-bar-item w3-button w3-padding" data-i18n="lblReleaseNotes">Release Notes</a>
<a href="https://github.com/FilipePS/Traduzir-paginas-web/issues" target="blank"
<a href="https://github.com/theowenyoung/Traduzir-paginas-web/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>
</nav>
Expand All @@ -48,7 +48,7 @@ <h3 class="w3-wide"><b>TWP - Translate Web Pages</b></h3>

<header class="w3-container w3-xlarge">
<p id="itemSelectedName" data-i18n="lblSettings" style="float: left;">Settings</p>
<p style="float: right; display: none;" id="btnPatreon"><a href="https://www.patreon.com/filipeps" target="blank"><img src="/icons/patreon.png" style="height: 40px;"></a></p>
<p style="float: right; display: none;" id="btnPatreon"><a href="https://www.patreon.com/theowenyoung" target="blank"><img src="/icons/patreon.png" style="height: 40px;"></a></p>
</header>

<div>
Expand Down Expand Up @@ -366,7 +366,7 @@ <h3 class="w3-wide"><b>TWP - Translate Web Pages</b></h3>
<div class="w3-light-blue w3-padding w3-round">
<p data-i18n="msgThanksForUseExtension">Thank you for using this extension.</p>
<p data-i18n="msgIWillBeGrateful">I will be grateful if you can make a donation.</p>
<a href="https://www.patreon.com/filipeps" target="blank"><img src="/icons/patreon.png"
<a href="https://www.patreon.com/theowenyoung" target="blank"><img src="/icons/patreon.png"
alt="Become a patreon" width="200px"></a>
<br><br>
<form action="https://www.coinpayments.net/index.php" method="post" target="blank">
Expand Down
4 changes: 2 additions & 2 deletions src/popup/old-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ twpConfig.onReady(function () {
const btnOptions = document.getElementById("btnOptions")

$("#btnPatreon").onclick = e => {
window.open("https://www.patreon.com/filipeps", "_blank")
window.open("https://www.patreon.com/theowenyoung", "_blank")
}


Expand Down Expand Up @@ -537,4 +537,4 @@ twpConfig.onReady(function () {
}
}
})
})
})

0 comments on commit dfe8039

Please sign in to comment.