diff --git a/src/data-access/MwApiLexemeCreator.ts b/src/data-access/MwApiLexemeCreator.ts index 8e9ebe30..615d7a1b 100644 --- a/src/data-access/MwApiLexemeCreator.ts +++ b/src/data-access/MwApiLexemeCreator.ts @@ -44,6 +44,17 @@ export default class MwApiLexemeCreator implements LexemeCreator { }, language: lexemeLanguageItemId, lexicalCategory: lexicalCategoryItemId, + forms: [ + { + add: '', + representations: { + [ lemmaLanguageCode ]: { + language: lemmaLanguageCode, + value: lemma, + }, + }, + }, + ], } ), errorformat: 'html', formatversion: 2, diff --git a/tests/unit/data-access/MwApiLexemeCreator.test.ts b/tests/unit/data-access/MwApiLexemeCreator.test.ts index ba99f2a6..5f3045ea 100644 --- a/tests/unit/data-access/MwApiLexemeCreator.test.ts +++ b/tests/unit/data-access/MwApiLexemeCreator.test.ts @@ -44,6 +44,17 @@ describe( 'MwApiLexemeCreator', () => { }, language: 'Q123', lexicalCategory: 'Q456', + forms: [ + { + add: '', + representations: { + en: { + language: 'en', + value: 'lemma', + }, + }, + }, + ], } ), assert: 'user', errorformat: 'html',