fix: Fixes language casing and adds localization reset command (#1703)

This commit is contained in:
Kamron Batman 2024-03-09 11:02:56 -08:00 • committed by GitHub
parent 1147a80b34
commit b5342a82e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,20 @@
namespace Server.Commands;
public static class ResetLocalization
{
public static void Configure()
{
CommandSystem.Register("ResetLocalization", AccessLevel.Developer, ResetLocalization_OnCommand);
}
[Usage("ResetLocalization [<command>]")]
[Aliases("ResetLoc")]
[Description(
"Clears the localization table. Cliloc will be reloaded the next time they are used for that language."
)]
private static void ResetLocalization_OnCommand(CommandEventArgs e)
{
Localization.Clear();
e.Mobile.SendMessage("Localization table cleared.");
}
}