mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx.git
synced 2025-07-30 07:53:16 +08:00
feat: 为chrome拓展添加手动调用翻译的功能 (#3)
* feat: 为chrome拓展添加手动调用翻译的功能
* feat: add SC-BOX-TRANSLATE-API-AVAILABLE message
* refactor: move content script logic to core.js
* feat: add context menu for translating pages
* chore: 🤖 使用extension.js
* chore: update package metadata
* chore: ensure context menu creation on extension install
* feat: add toggle translation functionality
* feat: add support for dynamic localization based on tab URL
* feat: add Chinese translation for Star Citizen browser extension
* docs: update README with new API usage instructions
* refactor: update translation logic to append original values
* typescript support
* feat: add manual URL handling for localization
* feat: add postMessage for toggling SC-BOX translate
* feat: add translation toggle event to postMessage
* feat: add translation status and message handling
* refactor: optimize localization version logging
This commit is contained in:
33
package.json
Normal file
33
package.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/StarCitizenToolBox/StarCitizenBoxBrowserEx"
|
||||
},
|
||||
"name": "star-citizen-box-browser-ex",
|
||||
"description": "为星际公民网站及工具站提供汉化",
|
||||
"version": "0.0.11",
|
||||
"keywords": [
|
||||
"extension",
|
||||
"browser-extension",
|
||||
"web-extension",
|
||||
"template"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "extension dev --polyfill",
|
||||
"dev:firefox": "extension dev --browser firefox",
|
||||
"build": "extension build --polyfill",
|
||||
"build:firefox": "extension build --browser firefox --polyfill"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"extension": "^2.0.0-rc.23",
|
||||
"@types/node": "^22.10.5",
|
||||
"typescript": "5.3.3"
|
||||
},
|
||||
"private": true,
|
||||
"author": {
|
||||
"name": "xkeyC"
|
||||
},
|
||||
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b"
|
||||
}
|
Reference in New Issue
Block a user