diff --git a/backend/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs b/backend/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs index bca515f05..cafa4a6fe 100644 --- a/backend/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs +++ b/backend/FwDataMiniLcmBridge/Api/FwDataMiniLcmApi.cs @@ -125,11 +125,13 @@ private Sense FromLexSense(ILexSense sense) private ExampleSentence FromLexExampleSentence(ILexExampleSentence sentence) { + var translation = sentence.TranslationsOC.FirstOrDefault()?.Translation; return new ExampleSentence { Id = sentence.Guid, Sentence = FromLcmMultiString(sentence.Example), - Reference = sentence.Reference.Text + Reference = sentence.Reference.Text, + Translation = translation is null ? new MultiString() : FromLcmMultiString(translation), }; } diff --git a/backend/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateExampleSentenceProxy.cs b/backend/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateExampleSentenceProxy.cs index de0c6154a..c764d2fae 100644 --- a/backend/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateExampleSentenceProxy.cs +++ b/backend/FwDataMiniLcmBridge/Api/UpdateProxy/UpdateExampleSentenceProxy.cs @@ -20,7 +20,11 @@ public override MultiString Sentence public override MultiString Translation { - get => throw new NotImplementedException(); + get + { + var firstTranslation = sentence.TranslationsOC.FirstOrDefault()?.Translation; + return firstTranslation is null ? new MultiString() : new UpdateMultiStringProxy(firstTranslation, lexboxLcmApi); + } set => throw new NotImplementedException(); }