From b9cb10077502a4d182872ff55f9136d29df584f8 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 6 May 2022 12:59:00 -0500 Subject: [PATCH] Use some locale strings --- scripts/server/account.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/server/account.js b/scripts/server/account.js index 221a30b0..8245f989 100644 --- a/scripts/server/account.js +++ b/scripts/server/account.js @@ -311,7 +311,7 @@ function setAccountEmailCommand(command, params, client) { //} 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; } @@ -321,9 +321,9 @@ function setAccountEmailCommand(command, params, client) { setAccountEmailVerificationCode(getPlayerData(client).accountData, emailVerificationCode); sendEmailVerificationEmail(client, emailVerificationCode); - messagePlayerSuccess(client, `Your email has been set!`); - messagePlayerAlert(client, `Please verify your email to enable extra account security and recovery features.`); - messagePlayerAlert(client, `A verification code and instructions have been sent to your email.`); + messagePlayerSuccess(client, getLocaleString(client, "EmailSet")); + messagePlayerAlert(client, getLocaleString(client, "RegistrationEmailVerifyReminder")); + messagePlayerAlert(client, getLocaleString(client, "EmailVerificationCodeSent")); saveAccountToDatabase(getPlayerData(client).accountData); }