Refactor: Move server locates into database folder so they can be accessed/edited by modders
This commit is contained in:
parent
82ff9dde12
commit
32afbffcda
@ -3,4 +3,5 @@ export interface ILocaleBase
|
|||||||
global: Record<string, Record<string, string>>
|
global: Record<string, Record<string, string>>
|
||||||
menu: Record<string, string>
|
menu: Record<string, string>
|
||||||
languages: Record<string, string>
|
languages: Record<string, string>
|
||||||
|
server: Record<string, Record<string, string>>
|
||||||
}
|
}
|
@ -19,7 +19,7 @@ export class LocalisationService
|
|||||||
@inject("LocaleService") protected localeService: LocaleService
|
@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(
|
this.i18n = new I18n(
|
||||||
{
|
{
|
||||||
locales: this.localeService.getServerSupportedLocales(),
|
locales: this.localeService.getServerSupportedLocales(),
|
||||||
|
Loading…
Reference in New Issue
Block a user