Refactor: Move server locates into database folder so they can be accessed/edited by modders

This commit is contained in:
Dev 2023-03-25 15:37:50 +00:00
parent 82ff9dde12
commit 32afbffcda
20 changed files with 2 additions and 1 deletions

View File

@ -3,4 +3,5 @@ export interface ILocaleBase
global: Record<string, Record<string, string>>
menu: Record<string, string>
languages: Record<string, string>
server: Record<string, Record<string, string>>
}

View File

@ -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(),