Skip to content

Commit

Permalink
more i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
typeling1578 committed Aug 26, 2023
1 parent 61c7fcd commit c659ca1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
9 changes: 9 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"menus_open-in-private-tab": {
"message": "Open in Private Tab"
},
"menus_open-link-in-private-tab": {
"message": "Open Link in Private Tab"
},
"menus_close-all-private-tabs": {
"message": "Close all private tabs"
},
"alerts_unable_container_title": {
"message": "browser.contextualIdentities not available - Private Tabs"
},
Expand Down
9 changes: 9 additions & 0 deletions _locales/ja/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
{
"menus_open-in-private-tab": {
"message": "プライベートタブで開く"
},
"menus_open-link-in-private-tab": {
"message": "リンクを新しいプライベートタブで開く"
},
"menus_close-all-private-tabs": {
"message": "すべてのプライベートタブを閉じる"
},
"alerts_unable_container_title": {
"message": "browser.contextualIdentities が利用できません - Private Tabs"
},
Expand Down
6 changes: 3 additions & 3 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ async function deleteHistory(details) {

browser.menus.create({
id: "open-in-private-tab",
title: "Open in Private Tab",
title: browser.i18n.getMessage("menus_open-in-private-tab"),
contexts: ["tab"]
});
browser.menus.create({
id: "open-link-in-private-tab",
title: "Open Link in Private Tab",
title: browser.i18n.getMessage("menus_open-link-in-private-tab"),
contexts: ["link"]
});
browser.menus.create({
id: "close-all-private-tabs",
title: "Close all private tabs",
title: browser.i18n.getMessage("menus_close-all-private-tabs"),
contexts: ["browser_action"]
});
browser.menus.onClicked.addListener(async (e) => {
Expand Down

0 comments on commit c659ca1

Please sign in to comment.