From 1efd7b2a34d267557187f9c4dca5947537c34461 Mon Sep 17 00:00:00 2001 From: ked4ma Date: Fri, 25 Aug 2023 01:45:23 +0900 Subject: [PATCH] use Language instead of LocaleShort --- .../confsched2023/designsystem/preview/Annotations.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/designsystem/src/androidMain/kotlin/io/github/droidkaigi/confsched2023/designsystem/preview/Annotations.kt b/core/designsystem/src/androidMain/kotlin/io/github/droidkaigi/confsched2023/designsystem/preview/Annotations.kt index 4eb5b69e8..44acb7abb 100644 --- a/core/designsystem/src/androidMain/kotlin/io/github/droidkaigi/confsched2023/designsystem/preview/Annotations.kt +++ b/core/designsystem/src/androidMain/kotlin/io/github/droidkaigi/confsched2023/designsystem/preview/Annotations.kt @@ -60,13 +60,13 @@ object MultiLanguagePreviewDefinition { object Japanese { const val Name = "Japanese" const val Locale = "ja_JP" - const val LocaleShort = "ja" + const val Language = "ja" } object English { const val Name = "English" const val Locale = "en_US" - const val LocaleShort = "en" + const val Language = "en" } } @@ -78,11 +78,11 @@ object MultiLanguagePreviewDefinition { @Preview( name = MultiLanguagePreviewDefinition.Japanese.Name, group = MultiLanguagePreviewDefinition.Group, - locale = MultiLanguagePreviewDefinition.Japanese.LocaleShort, + locale = MultiLanguagePreviewDefinition.Japanese.Language, ) @Preview( name = MultiLanguagePreviewDefinition.English.Name, group = MultiLanguagePreviewDefinition.Group, - locale = MultiLanguagePreviewDefinition.English.LocaleShort, + locale = MultiLanguagePreviewDefinition.English.Language, ) annotation class MultiLanguagePreviews