Use some locale strings

This commit is contained in:
Vortrex
2022-05-06 12:59:00 -05:00
parent 7973927cf0
commit b9cb100775

View File

@@ -311,7 +311,7 @@ function setAccountEmailCommand(command, params, client) {
//} //}
if(getPlayerData(client).accountData.emailAddress != "" && isAccountEmailVerified(getPlayerData(client).accountData)) { if(getPlayerData(client).accountData.emailAddress != "" && isAccountEmailVerified(getPlayerData(client).accountData)) {
messagePlayerError(client, `You already set your email and verified it!`); messagePlayerError(client, getLocaleString(client, "AccountEmailAlreadySetAndVerified"));
return false; return false;
} }
@@ -321,9 +321,9 @@ function setAccountEmailCommand(command, params, client) {
setAccountEmailVerificationCode(getPlayerData(client).accountData, emailVerificationCode); setAccountEmailVerificationCode(getPlayerData(client).accountData, emailVerificationCode);
sendEmailVerificationEmail(client, emailVerificationCode); sendEmailVerificationEmail(client, emailVerificationCode);
messagePlayerSuccess(client, `Your email has been set!`); messagePlayerSuccess(client, getLocaleString(client, "EmailSet"));
messagePlayerAlert(client, `Please verify your email to enable extra account security and recovery features.`); messagePlayerAlert(client, getLocaleString(client, "RegistrationEmailVerifyReminder"));
messagePlayerAlert(client, `A verification code and instructions have been sent to your email.`); messagePlayerAlert(client, getLocaleString(client, "EmailVerificationCodeSent"));
saveAccountToDatabase(getPlayerData(client).accountData); saveAccountToDatabase(getPlayerData(client).accountData);
} }