Updated locale keys
This commit is contained in:
@@ -29,7 +29,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
context.translate(LocaleKeys.recoverPasswordTitle),
|
||||
context.translate(I18n.recoverPasswordTitle),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -40,7 +40,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
SizedBox(height: SizeUtils.getByScreen(small: 42, big: 32)),
|
||||
CustomTextField(
|
||||
showPassword: viewState.passwordVisible,
|
||||
label: context.translate(LocaleKeys.newPassword),
|
||||
label: context.translate(I18n.newPassword),
|
||||
labelSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12),
|
||||
hint: '********',
|
||||
controller: viewModel.passwordController,
|
||||
@@ -49,7 +49,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
SizedBox(height: 16),
|
||||
CustomTextField(
|
||||
showPassword: viewState.passwordVisible,
|
||||
label: context.translate(LocaleKeys.repeatPassword),
|
||||
label: context.translate(I18n.repeatPassword),
|
||||
labelSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12),
|
||||
hint: '********',
|
||||
controller: viewModel.repeatedPasswordController,
|
||||
@@ -67,7 +67,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
size: 16,
|
||||
),
|
||||
Text(
|
||||
context.translate(LocaleKeys.errorMessageUnequalPasswords),
|
||||
context.translate(I18n.errorMessageUnequalPasswords),
|
||||
textAlign: TextAlign.left,
|
||||
style: TextStyle(
|
||||
color: Color.fromRGBO(239, 17, 17, 1),
|
||||
@@ -89,7 +89,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
: ThemeCode.buttonSecondary),
|
||||
),
|
||||
Text(
|
||||
context.translate(LocaleKeys.passwordLength),
|
||||
context.translate(I18n.passwordLength),
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12))
|
||||
),
|
||||
],
|
||||
@@ -105,7 +105,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
: ThemeCode.buttonSecondary),
|
||||
),
|
||||
Text(
|
||||
context.translate(LocaleKeys.passwordCapital),
|
||||
context.translate(I18n.passwordCapital),
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12))
|
||||
),
|
||||
],
|
||||
@@ -121,7 +121,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
: ThemeCode.buttonSecondary),
|
||||
),
|
||||
Text(
|
||||
context.translate(LocaleKeys.passwordNumber),
|
||||
context.translate(I18n.passwordNumber),
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12))
|
||||
),
|
||||
],
|
||||
@@ -137,7 +137,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
: ThemeCode.buttonSecondary),
|
||||
),
|
||||
Text(
|
||||
context.translate(LocaleKeys.passwordSpecial),
|
||||
context.translate(I18n.passwordSpecial),
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12))
|
||||
),
|
||||
],
|
||||
@@ -146,7 +146,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Text(
|
||||
context.translate(LocaleKeys.mobilePhone),
|
||||
context.translate(I18n.mobilePhone),
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12), letterSpacing: 0),
|
||||
)
|
||||
),
|
||||
@@ -164,7 +164,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
},
|
||||
),
|
||||
Expanded(child: CustomTextField(
|
||||
hint: context.translate(LocaleKeys.phoneNumber),
|
||||
hint: context.translate(I18n.phoneNumber),
|
||||
numeric: true,
|
||||
controller: viewModel.newPhoneNumberController,
|
||||
))
|
||||
@@ -190,7 +190,7 @@ class NewPasswordScreen extends ConsumerWidget {
|
||||
navigationContract.goTo(AppRoutes.dashboardHome);
|
||||
}
|
||||
},
|
||||
text: context.translate(LocaleKeys.accept),
|
||||
text: context.translate(I18n.accept),
|
||||
color: theme.getColorFor(ThemeCode.buttonPrimary)
|
||||
),
|
||||
],
|
||||
|
||||
@@ -29,26 +29,26 @@ class RequestRecoveryScreen extends ConsumerWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
context.translate(LocaleKeys.recoverPasswordTitle),
|
||||
context.translate(I18n.recoverPasswordTitle),
|
||||
style: TextStyle(fontWeight: FontWeight.bold, fontSize: SizeUtils.getByScreen(small: 29, big: 29, xl: 26)),
|
||||
),
|
||||
SizedBox(height: SizeUtils.getByScreen(small: 24, big: 32)),
|
||||
Text(
|
||||
context.translate(LocaleKeys.recoverPasswordSubtitle),
|
||||
context.translate(I18n.recoverPasswordSubtitle),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(letterSpacing: 0, fontSize: SizeUtils.getByScreen(small: 18, big: 18, xl: 16)),
|
||||
),
|
||||
SizedBox(height: SizeUtils.getByScreen(small: 56, big: 48)),
|
||||
CustomTextField(
|
||||
label: context.translate(LocaleKeys.email),
|
||||
hint: context.translate(LocaleKeys.email),
|
||||
label: context.translate(I18n.email),
|
||||
hint: context.translate(I18n.email),
|
||||
controller: viewModel.emailController,
|
||||
),
|
||||
SizedBox(height: SizeUtils.getByScreen(small: 40, big: 40, xl: 28)),
|
||||
Align(
|
||||
alignment: Alignment.bottomLeft,
|
||||
child: Text(
|
||||
context.translate(LocaleKeys.mobilePhone),
|
||||
context.translate(I18n.mobilePhone),
|
||||
style: TextStyle(fontSize: 14, letterSpacing: 0),
|
||||
),
|
||||
),
|
||||
@@ -92,7 +92,7 @@ class RequestRecoveryScreen extends ConsumerWidget {
|
||||
Expanded(
|
||||
child: SecondaryButton(
|
||||
onPressed: () => {Navigator.pop(context)},
|
||||
text: context.translate(LocaleKeys.back),
|
||||
text: context.translate(I18n.back),
|
||||
size: SizeUtils.getByScreen(small: 16, big: 16, xl: 14),
|
||||
),
|
||||
),
|
||||
@@ -111,7 +111,7 @@ class RequestRecoveryScreen extends ConsumerWidget {
|
||||
);
|
||||
}
|
||||
},
|
||||
text: context.translate(LocaleKeys.send),
|
||||
text: context.translate(I18n.send),
|
||||
size: SizeUtils.getByScreen(small: 16, big: 16, xl: 14),
|
||||
color: theme.getColorFor(ThemeCode.buttonSecondary),
|
||||
),
|
||||
|
||||
@@ -29,7 +29,7 @@ class SentScreen extends ConsumerWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
context.translate(LocaleKeys.recoverPasswordTitle),
|
||||
context.translate(I18n.recoverPasswordTitle),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
@@ -48,8 +48,8 @@ class SentScreen extends ConsumerWidget {
|
||||
SizedBox(width: SizeUtils.getByScreen(small: 10, big: 10, xl: 6)),
|
||||
Text(
|
||||
viewState.recoveryFormat == "email"
|
||||
? context.translate(LocaleKeys.emailSent)
|
||||
: context.translate(LocaleKeys.smsSent),
|
||||
? context.translate(I18n.emailSent)
|
||||
: context.translate(I18n.smsSent),
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 18, big: 18, xl: 15), fontWeight: FontWeight.bold),
|
||||
),
|
||||
],
|
||||
@@ -57,16 +57,16 @@ class SentScreen extends ConsumerWidget {
|
||||
SizedBox(height: SizeUtils.getByScreen(small: 48, big: 48, xl: 40)),
|
||||
Text(
|
||||
viewState.recoveryFormat == "email"
|
||||
? context.translate(LocaleKeys.checkEmail1)
|
||||
: context.translate(LocaleKeys.checkSms1),
|
||||
? context.translate(I18n.checkEmail1)
|
||||
: context.translate(I18n.checkSms1),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 17, big: 17, xl: 15), letterSpacing: 0),
|
||||
),
|
||||
SizedBox(height: 16),
|
||||
Text(
|
||||
viewState.recoveryFormat == "email"
|
||||
? context.translate(LocaleKeys.checkEmail2)
|
||||
: context.translate(LocaleKeys.checkSms2),
|
||||
? context.translate(I18n.checkEmail2)
|
||||
: context.translate(I18n.checkSms2),
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(fontSize: SizeUtils.getByScreen(small: 14, big: 14, xl: 12), letterSpacing: 0),
|
||||
),
|
||||
@@ -83,8 +83,8 @@ class SentScreen extends ConsumerWidget {
|
||||
}
|
||||
},
|
||||
text: viewState.recoveryFormat == "email"
|
||||
? context.translate(LocaleKeys.resendEmail)
|
||||
: context.translate(LocaleKeys.resendSms),
|
||||
? context.translate(I18n.resendEmail)
|
||||
: context.translate(I18n.resendSms),
|
||||
size: SizeUtils.getByScreen(small: 16, big: 16, xl: 14),
|
||||
),
|
||||
),
|
||||
@@ -95,7 +95,7 @@ class SentScreen extends ConsumerWidget {
|
||||
context,
|
||||
MaterialPageRoute(builder: (_) => NewPasswordScreen(navigationContract: navigationContract)),
|
||||
),
|
||||
text: context.translate(LocaleKeys.continueKey),
|
||||
text: context.translate(I18n.continueKey),
|
||||
color: theme.getColorFor(ThemeCode.buttonSecondary),
|
||||
size: SizeUtils.getByScreen(small: 16, big: 16, xl: 14),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user