From d8e0ef457a5e2431d0b39a41bb2963bffd9d260e Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 12 Feb 2025 21:55:23 +0000 Subject: [PATCH] Stubbed out new service `CustomLocaleService --- .../Core/Services/CustomLocaleService.cs | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Libraries/Core/Services/CustomLocaleService.cs diff --git a/Libraries/Core/Services/CustomLocaleService.cs b/Libraries/Core/Services/CustomLocaleService.cs new file mode 100644 index 00000000..b444cccc --- /dev/null +++ b/Libraries/Core/Services/CustomLocaleService.cs @@ -0,0 +1,37 @@ +using Core.Models.Utils; +using Core.Utils; +using SptCommon.Annotations; + +namespace Core.Services +{ + [Injectable] + public class CustomLocaleService( + ISptLogger logger, + FileUtil fileUtil, + DatabaseService databaseService + ) + { + + /// + /// Path should link to a folder containing every locale that should be added to the server locales + /// e.g. en.json for english, fr.json for french + /// Inside each JSON should be a Dictionary of the locale key and localised text + /// + /// A path to a folder that contains locales to add to SPT + public void AdServerLocales(string pathToServerLocales) + { + + } + + /// + /// Path should link to a folder containing every locale that should be added to the game locales + /// e.g. en.json for english, fr.json for french + /// Inside each JSON should be a Dictionary of the locale key and localised text + /// + /// A path to a folder that contains locales to add to SPT + public void AddGameLocales(string pathToGameLocales) + { + + } + } +}