sp-tarkov / server

University of Illinois/NCSA Open Source License
3 stars 3 forks source link

[bug] No fallback for locales #645

Closed refringe closed 2 hours ago

refringe commented 2 hours ago

In Live EFT, the server falls back gracefully to english locale if the original locale is not present in the database. Aki incorrectly fails instead.

The Romanian locale and various menu locales are/were affected by this.

The following functions require modifications:

// DataCallbacks.ts
public getLocalesMenu(url: string, info: IEmptyRequestData, sessionID: string): IGetBodyResponseData<string>
public getLocalesGlobal(url: string, info: IEmptyRequestData, sessionID: string): string

Originally written by Ghost

refringe commented 2 hours ago

Implemented with: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/197


Originally written by chomp