Fix Hebrew word lookup not populating English gloss field
The NT Strong's gloss file only contains G#### keys, so Hebrew lookups always returned an empty englishGloss. Now falls back to short_definition (kjv_def from the BDBT API) so Hebrew words match Greek behaviour. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -2481,7 +2481,7 @@ const App = () => {
|
|||||||
const extractedPartOfSpeech = extractPartOfSpeech(first.definition || '');
|
const extractedPartOfSpeech = extractPartOfSpeech(first.definition || '');
|
||||||
updateChunkWord(chunkId, wordId, {
|
updateChunkWord(chunkId, wordId, {
|
||||||
strongNumber: first.topic || normalized,
|
strongNumber: first.topic || normalized,
|
||||||
englishGloss: gloss[strongKey] || '',
|
englishGloss: gloss[strongKey] || first.short_definition || '',
|
||||||
lexeme: first.lexeme || '',
|
lexeme: first.lexeme || '',
|
||||||
transliteration: first.transliteration || '',
|
transliteration: first.transliteration || '',
|
||||||
partOfSpeech: extractedPartOfSpeech || word.partOfSpeech || '',
|
partOfSpeech: extractedPartOfSpeech || word.partOfSpeech || '',
|
||||||
|
|||||||
Reference in New Issue
Block a user