Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jan 31, 2024
1 parent 96a0b0e commit 44ecc94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,6 @@ export class Translator {
textTransformationsVectorSpace.set(id, this._getTextTransformationVariants(transformation));
}

// const variantVectorSpace = {
// textReplacements: this._getTextReplacementsVariants(options),
// ...textTransformationsVectorSpace
// };

const variantVectorSpace = new Map([
['textReplacements', this._getTextReplacementsVariants(options)],
...textTransformationsVectorSpace
Expand Down
6 changes: 3 additions & 3 deletions ext/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<a href="#!window" class="button outline-item advanced-only"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="window"></span></span><span class="outline-item-label">Window</span></a>
<a href="#!audio" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="speaker"></span></span><span class="outline-item-label">Audio</span></a>
<a href="#!text-parsing" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="text-parsing"></span></span><span class="outline-item-label">Text Parsing</span></a>
<a href="#!translation" class="button outline-item advanced-only"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="translation"></span></span><span class="outline-item-label">Translation</span></a>
<a href="#!translation" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="translation"></span></span><span class="outline-item-label">Translation</span></a>
<a href="#!anki" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="note-card"></span></span><span class="outline-item-label">Anki</span></a>
<a href="#!clipboard" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="clipboard"></span></span><span class="outline-item-label">Clipboard</span></a>
<a href="#!shortcuts" class="button outline-item"><span class="outline-item-left"><span class="outline-item-icon icon" data-icon="keyboard"></span></span><span class="outline-item-label">Shortcuts</span></a>
Expand Down Expand Up @@ -1491,7 +1491,7 @@ <h1>Yomitan Settings</h1>
</div>

<!-- Translation -->
<div class="advanced-only">
<div>
<div class="heading-container">
<div class="heading-container-icon"><span class="icon" data-icon="translation"></span></div>
<div class="heading-container-left"><h2 id="translation"><a href="#!translation">Translation</a></h2></div>
Expand Down Expand Up @@ -1539,7 +1539,7 @@ <h1>Yomitan Settings</h1>
</select>
</div>
</div></div>
<div class="settings-item settings-item-button" data-modal-action="show,translation-text-replacement-patterns"><div class="settings-item-inner">
<div class="settings-item settings-item-button advanced-only" data-modal-action="show,translation-text-replacement-patterns"><div class="settings-item-inner">
<div class="settings-item-left">
<div class="settings-item-label">Configure custom text replacement patterns&hellip;</div>
</div>
Expand Down

0 comments on commit 44ecc94

Please sign in to comment.