PM-22522: Update time picker language (#5338)

This commit is contained in:
David Perez
2025-06-10 14:02:31 -05:00
committed by GitHub
parent 7a2f1c294f
commit 7e146800a8
3 changed files with 5 additions and 7 deletions

View File

@@ -81,10 +81,7 @@ fun BitwardenTimePickerDialog(
inputToggleButton = {
BitwardenStandardIconButton(
vectorIconRes = R.drawable.ic_keyboard,
contentDescription = stringResource(
// TODO: Get our own string for this (BIT-1405)
id = androidx.compose.material3.R.string.m3c_date_picker_switch_to_input_mode,
),
contentDescription = stringResource(id = R.string.switch_input_mode),
onClick = { showTimeInput = !showTimeInput },
)
},
@@ -161,8 +158,7 @@ private fun TimePickerDialog(
.testTag("AlertTitleText")
.fillMaxWidth()
.padding(bottom = 20.dp),
// TODO: This should be "Select time" but we don't have that string (BIT-1405)
text = stringResource(id = R.string.time),
text = stringResource(id = R.string.select_time),
color = BitwardenTheme.colorScheme.text.secondary,
style = BitwardenTheme.typography.labelMedium,
)

View File

@@ -547,6 +547,8 @@ select Add TOTP to store the key safely</string>
<string name="device_type">Device type</string>
<string name="ip_address">IP address</string>
<string name="time">Time</string>
<string name="select_time">Select time</string>
<string name="switch_input_mode">Switch input mode</string>
<string name="confirm_log_in">Confirm login</string>
<string name="deny_log_in">Deny login</string>
<string name="log_in_denied">Login denied</string>

View File

@@ -927,7 +927,7 @@ class AccountSecurityScreenTest : BitwardenComposeTest() {
.performClick()
composeTestRule
.onAllNodesWithText("Time")
.onAllNodesWithText(text = "Select time")
.filterToOne(hasAnyAncestor(isDialog()))
.assertIsDisplayed()
composeTestRule