mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-12 21:50:43 -05:00
Added edge-case handling of PT locale inside getPlatformForServerLocale()
This commit is contained in:
parent
8d5eb3586c
commit
93c34bd189
@ -104,6 +104,11 @@ export class LocaleService {
|
|||||||
return languageCode;
|
return languageCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (baseNameCode === "pt") {
|
||||||
|
// Handle edge case of pt
|
||||||
|
return "pt-pt";
|
||||||
|
}
|
||||||
|
|
||||||
this.logger.warning(`Unsupported system language found: ${baseNameCode}, falling back to english`);
|
this.logger.warning(`Unsupported system language found: ${baseNameCode}, falling back to english`);
|
||||||
|
|
||||||
return "en";
|
return "en";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user