yomichan/ext/js/language
toasted-nutbread 0dab38f0a6
Refactor translator merged mode (#1474)
* Remove sourceDefinitions

* Add id

* Remove related definitions from unsequencedDefinitions

* Add separate _addRelatedDefinitions function

* Add secondary definitions

* Update how secondary definitions are added

* Update expression/reading source

* Move _mergeByGlossary body

* Refactor _createTermDetailsListFromTermInfoMap

* Move _addUniqueTermInfos body

* Rename function

* Organize

* Simplify duplicate check

* Rename relatedDefinitionIds to definitionIds

* Refactor secondary definition adding

* Early exit

* Add matching unsequencedDefinitions to secondaryDefinitions

* Clean

* Fix incorrect condition

* Move _addSecondaryDefinitions call

* Add comments
2021-03-01 22:17:23 -05:00
..
deinflector.js Use consistent number of newlines at the start of files (#1402) 2021-02-15 12:43:24 -05:00
dictionary-data-util.js Move mixed/js (#1383) 2021-02-13 22:52:28 -05:00
dictionary-database.js Log refactoring (#1393) 2021-02-14 17:52:01 -05:00
dictionary-importer.js Util rename (#1389) 2021-02-14 11:32:30 -05:00
japanese-util.js Get categorization of pitch accents (#1462) 2021-02-28 13:26:34 -05:00
text-scanner.js Text source element scanning improvements (#1464) 2021-02-28 14:18:18 -05:00
translator.js Refactor translator merged mode (#1474) 2021-03-01 22:17:23 -05:00