feat: Update context menu options with localized titles
This commit is contained in:
parent
d5a0136837
commit
00735cddad
@ -64,31 +64,31 @@ export default defineBackground({
|
|||||||
|
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "summarize-pa",
|
id: "summarize-pa",
|
||||||
title: "Summarize",
|
title: browser.i18n.getMessage("contextSummarize"),
|
||||||
contexts: ["selection"]
|
contexts: ["selection"]
|
||||||
})
|
})
|
||||||
|
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "explain-pa",
|
id: "explain-pa",
|
||||||
title: "Explain",
|
title: browser.i18n.getMessage("contextExplain"),
|
||||||
contexts: ["selection"]
|
contexts: ["selection"]
|
||||||
})
|
})
|
||||||
|
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "rephrase-pa",
|
id: "rephrase-pa",
|
||||||
title: "Rephrase",
|
title: browser.i18n.getMessage("contextRephrase"),
|
||||||
contexts: ["selection"]
|
contexts: ["selection"]
|
||||||
})
|
})
|
||||||
|
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "translate-pg",
|
id: "translate-pg",
|
||||||
title: "Translate",
|
title: browser.i18n.getMessage("contextTranslate"),
|
||||||
contexts: ["selection"]
|
contexts: ["selection"]
|
||||||
})
|
})
|
||||||
|
|
||||||
browser.contextMenus.create({
|
browser.contextMenus.create({
|
||||||
id: "custom-pg",
|
id: "custom-pg",
|
||||||
title: "Custom",
|
title: browser.i18n.getMessage("contextCustom"),
|
||||||
contexts: ["selection"]
|
contexts: ["selection"]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -10,5 +10,20 @@
|
|||||||
},
|
},
|
||||||
"openOptionToChat": {
|
"openOptionToChat": {
|
||||||
"message": "Open Web UI to Chat"
|
"message": "Open Web UI to Chat"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "Summarize"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "Explain"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "Rephrase"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "Translate"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "Custom"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,5 +7,23 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "Abrir Copilot para Chatear"
|
"message": "Abrir Copilot para Chatear"
|
||||||
|
},
|
||||||
|
"openOptionToChat": {
|
||||||
|
"message": "Abrir Web UI para Chatear"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "Resumir"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "Explicar"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "Reformular"
|
||||||
|
},
|
||||||
|
"contextTranslate": {
|
||||||
|
"message": "Traducir"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "Personalizado"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -10,5 +10,20 @@
|
|||||||
},
|
},
|
||||||
"openOptionToChat": {
|
"openOptionToChat": {
|
||||||
"message": "باز کردن رابط کاربری وب برای گفتگو"
|
"message": "باز کردن رابط کاربری وب برای گفتگو"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "خلاصه کردن"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "توضیح دادن"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "بازنویسی"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "ترجمه کردن"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "سفارشی"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,20 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "Ouvrir Copilot pour discuter"
|
"message": "Ouvrir Copilot pour discuter"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "Résumer"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "Expliquer"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "Reformuler"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "Traduire"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "Personnalisé"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,5 +7,20 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "Apri Copilot per chattare"
|
"message": "Apri Copilot per chattare"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "Riassumi"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "Spiega"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "Riformula"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "Traduci"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "Personalizzato"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,20 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "チャットするためにCopilotを開く"
|
"message": "チャットするためにCopilotを開く"
|
||||||
}
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "要約"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "説明"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "言い換え"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "翻訳"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "カスタム"
|
||||||
|
}
|
||||||
}
|
}
|
@ -7,5 +7,20 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "ചാറ്റ് ചെയ്യാന് സൈഡ് പാനല് തുറക്കുക"
|
"message": "ചാറ്റ് ചെയ്യാന് സൈഡ് പാനല് തുറക്കുക"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "സംഗ്രഹിക്കുക"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "വിശദീകരിക്കുക"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "പുനഃരൂപീകരിക്കുക"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "വിവർത്തനം ചെയ്യുക"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "ഇഷ്ടാനുസൃതം"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,5 +7,20 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "Открыть Copilot для чата"
|
"message": "Открыть Copilot для чата"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "Обобщить"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "Объяснить"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "Перефразировать"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "Перевести"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "Пользовательский"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -7,5 +7,20 @@
|
|||||||
},
|
},
|
||||||
"openSidePanelToChat": {
|
"openSidePanelToChat": {
|
||||||
"message": "打开Copilot进行聊天"
|
"message": "打开Copilot进行聊天"
|
||||||
|
},
|
||||||
|
"contextSummarize": {
|
||||||
|
"message": "总结"
|
||||||
|
},
|
||||||
|
"contextExplain": {
|
||||||
|
"message": "解释"
|
||||||
|
},
|
||||||
|
"contextRephrase": {
|
||||||
|
"message": "改述"
|
||||||
|
},
|
||||||
|
"contextTranslate" :{
|
||||||
|
"message": "翻译"
|
||||||
|
},
|
||||||
|
"contextCustom": {
|
||||||
|
"message": "自定义"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -37,7 +37,7 @@ export default defineConfig({
|
|||||||
topLevelAwait({
|
topLevelAwait({
|
||||||
promiseExportName: "__tla",
|
promiseExportName: "__tla",
|
||||||
promiseImportName: (i) => `__tla_${i}`
|
promiseImportName: (i) => `__tla_${i}`
|
||||||
})
|
}) as any
|
||||||
],
|
],
|
||||||
build: {
|
build: {
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
@ -90,4 +90,4 @@ export default defineConfig({
|
|||||||
? firefoxMV2Permissions
|
? firefoxMV2Permissions
|
||||||
: chromeMV3Permissions
|
: chromeMV3Permissions
|
||||||
}
|
}
|
||||||
})
|
}) as any
|
Loading…
x
Reference in New Issue
Block a user