Fix Czech locale not being picked up correctly

This commit is contained in:
Dev 2023-12-26 15:55:50 +00:00
parent 51895033c3
commit 538a5f2807

View File

@ -36,7 +36,7 @@ export class LocaleService
}
this.logger.warning(
`Unable to find desired locale file using locale ${this.getDesiredGameLocale()} from config/locale.json, falling back to 'en'`,
`Unable to find desired locale file using locale: ${this.getDesiredGameLocale()} from config/locale.json, falling back to 'en'`,
);
return this.databaseServer.getTables().locales.global.en;
@ -103,6 +103,12 @@ export class LocaleService
return "en";
}
// BSG map Czech to CZ for some reason
if (platformLocale.language === "cs")
{
return "cz";
}
return platformLocale.language;
}
}