From 401ebddd084c8a1d8067fc7d8278218d854d6da1 Mon Sep 17 00:00:00 2001 From: russellwheatley Date: Mon, 12 Jan 2026 11:28:45 +0000 Subject: [PATCH] fix(auth): use strong locale for privacy policy and terms of service --- .../firebase/ui/auth/ui/components/TermsAndPrivacyForm.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/auth/src/main/java/com/firebase/ui/auth/ui/components/TermsAndPrivacyForm.kt b/auth/src/main/java/com/firebase/ui/auth/ui/components/TermsAndPrivacyForm.kt index 601452006..5cf33cd5a 100644 --- a/auth/src/main/java/com/firebase/ui/auth/ui/components/TermsAndPrivacyForm.kt +++ b/auth/src/main/java/com/firebase/ui/auth/ui/components/TermsAndPrivacyForm.kt @@ -24,9 +24,11 @@ import androidx.compose.material3.TextButton import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalUriHandler +import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.text.style.TextDecoration import androidx.compose.ui.unit.dp +import com.firebase.ui.auth.R @Composable fun TermsAndPrivacyForm( @@ -47,7 +49,7 @@ fun TermsAndPrivacyForm( contentPadding = PaddingValues.Zero, ) { Text( - text = "Terms of Service", + text = stringResource(R.string.fui_terms_of_service), style = MaterialTheme.typography.bodyMedium, textAlign = TextAlign.Center, textDecoration = TextDecoration.Underline @@ -63,7 +65,7 @@ fun TermsAndPrivacyForm( contentPadding = PaddingValues.Zero, ) { Text( - text = "Privacy Policy", + text = stringResource(R.string.fui_privacy_policy), style = MaterialTheme.typography.bodyMedium, textAlign = TextAlign.Center, textDecoration = TextDecoration.Underline