26 lines
724 B
C#
26 lines
724 B
C#
using FictionArchive.Common.Enums;
|
|
using FictionArchive.Service.NovelService.Models.Novels;
|
|
using FictionArchive.Service.Shared.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace FictionArchive.Service.NovelService.Models.Localization;
|
|
|
|
public class LocalizationKey : BaseEntity<Guid>
|
|
{
|
|
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
|
|
}
|
|
}
|
|
};
|
|
}
|
|
} |