diff --git a/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialScreen.kt b/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialScreen.kt index a0b3acf3bb..8c6a563b07 100644 --- a/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialScreen.kt +++ b/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialScreen.kt @@ -156,7 +156,7 @@ private fun TutorialScreenContent( ) BitwardenFilledButton( - label = state.actionButtonText, + label = stringResource(id = state.actionButtonText), onClick = { continueClick(state.index) }, modifier = Modifier .standardHorizontalMargin() diff --git a/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialViewModel.kt b/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialViewModel.kt index ea9da8a106..c089f949c4 100644 --- a/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialViewModel.kt +++ b/authenticator/src/main/kotlin/com/bitwarden/authenticator/ui/platform/feature/tutorial/TutorialViewModel.kt @@ -73,8 +73,12 @@ data class TutorialState( * - Displays "Continue" if the user is not on the last page. * - Displays "Get Started" if the user is on the last page. */ - val actionButtonText: String - get() = if (index != pages.lastIndex) "Continue" else "Get Started" + val actionButtonText: Int + get() = if (index != pages.lastIndex) { + BitwardenString.continue_text + } else { + BitwardenString.get_started + } /** * Indicates whether the current slide is the last in the pages array. diff --git a/authenticator/src/test/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/tutorial/TutorialScreenTest.kt b/authenticator/src/test/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/tutorial/TutorialScreenTest.kt index e9ec9ceb0f..4419ea871c 100644 --- a/authenticator/src/test/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/tutorial/TutorialScreenTest.kt +++ b/authenticator/src/test/kotlin/com/bitwarden/authenticator/ui/authenticator/feature/tutorial/TutorialScreenTest.kt @@ -79,7 +79,7 @@ class TutorialScreenTest : AuthenticatorComposeTest() { it.copy(pages = listOf(TutorialState.TutorialSlide.UniqueCodesSlide)) } composeTestRule - .onNodeWithText("Get Started") + .onNodeWithText("Get started") .assertExists() .assertIsDisplayed() } @@ -106,7 +106,7 @@ class TutorialScreenTest : AuthenticatorComposeTest() { it.copy(pages = listOf(TutorialState.TutorialSlide.UniqueCodesSlide)) } composeTestRule - .onNodeWithText("Get Started") + .onNodeWithText("Get started") .performClick() verify { viewModel.trySendAction(TutorialAction.ContinueClick(mutableStateFlow.value.index))