Use parameterized string resource for next TOTP code label

This commit is contained in:
mpbw2 committed 2026-04-27 14:21:50 -04:00
1 parent 03849f38da
commit 1337f1f432
2 files changed
+4 -3

No files matched your search

@@ -176,9 +176,10 @@ fun VaultVerificationCodeItem(
if (nextAuthCode != null && timeLeftSeconds <= NEXT_CODE_THRESHOLD_SECONDS) {
Text(
modifier = Modifier.testTag(tag = "NextAuthCode"),
text = stringResource(id = BitwardenString.next_verification_code) +
" " +
text = stringResource(
id = BitwardenString.next_verification_code,
nextAuthCode.chunked(size = 3).joinToString(separator = " "),
),
style = BitwardenTheme.typography.bodySmall,
color = BitwardenTheme.colorScheme.text.secondary,
)
+1 -1
View File
@@ -197,7 +197,7 @@
<string name="point_your_camera_at_the_qr_code">Point your camera at the QR Code.
Scanning will happen automatically.</string>
<string name="copy_totp">Copy TOTP</string>
<string name="next_verification_code">Next:</string>
<string name="next_verification_code">Next: %1$s</string>
<string name="copy_totp_automatically_description">If a login has an authenticator key, copy the TOTP verification code to your clipboard when you autofill the login.</string>
<string name="copy_totp_automatically">Copy TOTP automatically</string>
<string name="premium_required">A Premium membership is required to use this feature.</string>