diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json index d3bbdac..32b6a8f 100644 --- a/src/_locales/en/messages.json +++ b/src/_locales/en/messages.json @@ -274,6 +274,9 @@ "addonPageLabel": { "message": "Add-on page" }, + "extensionPageLabel": { + "message": "Extension page" + }, "amazonUrl": { "message": "https://www.amazon.co.jp/dp/B004N3APGO?language=en_US" }, diff --git a/src/common/personalUrls.js b/src/common/personalUrls.js index 1e14ce0..df48097 100644 --- a/src/common/personalUrls.js +++ b/src/common/personalUrls.js @@ -4,3 +4,5 @@ const browserName = browserInfo().name; const suffix = browserName === "Chrome" ? "fc" : ""; export const email = `sienori.firefox+st${suffix}@gmail.com`; export const paypalLink = `https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&no_shipping=1&business=sienori.firefox@gmail.com&item_name=Simple Translate for ${browserName} - Donation`; +export const chromeExtensionUrl = `https://chrome.google.com/webstore/detail/iaiomicjabeggjcfkbimgmglanimpnae/`; +export const firefoxAddonUrl = `https://addons.mozilla.org/firefox/addon/tab-session-manager/`; diff --git a/src/options/components/InformationPage.js b/src/options/components/InformationPage.js index 0eb837a..2fb4c63 100644 --- a/src/options/components/InformationPage.js +++ b/src/options/components/InformationPage.js @@ -3,7 +3,7 @@ import browser from "webextension-polyfill"; import browserInfo from "browser-info"; import queryString from "query-string"; import OptionsContainer from "./OptionContainer"; -import { paypalLink, email } from "src/common/personalUrls"; +import { paypalLink, email, chromeExtensionUrl, firefoxAddonUrl } from "src/common/personalUrls"; import manifest from "src/manifest-chrome.json"; export default props => { @@ -69,17 +69,15 @@ export default props => { extraCaption={
- - {browser.i18n.getMessage("addonPageLabel")} - + {browserInfo().name === "Chrome" ? ( + + {browser.i18n.getMessage("extensionPageLabel")} + + ) : ( + + {browser.i18n.getMessage("addonPageLabel")} + + )} GitHub