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