Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon406 committed Dec 27, 2024
1 parent 15c37cd commit dac0ac6
Show file tree
Hide file tree
Showing 25 changed files with 6,006 additions and 5,802 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build Extension

on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
branches: [ "master" ]
branches: ['master']
workflow_dispatch:

jobs:
Expand All @@ -16,18 +16,18 @@ jobs:
node-version: [20.x]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build
- uses: actions/upload-artifact@v4
with:
path: |
dist
- name: Build
run: |
npm install
npm run build
- uses: actions/upload-artifact@v4
with:
path: |
dist
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@
- [x] bing翻译支持预请求
- [x] 在线词典支持第三方协议 (如 goldendict://)
- [x] 右键复制生词
- [x] lemma等级及当前页面词频
- [x] lemma等级及当前页面词频
- [x] 导入导出配置




## Download

from github action build

https://github.com/Leon406/word-discoverer-ng/actions/workflows/webpack.yml
https://github.com/Leon406/word-discoverer-ng/actions/workflows/webpack.yml
294 changes: 147 additions & 147 deletions public/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,149 +1,149 @@
{
"appName": {
"message": "Word Discoverer: Expand your vocabulary",
"description": "The title of the application, displayed in the web store. Note to the translator: Do not translate first two words 'Words Discoverer'"
},
"appDesc": {
"message": "Highlights rare English dictionary words and idioms on web pages. Facilitates English language learning and expands your vocabulary.",
"description":"The description of the application, displayed in the web store."
},
"menuItem": {
"message": "Add to vocabulary",
"description": "Text in context menu"
},
"rateTranslateDbg": {
"message": "Not highlighting 100 most common English words"
},
"rateInfo1": {
"message": "Not highlighting",
"description": "1-st part of \"Not highlighting 100 most common English words\" sentence"
},
"rateInfo2": {
"message": "most common English words.",
"description": "2-nd part of \"Not highlighting 100 most common English words\" sentence"
},
"adjust": {
"message": "More Settings..."
},
"vocabSizeTranslateDbg": {
"message": "Your vocabulary size: 100 words."
},
"vocabSizeInfo1": {
"message": "Your vocabulary size:",
"description": "1-st part of \"Your vocabulary size: 100 words.\" sentence"
},
"vocabSizeInfo2": {
"message": "words.",
"description": "2-nd part of \"Your vocabulary size: 100 words.\" sentence"
},
"showVocab": {
"message": "Show Vocabulary"
},
"saveVocab": {
"message": "Export Vocabulary"
},
"loadVocab": {
"message": "Import Vocabulary"
},
"tipInfo": {
"message": "To add a new expression to your vocabulary you can use mouse hover menu or browser context menu (select text + right click) or this input field:"
},
"addErrorDupp": {
"message": "Already added."
},
"addErrorBad": {
"message": "Unable to add."
},
"addSuccess": {
"message": "Added."
},
"saveVisuals": {
"message": "Save"
},
"enableWordsLabel": {
"message": "Enable words highlighting"
},
"enableIdiomsLabel": {
"message": "Enable expressions highlighting"
},
"useQuotes": {
"message": "Use quotes (instead of highlighting)"
},
"useText": {
"message": "Use text highlighting"
},
"useBackground": {
"message": "Use background highlighting"
},
"useBold": {
"message": "Use bold font"
},
"enabledDescription": {
"message": "Highlight all Internet except \"Skip List\" sites"
},
"disabledDescription": {
"message": "Highlight only \"Favorites List\" sites"
},
"addVerb": {
"message": "Add",
"description": "part of 'Add example.org to Favorites List' sentence"
},
"toVerb": {
"message": "to",
"description": "part of 'Add example.org to Favorites List' sentence"
},
"addTranslateDbg": {
"message": "Add [example.org] to [Favorites List]"
},
"addFavoritesLabel": {
"message": "Favorites List"
},
"addSkippedLabel": {
"message": "Skip List"
},
"emptyListError": {
"message": "The list is empty ;)"
},
"adjustPopupHlHeader": {
"message": "Adjust popup menu for highlighted expressions"
},
"rbNever": {
"message": "Do not show popup menu"
},
"rbKey": {
"message": "Show popup menu on mouse hover and [Ctrl] key"
},
"rbAlways": {
"message": "Show popup menu on mouse hover"
},
"adjustPopupOwHeader": {
"message": "Adjust popup menu for not highlighted words"
},
"adjustOnlineDicts": {
"message": "Adjust online dictionaries for hover and context menus"
},
"dictNameHeader": {
"message": "Dictionary Name:"
},
"dictUrlHeader": {
"message": "Dictionary query URL:"
},
"testBtn": {
"message": "Test"
},
"restoreDefaults": {
"message": "Restore Defaults"
},
"adjustColorsHeader": {
"message": "Adjust highlighting color"
},
"importInfo": {
"message": "New words will be added to your current vocabulary."
},
"selectFile": {
"message": "Select File..."
},
"switchModeLabel": {
"message": "Switch Mode"
}
"appName": {
"message": "Word Discoverer: Expand your vocabulary",
"description": "The title of the application, displayed in the web store. Note to the translator: Do not translate first two words 'Words Discoverer'"
},
"appDesc": {
"message": "Highlights rare English dictionary words and idioms on web pages. Facilitates English language learning and expands your vocabulary.",
"description": "The description of the application, displayed in the web store."
},
"menuItem": {
"message": "Add to vocabulary",
"description": "Text in context menu"
},
"rateTranslateDbg": {
"message": "Not highlighting 100 most common English words"
},
"rateInfo1": {
"message": "Not highlighting",
"description": "1-st part of \"Not highlighting 100 most common English words\" sentence"
},
"rateInfo2": {
"message": "most common English words.",
"description": "2-nd part of \"Not highlighting 100 most common English words\" sentence"
},
"adjust": {
"message": "More Settings..."
},
"vocabSizeTranslateDbg": {
"message": "Your vocabulary size: 100 words."
},
"vocabSizeInfo1": {
"message": "Your vocabulary size:",
"description": "1-st part of \"Your vocabulary size: 100 words.\" sentence"
},
"vocabSizeInfo2": {
"message": "words.",
"description": "2-nd part of \"Your vocabulary size: 100 words.\" sentence"
},
"showVocab": {
"message": "Show Vocabulary"
},
"saveVocab": {
"message": "Export Vocabulary"
},
"loadVocab": {
"message": "Import Vocabulary"
},
"tipInfo": {
"message": "To add a new expression to your vocabulary you can use mouse hover menu or browser context menu (select text + right click) or this input field:"
},
"addErrorDupp": {
"message": "Already added."
},
"addErrorBad": {
"message": "Unable to add."
},
"addSuccess": {
"message": "Added."
},
"saveVisuals": {
"message": "Save"
},
"enableWordsLabel": {
"message": "Enable words highlighting"
},
"enableIdiomsLabel": {
"message": "Enable expressions highlighting"
},
"useQuotes": {
"message": "Use quotes (instead of highlighting)"
},
"useText": {
"message": "Use text highlighting"
},
"useBackground": {
"message": "Use background highlighting"
},
"useBold": {
"message": "Use bold font"
},
"enabledDescription": {
"message": "Highlight all Internet except \"Skip List\" sites"
},
"disabledDescription": {
"message": "Highlight only \"Favorites List\" sites"
},
"addVerb": {
"message": "Add",
"description": "part of 'Add example.org to Favorites List' sentence"
},
"toVerb": {
"message": "to",
"description": "part of 'Add example.org to Favorites List' sentence"
},
"addTranslateDbg": {
"message": "Add [example.org] to [Favorites List]"
},
"addFavoritesLabel": {
"message": "Favorites List"
},
"addSkippedLabel": {
"message": "Skip List"
},
"emptyListError": {
"message": "The list is empty ;)"
},
"adjustPopupHlHeader": {
"message": "Adjust popup menu for highlighted expressions"
},
"rbNever": {
"message": "Do not show popup menu"
},
"rbKey": {
"message": "Show popup menu on mouse hover and [Ctrl] key"
},
"rbAlways": {
"message": "Show popup menu on mouse hover"
},
"adjustPopupOwHeader": {
"message": "Adjust popup menu for not highlighted words"
},
"adjustOnlineDicts": {
"message": "Adjust online dictionaries for hover and context menus"
},
"dictNameHeader": {
"message": "Dictionary Name:"
},
"dictUrlHeader": {
"message": "Dictionary query URL:"
},
"testBtn": {
"message": "Test"
},
"restoreDefaults": {
"message": "Restore Defaults"
},
"adjustColorsHeader": {
"message": "Adjust highlighting color"
},
"importInfo": {
"message": "New words will be added to your current vocabulary."
},
"selectFile": {
"message": "Select File..."
},
"switchModeLabel": {
"message": "Switch Mode"
}
}
2 changes: 1 addition & 1 deletion public/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@
"switchModeLabel": {
"message": "मोड स्विच करें"
}
}
}
2 changes: 1 addition & 1 deletion public/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@
"switchModeLabel": {
"message": "スイッチモード"
}
}
}
Loading

0 comments on commit dac0ac6

Please sign in to comment.