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
@@ -22,7 +22,7 @@ public class HealthController(
ItemHelper _itemHelper,
PaymentService _paymentService,
InventoryHelper _inventoryHelper,
LocalisationService _localisationService,
ServerLocalisationService _serverLocalisationService,
HttpResponseUtil _httpResponseUtil,
HealthHelper _healthHelper,
ICloner _cloner
@@ -49,7 +49,7 @@ public class HealthController(
);
if (healingItemToUse is null)
{
var errorMessage = _localisationService.GetText(
var errorMessage = _serverLocalisationService.GetText(
"health-healing_item_not_found",
request.Item
);
@@ -165,7 +165,10 @@ public class HealthController(
{
return _httpResponseUtil.AppendErrorToOutput(
output,
_localisationService.GetText("health-unable_to_find_item_to_consume", request.Item)
_serverLocalisationService.GetText(
"health-unable_to_find_item_to_consume",
request.Item
)
);
}