Skip to content

Commit

Permalink
chore: more rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Jul 20, 2023
1 parent 4c02313 commit 789a73b
Show file tree
Hide file tree
Showing 25 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion app/i18n/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ const en: BaseTranslation = {
learn: "I don't mean to badger you, but there's lot more to learn, dig in...",
learnToEarn: "Learn to Earn",
},
PhoneLoginSetScreen: {
PhoneLoginInitiateScreen: {
title: "Account set up",
header: "Enter your phone number, and we'll text you an access code.",
headerVerify: "Verify you are human",
Expand Down
4 changes: 2 additions & 2 deletions app/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ type RootTranslation = {
*/
learnToEarn: string
}
PhoneLoginSetScreen: {
PhoneLoginInitiateScreen: {
/**
* A​c​c​o​u​n​t​ ​s​e​t​ ​u​p
*/
Expand Down Expand Up @@ -5997,7 +5997,7 @@ export type TranslationFunctions = {
*/
learnToEarn: () => LocalizedString
}
PhoneLoginSetScreen: {
PhoneLoginInitiateScreen: {
/**
* Account set up
*/
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/source/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@
"learn": "I don't mean to badger you, but there's lot more to learn, dig in...",
"learnToEarn": "Learn to Earn"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Enter your phone number, and we'll text you an access code.",
"headerVerify": "Verify you are human",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@
"learn": "Ek wil jou nie pla nie, maar daar is nog baie om te leer. Kom ons kyk...",
"learnToEarn": "Leer en verdien"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Rekeningopstelling",
"header": "Tik jou selfoonnommer in en ons sal vir jou 'n toegangskode per sms stuur.",
"headerVerify": "Verifieër dat jy 'n mens is",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "لا أريد أن أزعجك، لكن أفق التعلّم لم يزل رحبًا، فتعمّق...",
"learnToEarn": "تعلم لكي تكسب"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "يرجى ادخال رقم الهاتف, من اجل أرسال رقم التحقق.",
"headerVerify": "التحقق من أنك إنسان",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "No et vull molestar, però hi ha molt més per aprendre, aprofundir...",
"learnToEarn": "Apren i guanya"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Configuració del compte",
"header": "Introdueix el teu número de telèfon, i t'enviarem un codi d'accés.",
"headerVerify": "Verifica que ets una persona",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Nechci tě obtěžovat, ale je toho ještě hodně, co se musíš naučit...",
"learnToEarn": "Vydělávejte učením se"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Účet je nastaven",
"header": "Zadejte své telefonní číslo a my vám zašleme přístupový kód.",
"headerVerify": "Ověřte, že jste člověk",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
"learn": "Ich will dich nicht bedrängen, aber es gibt noch viel mehr zu lernen, mach mit …",
"learnToEarn": "Lernen und verdienen"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account einrichten",
"header": "Gib deine Telefonnumer an und wir senden dir einen Zugangscode.",
"headerVerify": "Bestätige, dass Du ein Mensch bist",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
"learn": "Δεν θέλω να σας ενοχλήσω, αλλά υπάρχουν πολλά περισσότερα να μάθετε, ψάξτε...",
"learnToEarn": "Μάθετε για να Kερδίσετε "
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Ρύθμιση λογαριασμού",
"header": "Πληκτρολογήστε τον αριθμό τηλεφώνου σας και θα σας στείλουμε με μήνυμα έναν κωδικό πρόσβασης.",
"headerVerify": "Επιβεβαιώστε ότι είστε άνθρωπος",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
"learn": "Es hora de empezar a nadar en el Océano de Bitcoin.",
"learnToEarn": "Aprende y gana"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Configuración de la cuenta",
"header": "Ingrese su número de teléfono, y le enviaremos un mesaje de texto con un código de acceso.",
"headerVerify": "Verifica que eres una persona",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@
"learn": "Je ne veux pas insister mais il y a beaucoup plus à apprendre...",
"learnToEarn": "Apprendre à gagner"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Compte créé",
"header": "Saisissez votre numéro de téléphone pour recevoir le code d’accès par SMS.",
"headerVerify": "Vérifiez que vous êtes un humain",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Ne želim te gnjaviti, ali ima još puno toga za naučiti, istražiti...",
"learnToEarn": "Učite da bi zaradili"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Postava računa",
"header": "Unesite svoj telefonski broj, a mi ćemo vam poslati pristupni kod.",
"headerVerify": "Potvrdite da ste čovjek",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Non voglio importunarti, ma c'è molto altro da imparare, immergiti...",
"learnToEarn": "Guadagna imparando"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Inserisci il tuo numero di telefono, e ti manderemo un codice di accesso.",
"headerVerify": "Verifica di essere un umano",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/ms.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Aku taknak la memaksa kau, tapi banyak lagi yang perlu kau belajar...",
"learnToEarn": "Belajar untuk dapat ganjaran"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Tetapkan akaun anda",
"header": "Masukkan nombor telefon anda, kami akan hantar pesanan kepada a nda kod akses ",
"headerVerify": "Buktikan anda bukanlah haiwan",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Ik wil je niet lastig vallen, maar er valt nog veel meer te leren, begin te graven...",
"learnToEarn": "Leer en Verdien"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Instellen van een account",
"header": "Voer je telefoonnummer in en we sms'en je een toegangscode.",
"headerVerify": "Verifiëer dat u een mens bent",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Eu não quero te atormentar, mas há muito mais para aprender, cavar...",
"learnToEarn": "Aprenda a ganhar"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Criação de conta",
"header": "Digite seu número de telefone e enviaremos um código de acesso por mensagem de texto.",
"headerVerify": "Verifique que você é um humano",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/qu.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Ñuqaqa kaniyta mana yachanakuyta munanki, hinaspak kaniyta kawsayniyta kaniy, ch'usaq kaniyta...",
"learnToEarn": "Yachanakuyta kaniyta kawsayniyta kaniy"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Ñitina kaniyta munanki, chaypi kawsayniyta qallariyta kiti rikuchiykachkanki",
"headerVerify": "Ñuqaqa riqsichiyta kaniyta munanki",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/sr.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Не желим да вас досађујем, али има још пуно тога да се научи, баците се на посао...",
"learnToEarn": "Научите како да зарадите"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Подешавање налога",
"header": "Унесите свој број телефона и ми ћемо вам послати приступни код",
"headerVerify": "Верификујте да сте особа",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Simaanishi kukusumbua lakini kuna mengine mengi ya kujifunza, chimba ndani...",
"learnToEarn": "JIfunze ili Ulipwe"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Weka nambari yako ya simu, na tutakutumia ujumbe wenye msimbo wa ufikiaji",
"headerVerify": "Thibitisha kwamba wewe ni binadamu",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "เราไม่ได้อยากจะกวนคุณ แต่มีอะไรอีกมากให้เรียนรู้ หาความรู้ต่อไป...",
"learnToEarn": "เรียนที่จะหาเงิน"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "ใส่หมายเลขโทรศัพท์ของคุณ เราจะส่งรหัสผ่านให้",
"headerVerify": "ยืนยันว่าคุณเป็นมนุษย์",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Canını sıkmak istemem ama öğrenecek hala çok şey var, kurcalamaya devam...",
"learnToEarn": "Kazanmak için öğren"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Telefon numaranızı girdiğinizde sizinle bir giriş kodu paylaşacağız.",
"headerVerify": "İnsan olduğunuzu onaylayın",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "Tôi không có ý làm xấu bạn, nhưng còn nhiều điều để học, tiếp tục nào...",
"learnToEarn": "Học để kiếm thêm"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Nhập số điện thoại của bạn và chúng tôi sẽ nhắn tin cho bạn một mã truy cập.",
"headerVerify": "Xác minh bạn là con người",
Expand Down
2 changes: 1 addition & 1 deletion app/i18n/raw-i18n/translations/xh.json
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@
"learn": "I don't mean to badger you, but there's lot more to learn, dig in...",
"learnToEarn": "Learn to Earn"
},
"PhoneLoginSetScreen": {
"PhoneLoginInitiateScreen": {
"title": "Account set up",
"header": "Enter your phone number, and we'll text you an access code.",
"headerVerify": "Verify you are human",
Expand Down
6 changes: 3 additions & 3 deletions app/navigation/root-navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
} from "@app/screens/email-registration-screen"
import { GaloyAddressScreen } from "@app/screens/galoy-address-screen"
import {
PhoneLoginSetScreen,
PhoneLoginInitiateScreen,
PhoneLoginValidationScreen,
} from "@app/screens/phone-auth-screen"
import ReceiveScreen from "@app/screens/receive-bitcoin-screen/receive-screen"
Expand Down Expand Up @@ -287,7 +287,7 @@ export const RootStack = () => {
name="phoneFlow"
component={PhoneLoginNavigator}
options={{
title: LL.PhoneLoginSetScreen.title(),
title: LL.PhoneLoginInitiateScreen.title(),
}}
/>
<RootNavigator.Screen
Expand Down Expand Up @@ -411,7 +411,7 @@ export const PhoneLoginNavigator = () => {
headerShown: false,
title: LL.common.phoneNumber(),
}}
component={PhoneLoginSetScreen}
component={PhoneLoginInitiateScreen}
/>
<StackPhoneValidation.Screen
name="phoneLoginValidate"
Expand Down
22 changes: 11 additions & 11 deletions app/screens/phone-auth-screen/phone-login-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const useStyles = makeStyles(({ colors }) => ({
loadingView: { flex: 1, justifyContent: "center", alignItems: "center" },
}))

export const PhoneLoginSetScreen: React.FC = () => {
export const PhoneLoginInitiateScreen: React.FC = () => {
const styles = useStyles()

const navigation =
Expand Down Expand Up @@ -153,24 +153,24 @@ export const PhoneLoginSetScreen: React.FC = () => {
if (error) {
switch (error) {
case ErrorType.FailedCaptchaError:
errorMessage = LL.PhoneLoginSetScreen.errorRequestingCaptcha()
errorMessage = LL.PhoneLoginInitiateScreen.errorRequestingCaptcha()
break
case ErrorType.RequestCodeError:
errorMessage = LL.PhoneLoginSetScreen.errorRequestingCode()
errorMessage = LL.PhoneLoginInitiateScreen.errorRequestingCode()
break
case ErrorType.TooManyAttemptsError:
errorMessage = LL.errors.tooManyRequestsPhoneCode()
break
case ErrorType.InvalidPhoneNumberError:
errorMessage = LL.PhoneLoginSetScreen.errorInvalidPhoneNumber()
errorMessage = LL.PhoneLoginInitiateScreen.errorInvalidPhoneNumber()
break
case ErrorType.UnsupportedCountryError:
errorMessage = LL.PhoneLoginSetScreen.errorUnsupportedCountry()
errorMessage = LL.PhoneLoginInitiateScreen.errorUnsupportedCountry()
break
}
}
if (!isSmsSupported && !isWhatsAppSupported) {
errorMessage = LL.PhoneLoginSetScreen.errorUnsupportedCountry()
errorMessage = LL.PhoneLoginInitiateScreen.errorUnsupportedCountry()
}

let PrimaryButton = undefined
Expand All @@ -179,14 +179,14 @@ export const PhoneLoginSetScreen: React.FC = () => {
case isSmsSupported && isWhatsAppSupported:
PrimaryButton = (
<GaloyPrimaryButton
title={LL.PhoneLoginSetScreen.sms()}
title={LL.PhoneLoginInitiateScreen.sms()}
loading={captchaLoading && phoneCodeChannel === PhoneCodeChannelType.Sms}
onPress={() => submitPhoneNumber(PhoneCodeChannelType.Sms)}
/>
)
SecondaryButton = (
<GaloySecondaryButton
title={LL.PhoneLoginSetScreen.whatsapp()}
title={LL.PhoneLoginInitiateScreen.whatsapp()}
containerStyle={styles.whatsAppButton}
loading={captchaLoading && phoneCodeChannel === PhoneCodeChannelType.Whatsapp}
onPress={() => submitPhoneNumber(PhoneCodeChannelType.Whatsapp)}
Expand All @@ -196,7 +196,7 @@ export const PhoneLoginSetScreen: React.FC = () => {
case isSmsSupported && !isWhatsAppSupported:
PrimaryButton = (
<GaloyPrimaryButton
title={LL.PhoneLoginSetScreen.sms()}
title={LL.PhoneLoginInitiateScreen.sms()}
loading={captchaLoading && phoneCodeChannel === PhoneCodeChannelType.Sms}
onPress={() => submitPhoneNumber(PhoneCodeChannelType.Sms)}
/>
Expand All @@ -205,7 +205,7 @@ export const PhoneLoginSetScreen: React.FC = () => {
case !isSmsSupported && isWhatsAppSupported:
PrimaryButton = (
<GaloyPrimaryButton
title={LL.PhoneLoginSetScreen.whatsapp()}
title={LL.PhoneLoginInitiateScreen.whatsapp()}
loading={captchaLoading && phoneCodeChannel === PhoneCodeChannelType.Whatsapp}
onPress={() => submitPhoneNumber(PhoneCodeChannelType.Whatsapp)}
/>
Expand All @@ -222,7 +222,7 @@ export const PhoneLoginSetScreen: React.FC = () => {
>
<View style={styles.viewWrapper}>
<View style={styles.textContainer}>
<Text type={"p1"}>{LL.PhoneLoginSetScreen.header()}</Text>
<Text type={"p1"}>{LL.PhoneLoginInitiateScreen.header()}</Text>
</View>

<View style={styles.inputContainer}>
Expand Down

0 comments on commit 789a73b

Please sign in to comment.