Add locales/translations (unfinished)

This commit is contained in:
Vortrex
2021-11-16 02:02:18 -06:00
parent 7cf858801b
commit df920ef046
5 changed files with 70 additions and 12 deletions

View File

@@ -45,14 +45,15 @@ function setAccentCommand(command, params, client) {
let accentId = getAccentFromParams(params);
if(!accentId) {
messagePlayerError(client, "Accent not found!");
messagePlayerError(client, getLocaleString("AccentNotFound"));
return false;
}
let accentString = getGlobalConfig().accents[accentId];
getPlayerCurrentSubAccount(client).accent = accentString;
messagePlayerSuccess(client, `You set your accent to ${getInlineChatColourByName("lightGrey")}${accentString}`);
messagePlayerSuccess(client, getLocaleString(client, "AccentSet", accentString));
}
// ===========================================================================