Skip to content

Commit

Permalink
use Language instead of LocaleShort
Browse files Browse the repository at this point in the history
  • Loading branch information
ked4ma committed Aug 24, 2023
1 parent 468c887 commit 1efd7b2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand All @@ -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

0 comments on commit 1efd7b2

Please sign in to comment.