Skip to content

Commit caa6fff

Browse files
committed
chore: localize strings
1 parent 632fc1d commit caa6fff

File tree

89 files changed

+90
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+90
-94
lines changed

auth/src/main/java/com/firebase/ui/auth/compose/configuration/string_provider/AuthUIStringProvider.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ interface AuthUIStringProvider {
201201
/** Verification code hint */
202202
val verificationCodeHint: String
203203

204-
/** Verify code button text */
205-
val verifyCode: String
206-
207204
/** Change phone number link text */
208205
val changePhoneNumber: String
209206

auth/src/main/java/com/firebase/ui/auth/compose/configuration/string_provider/DefaultAuthUIStringProvider.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ class DefaultAuthUIStringProvider(
195195
override val verificationCodeHint: String
196196
get() = localizedContext.getString(R.string.fui_enter_confirmation_code)
197197

198-
override val verifyCode: String
199-
get() = localizedContext.getString(R.string.fui_verify_phone_number)
200-
201198
override val changePhoneNumber: String
202199
get() = localizedContext.getString(R.string.fui_change_phone_number)
203200

auth/src/main/java/com/firebase/ui/auth/compose/ui/screens/phone/EnterPhoneNumberUI.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fun EnterPhoneNumberUI(
9090
topBar = {
9191
TopAppBar(
9292
title = {
93-
Text(stringProvider.verifyPhoneNumber)
93+
Text(stringProvider.signInWithPhone)
9494
},
9595
colors = AuthUITheme.topAppBarColors
9696
)

auth/src/main/java/com/firebase/ui/auth/compose/ui/screens/phone/EnterVerificationCodeUI.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ import com.firebase.ui.auth.compose.configuration.theme.AuthUITheme
5050
import com.firebase.ui.auth.compose.configuration.validators.VerificationCodeValidator
5151
import com.firebase.ui.auth.compose.ui.components.TermsAndPrivacyForm
5252
import com.firebase.ui.auth.compose.ui.components.VerificationCodeInputField
53+
import java.util.Locale
5354

5455
@OptIn(ExperimentalMaterial3Api::class)
5556
@Composable
@@ -135,7 +136,8 @@ fun EnterVerificationCodeUI(
135136
text = if (resendTimer > 0) {
136137
val minutes = resendTimer / 60
137138
val seconds = resendTimer % 60
138-
val timeFormatted = "$minutes:${String.format("%02d", seconds)}"
139+
val timeFormatted =
140+
"$minutes:${String.format(Locale.ROOT, "%02d", seconds)}"
139141
stringProvider.resendCodeTimer(timeFormatted)
140142
} else {
141143
stringProvider.resendCode
@@ -161,7 +163,7 @@ fun EnterVerificationCodeUI(
161163
.size(16.dp)
162164
)
163165
} else {
164-
Text(stringProvider.verifyCode.uppercase())
166+
Text(stringProvider.verifyPhoneNumber.uppercase())
165167
}
166168
}
167169
}

auth/src/main/res/values-ar/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<string name="fui_verify_phone_number_title">أدخل رقم هاتفك</string>
7777
<string name="fui_invalid_phone_number">يُرجى إدخال رقم هاتف صالح</string>
7878
<string name="fui_enter_confirmation_code">أدخل الرمز المكوّن من 6 أرقام الذي أرسلناه إلى</string>
79-
<string name="fui_resend_code_in">إعادة إرسال الرمز بعد 0:%02d</string>
79+
<string name="fui_resend_code_in">إعادة إرسال الرمز بعد %1$s</string>
8080
<string name="fui_verify_your_phone_title">إثبات ملكية رقم هاتفك</string>
8181
<string name="fui_verifying">جارٍ التحقق…</string>
8282
<string name="fui_incorrect_code_dialog_body">الرمز غير صحيح. يُرجى المحاولة مجددًا.</string>

auth/src/main/res/values-b+es+419/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<string name="fui_verify_phone_number_title">Ingresa tu número de teléfono</string>
7777
<string name="fui_invalid_phone_number">Ingresa un número de teléfono válido</string>
7878
<string name="fui_enter_confirmation_code">Ingresa el código de 6 dígitos que enviamos al número</string>
79-
<string name="fui_resend_code_in">Se reenviará el código en 0:%02d</string>
79+
<string name="fui_resend_code_in">Se reenviará el código en %1$s</string>
8080
<string name="fui_verify_your_phone_title">Verifica tu número de teléfono</string>
8181
<string name="fui_verifying">Verificando…</string>
8282
<string name="fui_incorrect_code_dialog_body">Código incorrecto. Vuelve a intentarlo.</string>

auth/src/main/res/values-bg/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<string name="fui_verify_phone_number_title">Въвеждане на телефонния ви номер</string>
7777
<string name="fui_invalid_phone_number">Въведете валиден телефонен номер</string>
7878
<string name="fui_enter_confirmation_code">Въведете 6-цифрения код, който изпратихме до</string>
79-
<string name="fui_resend_code_in">Повторно изпращане на кода след 0:%02d</string>
79+
<string name="fui_resend_code_in">Повторно изпращане на кода след %1$s</string>
8080
<string name="fui_verify_your_phone_title">Потвърждаване на телефонния ви номер</string>
8181
<string name="fui_verifying">Потвърждава се…</string>
8282
<string name="fui_incorrect_code_dialog_body">Неправилен код. Опитайте отново.</string>

auth/src/main/res/values-bn/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<string name="fui_verify_phone_number_title">আপনার ফোন নম্বর লিখুন</string>
7777
<string name="fui_invalid_phone_number">একটি সঠিক ফোন নম্বর লিখুন</string>
7878
<string name="fui_enter_confirmation_code">আমাদের পাঠানো ৬-সংখ্যার কোডটি লিখুন</string>
79-
<string name="fui_resend_code_in">0:%02d এ কোডটি আবার পাঠান</string>
79+
<string name="fui_resend_code_in">%1$s এ কোডটি আবার পাঠান</string>
8080
<string name="fui_verify_your_phone_title">আপনার ফোন নম্বর যাচাই করুন</string>
8181
<string name="fui_verifying">যাচাই করা হচ্ছে…</string>
8282
<string name="fui_incorrect_code_dialog_body">কোডটি ভুল। আবার চেষ্টা করুন।</string>

auth/src/main/res/values-ca/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<string name="fui_verify_phone_number_title">Introdueix el número de telèfon</string>
7777
<string name="fui_invalid_phone_number">Introdueix un número de telèfon vàlid</string>
7878
<string name="fui_enter_confirmation_code">Introdueix el codi de 6 dígits que s\'ha enviat al número</string>
79-
<string name="fui_resend_code_in">Torna a enviar el codi d\'aquí a 0:%02d</string>
79+
<string name="fui_resend_code_in">Torna a enviar el codi d\'aquí a %1$s</string>
8080
<string name="fui_verify_your_phone_title">Verifica el número de telèfon</string>
8181
<string name="fui_verifying">S\'està verificant…</string>
8282
<string name="fui_incorrect_code_dialog_body">El codi no és correcte. Torna-ho a provar.</string>

auth/src/main/res/values-cs/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<string name="fui_verify_phone_number_title">Zadejte své telefonní číslo</string>
7777
<string name="fui_invalid_phone_number">Zadejte platné telefonní číslo</string>
7878
<string name="fui_enter_confirmation_code">Zadejte šestimístný kód, který jsme vám zaslali</string>
79-
<string name="fui_resend_code_in">Znovu zaslat kód za 0:%02d</string>
79+
<string name="fui_resend_code_in">Znovu zaslat kód za %1$s</string>
8080
<string name="fui_verify_your_phone_title">Ověřit telefonní číslo</string>
8181
<string name="fui_verifying">Ověřování…</string>
8282
<string name="fui_incorrect_code_dialog_body">Špatný kód. Zkuste to znovu.</string>

0 commit comments

Comments
 (0)