From 7b22d93c60307607ab0f5622e69d196b4d1b48ad Mon Sep 17 00:00:00 2001 From: CWX Date: Fri, 2 May 2025 20:26:29 +0100 Subject: [PATCH] Add ability to remove Custom locale --- Libraries/SPTarkov.Server.Core/Services/LocaleService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {