Create dedicated modules for Strings and apply the plugin com.likethesalad.stem

Remove translations
This commit is contained in:
Benoit Marty 2023-01-05 17:00:58 +01:00 committed by Benoit Marty
parent da59e812a7
commit 8c93aedbc1
33 changed files with 384 additions and 182 deletions

View file

@ -52,7 +52,7 @@ import com.google.accompanist.pager.rememberPagerState
import io.element.android.x.designsystem.components.VectorButton
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import io.element.android.x.element.resources.R as ElementR
import io.element.android.x.ui.strings.R as StringR
@OptIn(ExperimentalPagerApi::class)
@Composable
@ -120,7 +120,7 @@ fun OnBoardingScreen(
)
*/
VectorButton(
text = stringResource(id = ElementR.string.login_splash_submit),
text = stringResource(id = StringR.string.login_splash_submit),
onClick = {
onSignIn()
},

View file

@ -17,7 +17,7 @@
package io.element.android.x.features.onboarding
import androidx.annotation.DrawableRes
import io.element.android.x.element.resources.R as ElementR
import io.element.android.x.ui.strings.R as StringR
class SplashCarouselStateFactory {
fun create(): SplashCarouselState {
@ -32,8 +32,8 @@ class SplashCarouselStateFactory {
return SplashCarouselState(
listOf(
SplashCarouselState.Item(
ElementR.string.ftue_auth_carousel_secure_title,
ElementR.string.ftue_auth_carousel_secure_body,
StringR.string.ftue_auth_carousel_secure_title,
StringR.string.ftue_auth_carousel_secure_body,
hero(
R.drawable.ic_splash_conversations,
R.drawable.ic_splash_conversations_dark
@ -41,20 +41,20 @@ class SplashCarouselStateFactory {
background(R.drawable.bg_carousel_page_1)
),
SplashCarouselState.Item(
ElementR.string.ftue_auth_carousel_control_title,
ElementR.string.ftue_auth_carousel_control_body,
StringR.string.ftue_auth_carousel_control_title,
StringR.string.ftue_auth_carousel_control_body,
hero(R.drawable.ic_splash_control, R.drawable.ic_splash_control_dark),
background(R.drawable.bg_carousel_page_2)
),
SplashCarouselState.Item(
ElementR.string.ftue_auth_carousel_encrypted_title,
ElementR.string.ftue_auth_carousel_encrypted_body,
StringR.string.ftue_auth_carousel_encrypted_title,
StringR.string.ftue_auth_carousel_encrypted_body,
hero(R.drawable.ic_splash_secure, R.drawable.ic_splash_secure_dark),
background(R.drawable.bg_carousel_page_3)
),
SplashCarouselState.Item(
collaborationTitle(),
ElementR.string.ftue_auth_carousel_workplace_body,
StringR.string.ftue_auth_carousel_workplace_body,
hero(
R.drawable.ic_splash_collaboration,
R.drawable.ic_splash_collaboration_dark
@ -68,7 +68,7 @@ class SplashCarouselStateFactory {
private fun collaborationTitle(): Int {
return when {
true -> R.string.cut_the_slack_from_teams
else -> ElementR.string.ftue_auth_carousel_workplace_title
else -> StringR.string.ftue_auth_carousel_workplace_title
}
}
}