Browse Source

Imageviewer: update default description (#3010)

* Imageviewer: update default description

* Imageviewer: update again
pull/3017/head
Nikita Lipsky 2 years ago committed by GitHub
parent
commit
1cc767bdfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/imageviewer/iosApp/Configuration/Config.xcconfig
  2. 2
      examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/Localization.android.kt
  3. 7
      examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Localization.kt
  4. 2
      examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/Localization.desktop.kt
  5. 2
      examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/Localization.ios.kt

2
examples/imageviewer/iosApp/Configuration/Config.xcconfig

@ -1,3 +1,3 @@
TEAM_ID= TEAM_ID=
BUNDLE_ID=org.jetbrains.Imageviewer BUNDLE_ID=org.jetbrains.Imageviewer
APP_NAME=Imageviewer APP_NAME=My Memories

2
examples/imageviewer/shared/src/androidMain/kotlin/example/imageviewer/Localization.android.kt

@ -1,3 +1,5 @@
package example.imageviewer package example.imageviewer
actual fun getCurrentLanguage(): AvailableLanguages = AvailableLanguages.EN actual fun getCurrentLanguage(): AvailableLanguages = AvailableLanguages.EN
actual fun getCurrentPlatform(): String = "Android"

7
examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Localization.kt

@ -7,6 +7,8 @@ enum class AvailableLanguages {
expect fun getCurrentLanguage(): AvailableLanguages expect fun getCurrentLanguage(): AvailableLanguages
expect fun getCurrentPlatform(): String
private object EnglishLocalization : Localization { private object EnglishLocalization : Localization {
override val appName = "My Memories" override val appName = "My Memories"
override val picture = "Picture:" override val picture = "Picture:"
@ -15,8 +17,9 @@ private object EnglishLocalization : Localization {
override val addPhoto = "Add a photo" override val addPhoto = "Add a photo"
override val kotlinConfName = "KotlinConf 2023 🎉" override val kotlinConfName = "KotlinConf 2023 🎉"
override val kotlinConfDescription = """ override val kotlinConfDescription = """
This photo was taken during KotlinConf 2023! 🎊 This photo was taken during KotlinConf 2023 using #ComposeMultiplatform running on ${getCurrentPlatform()}! 🎊
Have a fun with Kotlin and Compose Multiplatform 🥳 Let's build some stunning UIs! 🥳
https://jb.gg/compose
""".trimIndent() """.trimIndent()
override val newPhotoName = "New Memory" override val newPhotoName = "New Memory"
override val newPhotoDescription = "May amazing things happen to you! 🙂" override val newPhotoDescription = "May amazing things happen to you! 🙂"

2
examples/imageviewer/shared/src/desktopMain/kotlin/example/imageviewer/Localization.desktop.kt

@ -5,3 +5,5 @@ actual fun getCurrentLanguage(): AvailableLanguages =
"de" -> AvailableLanguages.DE "de" -> AvailableLanguages.DE
else -> AvailableLanguages.EN else -> AvailableLanguages.EN
} }
actual fun getCurrentPlatform(): String = "Desktop"

2
examples/imageviewer/shared/src/iosMain/kotlin/example/imageviewer/Localization.ios.kt

@ -1,3 +1,5 @@
package example.imageviewer package example.imageviewer
actual fun getCurrentLanguage(): AvailableLanguages = AvailableLanguages.EN actual fun getCurrentLanguage(): AvailableLanguages = AvailableLanguages.EN
actual fun getCurrentPlatform(): String = "iOS"

Loading…
Cancel
Save