Description
FirebaseUI Version: 10.0.0-beta01
Module: firebase-ui-auth (Compose components)
Problem: The "Terms of Service" and "Privacy Policy" labels in TermsAndPrivacyForm.kt are hardcoded as string literals. This prevents these labels from being localized into any language other than English.
Code Reference: The hardcoded strings are located in the Text components:
// TermsAndPrivacyForm.kt
Text(
text = "Terms of Service", // <-- Hardcoded string
style = MaterialTheme.typography.bodyMedium,
textAlign = TextAlign.Center,
textDecoration = TextDecoration.Underline
)
// ...
Text(
text = "Privacy Policy", // <-- Hardcoded string
style = MaterialTheme.typography.bodyMedium,
textAlign = TextAlign.Center,
textDecoration = TextDecoration.Underline
)
Impact: Users on non-English locales will see these specific terms in English, breaking the consistency of the translated UI. These should be fetched from string resources to support internationalization (i18n).