Skip to content

Commit

Permalink
move invalidEmail message inside messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Apr 13, 2023
1 parent dc61257 commit 65ac54f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export default {
characterLimit: ({limit}) => `Exceeds the maximum length of ${limit} characters`,
dateInvalid: 'Please enter a valid date',
invalidCharacter: 'Invalid character',
invalidEmail: 'Invalid email',
},
comma: 'comma',
semicolon: 'semicolon',
Expand Down Expand Up @@ -758,6 +757,7 @@ export default {
},
messages: {
errorMessageInvalidPhone: `Please enter a valid phone number without brackets or dashes. If you're outside the US please include your country code (e.g. ${CONST.EXAMPLE_PHONE_NUMBER}).`,
errorMessageInvalidEmail: 'Invalid email',
},
onfidoStep: {
acceptTerms: 'By continuing with the request to activate your Expensify wallet, you confirm that you have read, understand and accept ',
Expand Down
3 changes: 2 additions & 1 deletion src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,8 @@ export default {
},
},
messages: {
errorMessageInvalidPhone: `Por favor, introduce un número de teléfono válido sin paréntesis o guiones. Si reside fuera de Estados Unidos, incluye el prefijo internacional (p. ej. ${CONST.EXAMPLE_PHONE_NUMBER}).`,
errorMessageInvalidPhone: `Por favor, introduce un número de teléfono válido sin paréntesis o guiones. Si reside fuera de Estados Unidos, por favor incluye el prefijo internacional (p. ej. ${CONST.EXAMPLE_PHONE_NUMBER}).`,
errorMessageInvalidEmail: 'Email inválido',
},
onfidoStep: {
acceptTerms: 'Al continuar con la solicitud para activar su billetera Expensify, confirma que ha leído, comprende y acepta ',
Expand Down
2 changes: 1 addition & 1 deletion src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ function getHeaderMessage(hasSelectableOptions, hasUserToInvite, searchValue, ma
return Localize.translate(preferredLocale, 'messages.errorMessageInvalidPhone');
}
if (/@/.test(searchValue) && !isValidEmail) {
return Localize.translate(preferredLocale, 'common.error.invalidEmail');
return Localize.translate(preferredLocale, 'messages.errorMessageInvalidEmail');
}

return Localize.translate(preferredLocale, 'common.noResultsFound');
Expand Down

0 comments on commit 65ac54f

Please sign in to comment.