Skip to content

[v10.0.0-beta01][Compose] Hardcoded strings in TermsAndPrivacyForm.kt prevent localization #2299

@CatkinGG-newdream303

Description

@CatkinGG-newdream303

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions