mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11:27 -07:00
Validate locale selection
This commit is contained in:
parent
4ec8f6b6cd
commit
204b93a3eb
@ -145,6 +145,12 @@ namespace Bloxstrap
|
||||
State.Load();
|
||||
FastFlags.Load();
|
||||
|
||||
if (!Locale.SupportedLocales.ContainsKey(Settings.Prop.Locale))
|
||||
{
|
||||
Settings.Prop.Locale = "nil";
|
||||
Settings.Save();
|
||||
}
|
||||
|
||||
Locale.Set(Settings.Prop.Locale);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user