MCPcopy
hub / github.com/wensonsmith/YoudaoTranslator / parseTranslation

Method parseTranslation

src/adapters/youdao.ts:57–62  ·  view source on GitHub ↗
(translation: object)

Source from the content-addressed store, hash-verified

55 }
56
57 private parseTranslation(translation: object) {
58 if (translation) {
59 const pronounce = this.isChinese ? translation[0] : this.word;
60 this.addResult( translation[0], this.word, translation[0], pronounce );
61 }
62 }
63
64 private parseBasic(basic: any) {
65 if (basic) {

Callers 1

parseMethod · 0.95

Calls 1

addResultMethod · 0.95

Tested by

no test coverage detected