Add ability to remove Custom locale
This commit is contained in:
@@ -242,6 +242,14 @@ public class LocaleService(
|
||||
AddToDictionary(locale, localeKey, localeValue, customClientLocales);
|
||||
}
|
||||
|
||||
public void RemoveCustomClientLocale(string locale, string localeKey)
|
||||
{
|
||||
if (customClientLocales.TryGetValue(locale, out var localeDict))
|
||||
{
|
||||
localeDict.Remove(localeKey);
|
||||
}
|
||||
}
|
||||
|
||||
private void AddToDictionary(string locale, string localeKey, string localeValue,
|
||||
Dictionary<string, Dictionary<string, string>> dictionaryToAddTo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user