diff --git a/Libraries/SPTarkov.Server.Core/Services/LocaleService.cs b/Libraries/SPTarkov.Server.Core/Services/LocaleService.cs index 6b53671b..8caa85d3 100644 --- a/Libraries/SPTarkov.Server.Core/Services/LocaleService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/LocaleService.cs @@ -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> dictionaryToAddTo) {