book-hub-umsp / book-hub-api

1 stars 0 forks source link

[Book/Repository] Локализация и компонент для перевода параметров книги на русский #30

Open Tigeroff2002 opened 2 weeks ago

Tigeroff2002 commented 2 weeks ago

Some code snippet

    private static readonly FrozenDictionary<BookGenre, string> _russianResolvers =
        new Dictionary<BookGenre, string>()
        {
            { BookGenre.EpicNovel, "Роман-эпопея" },
            { BookGenre.Novel, "Роман" },
            { BookGenre.Narrativa, "Повесть" },
            { BookGenre.Story, "Рассказ"},
            { BookGenre.Essay, "Эссе" },
            { BookGenre.Parable, "Притча" },
            { BookGenre.LyricalPoem, "Лирическое стихотворение" },
            { BookGenre.Elegy, "Элегия" },
            { BookGenre.Epistle, "Послание" },
            { BookGenre.Epigram, "Эпиграм" },
            { BookGenre.Ode, "Ода" },
            { BookGenre.Sonnet, "Соннет" },
            { BookGenre.Comedy, "Комедия" },
            { BookGenre.Tradegy, "Трагедия" },
            { BookGenre.Drama, "Драма" },
            { BookGenre.Poem, "Поэма" },
            { BookGenre.Ballad, "Баллада" }
        }.ToFrozenDictionary();