Improved handling of missing translations
This commit is contained in:
parent
4918807c60
commit
8904712c2e
@ -20,12 +20,14 @@ public static class TranslationProcessor
|
||||
TranslateManual = false,
|
||||
Culture = cultureInfo.Code,
|
||||
Text = string.Empty,
|
||||
TextElement = textElement,
|
||||
});
|
||||
}
|
||||
|
||||
if(missedTranslations.Count > 0)
|
||||
{
|
||||
textElement.Translations.AddRange(missedTranslations);
|
||||
db.Translations.AddRange(missedTranslations);
|
||||
db.TextElements.Update(textElement);
|
||||
await db.SaveChangesAsync();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user