From f7de1c2825daff4082305bcf7ccbb9c0f89c44d6 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 26 Oct 2023 20:54:50 +0200 Subject: [PATCH] Added properties to configure country names --- .../de/twomartens/timetable/model/common/LanguageCode.kt | 6 ++++++ .../de/twomartens/timetable/property/ServiceProperties.kt | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 module-server/src/main/kotlin/de/twomartens/timetable/model/common/LanguageCode.kt diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/model/common/LanguageCode.kt b/module-server/src/main/kotlin/de/twomartens/timetable/model/common/LanguageCode.kt new file mode 100644 index 0000000..b7fb8e5 --- /dev/null +++ b/module-server/src/main/kotlin/de/twomartens/timetable/model/common/LanguageCode.kt @@ -0,0 +1,6 @@ +package de.twomartens.timetable.model.common + +enum class LanguageCode { + de, + en +} \ No newline at end of file diff --git a/module-server/src/main/kotlin/de/twomartens/timetable/property/ServiceProperties.kt b/module-server/src/main/kotlin/de/twomartens/timetable/property/ServiceProperties.kt index 6a9f01e..ffbf718 100644 --- a/module-server/src/main/kotlin/de/twomartens/timetable/property/ServiceProperties.kt +++ b/module-server/src/main/kotlin/de/twomartens/timetable/property/ServiceProperties.kt @@ -1,5 +1,8 @@ package de.twomartens.timetable.property +import de.twomartens.timetable.model.common.CountryCode +import de.twomartens.timetable.model.common.LanguageCode +import de.twomartens.timetable.types.NonEmptyString import io.swagger.v3.oas.annotations.media.Schema import org.springframework.boot.context.properties.ConfigurationProperties import org.springframework.cloud.context.config.annotation.RefreshScope @@ -9,4 +12,5 @@ import org.springframework.cloud.context.config.annotation.RefreshScope @Schema(description = "Properties, to configure this Application") class ServiceProperties { lateinit var greeting: String + lateinit var countryNames: Map> }