Remove I18nService, migrate to renamed ServerLocalisationService (#433)

* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
This commit is contained in:
Jesse
2025-06-28 20:08:42 +02:00
committed by GitHub
parent 1c83014ed2
commit 5686f4a486
98 changed files with 771 additions and 706 deletions
@@ -9,10 +9,10 @@ namespace SPTarkov.Server.Core.Services;
[Injectable(InjectionType.Singleton)]
public class BotGenerationCacheService(
ISptLogger<BotGenerationCacheService> _logger,
LocalisationService _localisationService
ServerLocalisationService _serverLocalisationService
)
{
protected readonly Queue<BotBase> _activeBotsInRaid = [];
protected Queue<BotBase> _activeBotsInRaid = [];
protected readonly ConcurrentDictionary<string, List<BotBase>> _storedBots = new();
/// <summary>
@@ -50,7 +50,7 @@ public class BotGenerationCacheService(
catch (Exception e)
{
_logger.Error(
_localisationService.GetText(
_serverLocalisationService.GetText(
"bot-cache_has_zero_bots_of_requested_type",
key
)
@@ -60,13 +60,13 @@ public class BotGenerationCacheService(
}
_logger.Error(
_localisationService.GetText("bot-cache_has_zero_bots_of_requested_type", key)
_serverLocalisationService.GetText("bot-cache_has_zero_bots_of_requested_type", key)
);
return null;
}
_logger.Warning(_localisationService.GetText("bot-no_bot_type_in_cache", key));
_logger.Warning(_serverLocalisationService.GetText("bot-no_bot_type_in_cache", key));
return null;
}