From 32afbffcdaf40a5f19e71a0f6f749ec6d7ac7cb7 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 25 Mar 2023 15:37:50 +0000 Subject: [PATCH] Refactor: Move server locates into database folder so they can be accessed/edited by modders --- project/assets/{locales => database/locales/server}/cz.json | 0 project/assets/{locales => database/locales/server}/de.json | 0 project/assets/{locales => database/locales/server}/en.json | 0 project/assets/{locales => database/locales/server}/es.json | 0 project/assets/{locales => database/locales/server}/fr.json | 0 project/assets/{locales => database/locales/server}/ge.json | 0 project/assets/{locales => database/locales/server}/hu.json | 0 project/assets/{locales => database/locales/server}/it.json | 0 project/assets/{locales => database/locales/server}/jp.json | 0 project/assets/{locales => database/locales/server}/ko.json | 0 project/assets/{locales => database/locales/server}/nl.json | 0 project/assets/{locales => database/locales/server}/pl.json | 0 project/assets/{locales => database/locales/server}/pt.json | 0 project/assets/{locales => database/locales/server}/ru.json | 0 project/assets/{locales => database/locales/server}/sk.json | 0 project/assets/{locales => database/locales/server}/sv.json | 0 project/assets/{locales => database/locales/server}/tr.json | 0 project/assets/{locales => database/locales/server}/zh.json | 0 project/src/models/spt/server/ILocaleBase.ts | 1 + project/src/services/LocalisationService.ts | 2 +- 20 files changed, 2 insertions(+), 1 deletion(-) rename project/assets/{locales => database/locales/server}/cz.json (100%) rename project/assets/{locales => database/locales/server}/de.json (100%) rename project/assets/{locales => database/locales/server}/en.json (100%) rename project/assets/{locales => database/locales/server}/es.json (100%) rename project/assets/{locales => database/locales/server}/fr.json (100%) rename project/assets/{locales => database/locales/server}/ge.json (100%) rename project/assets/{locales => database/locales/server}/hu.json (100%) rename project/assets/{locales => database/locales/server}/it.json (100%) rename project/assets/{locales => database/locales/server}/jp.json (100%) rename project/assets/{locales => database/locales/server}/ko.json (100%) rename project/assets/{locales => database/locales/server}/nl.json (100%) rename project/assets/{locales => database/locales/server}/pl.json (100%) rename project/assets/{locales => database/locales/server}/pt.json (100%) rename project/assets/{locales => database/locales/server}/ru.json (100%) rename project/assets/{locales => database/locales/server}/sk.json (100%) rename project/assets/{locales => database/locales/server}/sv.json (100%) rename project/assets/{locales => database/locales/server}/tr.json (100%) rename project/assets/{locales => database/locales/server}/zh.json (100%) diff --git a/project/assets/locales/cz.json b/project/assets/database/locales/server/cz.json similarity index 100% rename from project/assets/locales/cz.json rename to project/assets/database/locales/server/cz.json diff --git a/project/assets/locales/de.json b/project/assets/database/locales/server/de.json similarity index 100% rename from project/assets/locales/de.json rename to project/assets/database/locales/server/de.json diff --git a/project/assets/locales/en.json b/project/assets/database/locales/server/en.json similarity index 100% rename from project/assets/locales/en.json rename to project/assets/database/locales/server/en.json diff --git a/project/assets/locales/es.json b/project/assets/database/locales/server/es.json similarity index 100% rename from project/assets/locales/es.json rename to project/assets/database/locales/server/es.json diff --git a/project/assets/locales/fr.json b/project/assets/database/locales/server/fr.json similarity index 100% rename from project/assets/locales/fr.json rename to project/assets/database/locales/server/fr.json diff --git a/project/assets/locales/ge.json b/project/assets/database/locales/server/ge.json similarity index 100% rename from project/assets/locales/ge.json rename to project/assets/database/locales/server/ge.json diff --git a/project/assets/locales/hu.json b/project/assets/database/locales/server/hu.json similarity index 100% rename from project/assets/locales/hu.json rename to project/assets/database/locales/server/hu.json diff --git a/project/assets/locales/it.json b/project/assets/database/locales/server/it.json similarity index 100% rename from project/assets/locales/it.json rename to project/assets/database/locales/server/it.json diff --git a/project/assets/locales/jp.json b/project/assets/database/locales/server/jp.json similarity index 100% rename from project/assets/locales/jp.json rename to project/assets/database/locales/server/jp.json diff --git a/project/assets/locales/ko.json b/project/assets/database/locales/server/ko.json similarity index 100% rename from project/assets/locales/ko.json rename to project/assets/database/locales/server/ko.json diff --git a/project/assets/locales/nl.json b/project/assets/database/locales/server/nl.json similarity index 100% rename from project/assets/locales/nl.json rename to project/assets/database/locales/server/nl.json diff --git a/project/assets/locales/pl.json b/project/assets/database/locales/server/pl.json similarity index 100% rename from project/assets/locales/pl.json rename to project/assets/database/locales/server/pl.json diff --git a/project/assets/locales/pt.json b/project/assets/database/locales/server/pt.json similarity index 100% rename from project/assets/locales/pt.json rename to project/assets/database/locales/server/pt.json diff --git a/project/assets/locales/ru.json b/project/assets/database/locales/server/ru.json similarity index 100% rename from project/assets/locales/ru.json rename to project/assets/database/locales/server/ru.json diff --git a/project/assets/locales/sk.json b/project/assets/database/locales/server/sk.json similarity index 100% rename from project/assets/locales/sk.json rename to project/assets/database/locales/server/sk.json diff --git a/project/assets/locales/sv.json b/project/assets/database/locales/server/sv.json similarity index 100% rename from project/assets/locales/sv.json rename to project/assets/database/locales/server/sv.json diff --git a/project/assets/locales/tr.json b/project/assets/database/locales/server/tr.json similarity index 100% rename from project/assets/locales/tr.json rename to project/assets/database/locales/server/tr.json diff --git a/project/assets/locales/zh.json b/project/assets/database/locales/server/zh.json similarity index 100% rename from project/assets/locales/zh.json rename to project/assets/database/locales/server/zh.json diff --git a/project/src/models/spt/server/ILocaleBase.ts b/project/src/models/spt/server/ILocaleBase.ts index e05aebde..611d99b5 100644 --- a/project/src/models/spt/server/ILocaleBase.ts +++ b/project/src/models/spt/server/ILocaleBase.ts @@ -3,4 +3,5 @@ export interface ILocaleBase global: Record> menu: Record languages: Record + server: Record> } \ No newline at end of file diff --git a/project/src/services/LocalisationService.ts b/project/src/services/LocalisationService.ts index 1782e7ab..6d41480d 100644 --- a/project/src/services/LocalisationService.ts +++ b/project/src/services/LocalisationService.ts @@ -19,7 +19,7 @@ export class LocalisationService @inject("LocaleService") protected localeService: LocaleService ) { - const localeFileDirectory = (globalThis.G_RELEASE_CONFIGURATION) ? "Aki_Data/Server/locales" : "./assets/locales"; + const localeFileDirectory = (globalThis.G_RELEASE_CONFIGURATION) ? "Aki_Data/Server/database/locales/server" : "./assets/database/locales/server"; this.i18n = new I18n( { locales: this.localeService.getServerSupportedLocales(),