From 92b031392ac97361690502545db7597719046039 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 9 Jan 2023 11:24:11 +0300 Subject: [PATCH] Constants for language access --- src/main/kotlin/ru/mipt/spc/spcHome.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/ru/mipt/spc/spcHome.kt b/src/main/kotlin/ru/mipt/spc/spcHome.kt index 2cc77c4..2ecf84a 100644 --- a/src/main/kotlin/ru/mipt/spc/spcHome.kt +++ b/src/main/kotlin/ru/mipt/spc/spcHome.kt @@ -56,13 +56,13 @@ internal val FortyDataRenderer: DataRenderer = object : DataRenderer { override fun invoke(name: Name, data: Data) { if (data.type == typeOf()) { data as Data - val languageMeta: Meta = DataRenderer.buildLanguageMeta(name) + val languageMeta: Meta = Language.forName(name) val dataMeta: Meta = if (languageMeta.isEmpty()) { data.meta } else { data.meta.toMutableMeta().apply { - "languages" put languageMeta + Language.LANGUAGES_KEY put languageMeta } }