Fix Czech locale not being picked up correctly
This commit is contained in:
parent
51895033c3
commit
538a5f2807
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user