Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
using FictionArchive.Service.NovelService.Models.Novels;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FictionArchive.Service.NovelService.Models.Localization;
|
||||
|
||||
public class LocalizationKey : BaseEntity<uint>
|
||||
{
|
||||
public List<LocalizationText> Texts { get; set; }
|
||||
|
||||
public static LocalizationKey CreateFromText(string text, Language language)
|
||||
{
|
||||
return new LocalizationKey()
|
||||
{
|
||||
Texts = new List<LocalizationText>()
|
||||
{
|
||||
new LocalizationText()
|
||||
{
|
||||
Language = language,
|
||||
Text = text
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using FictionArchive.Common.Enums;
|
||||
using FictionArchive.Service.NovelService.Models.Novels;
|
||||
|
||||
namespace FictionArchive.Service.NovelService.Models.Localization;
|
||||
|
||||
public class LocalizationText : BaseEntity<uint>
|
||||
{
|
||||
public Language Language { get; set; }
|
||||
public string Text { get; set; }
|
||||
public TranslationEngine? TranslationEngine { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user